LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-08-2017, 03:24 PM   #1
codeman1234
Member
 
Registered: Jul 2009
Posts: 206

Rep: Reputation: 27
Installing Ubuntu Server on Amazon AWS


Hello,

I am following a tutorial to migrate my WP website to Amazon AWS with Ubuntu Server, the tutorial is great and goes step by step but, when teacher on tutorial ends up installing LAMP he does something that I don't agree which is putting permissions to "777" on "www" folder so, I wanted to ask why you think he does this and if this is the correct way of doing it? if not what is the correct permissions to add and why he does this? If I am not mistaken correct permissions are to put 755 or 744, right?

Appreciate all the help and knowledge on the matter!
 
Old 04-08-2017, 04:23 PM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by codeman1234 View Post
Hello,

I am following a tutorial to migrate my WP website to Amazon AWS with Ubuntu Server, the tutorial is great and goes step by step but, when teacher on tutorial ends up installing LAMP he does something that I don't agree which is putting permissions to "777" on "www" folder so, I wanted to ask why you think he does this and if this is the correct way of doing it? if not what is the correct permissions to add and why he does this? If I am not mistaken correct permissions are to put 755 or 744, right?

Appreciate all the help and knowledge on the matter!
Correct permissions for what? and Erm, No.

"Teacher" on "tutorial" is an "id10T" and you can tell them I said so.

777 is a rookie move. If this were Poker, I'd call it.

The "correct way"...
https://codex.wordpress.org/Hardening_WordPress
https://codex.wordpress.org/Moving_WordPress

Generally speaking,
directories = 755
files = 644

Get some.
Honestly, WP is the easiest thing to "migrate".

Last edited by Habitual; 04-08-2017 at 04:25 PM.
 
1 members found this post helpful.
Old 04-08-2017, 04:36 PM   #3
codeman1234
Member
 
Registered: Jul 2009
Posts: 206

Original Poster
Rep: Reputation: 27
Question

Quote:
Originally Posted by Habitual View Post
Correct permissions for what? and Erm, No.

"Teacher" on "tutorial" is an "id10T" and you can tell them I said so.

777 is a rookie move. If this were Poker, I'd call it.

The "correct way"...
https://codex.wordpress.org/Hardening_WordPress
https://codex.wordpress.org/Moving_WordPress

Generally speaking,
directories = 755
files = 644

Get some.
Honestly, WP is the easiest thing to "migrate".
Hello Habitual,

Thanks for the fast review, yes I know WP is easy to migrate but, the tutorial is to setup AWS Server which I am not as familiar with and yes for directories is 755 and files 644 but, my question is on server folder "/var/www" is the permission there 755 too?

Because on tutorial he does command => sudo chmod 777 /var/www

Which I don't understand the point of this command he does and it seems to make server unsecured to do it, that is why I ask!

Thanks again!

Last edited by codeman1234; 04-08-2017 at 04:46 PM.
 
Old 04-08-2017, 09:23 PM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
It's like you're not even reading...

End Transmission.
 
Old 04-09-2017, 03:48 AM   #5
codeman1234
Member
 
Registered: Jul 2009
Posts: 206

Original Poster
Rep: Reputation: 27
Quote:
Originally Posted by Habitual View Post
It's like you're not even reading...

End Transmission.
I had and does not say anything about permissions on "www" folder.
 
Old 04-09-2017, 04:43 AM   #6
!!!
Member
 
Registered: Jan 2017
Location: Fremont, CA, USA
Distribution: Trying any&ALL on old/minimal
Posts: 997

Rep: Reputation: 382Reputation: 382Reputation: 382Reputation: 382
Open that link. Type: Ctrl+f to open a search. Copy&paste in this:
Avoid having any file or directory set to 777.
OR, better/easier: search that document for just: 777
Press <Enter> to perform the search. Read what you find.

Alternatively, use Google.com to search for: wordpress 777
The 1st result I find: http://codex.wordpress.org/Changing_...dangers_of_777

Does this help?

p.s. >"I am following a tutorial..."
What is the link/URL? ('We' will correct the Internet by having it deleted.)

p.p.s. Interesting further research: 7000 search hits from:
"chmod 777" www aws wordpress migration
And a half-million for just: "chmod 777" www
I'm beginning to fear that the Internet has been overrun by FakeNews

Last edited by !!!; 04-09-2017 at 05:01 AM.
 
2 members found this post helpful.
Old 04-09-2017, 06:31 AM   #7
codeman1234
Member
 
Registered: Jul 2009
Posts: 206

Original Poster
Rep: Reputation: 27
Hello !!!, Yes I found that helpful but, there is no need to be mean about it, I am sorry if I am bothering you with my question but, I saw something that I thought was not correct on a tutorial and I wanted to ask an expert opinion about it since I could not found the answer I was looking for on Google.

Also it seems I made a mistake on the request because the command instructor on tutorial uses is => "sudo chmod 777 /var/www/html" so, he is giving full access to "html" folder (where he installs wordpress) not "www" as I thought but, still I want to be sure if this is correct or not can you please confirm this to me? and if not then should I apply the 755 permission?

Thanks and appreciate all the help.
 
Old 04-09-2017, 11:31 AM   #8
codeman1234
Member
 
Registered: Jul 2009
Posts: 206

Original Poster
Rep: Reputation: 27
Hello,

Nevermind after couple of days instructor respond to me and he said that once installation is done to put back permission 755 on folder and that he forgot to mention on tutorial, anyways I appreciate all the help!
 
1 members found this post helpful.
Old 04-09-2017, 04:55 PM   #9
!!!
Member
 
Registered: Jan 2017
Location: Fremont, CA, USA
Distribution: Trying any&ALL on old/minimal
Posts: 997

Rep: Reputation: 382Reputation: 382Reputation: 382Reputation: 382
Hi... I didn't want to be 'mean', but just to respond "my 2cents" to post about "not reading", sorry.
Yea, Internet "talk" can be taken harshly; there's a concept of "thick skin" floating around forums.
And NVC espouses that the word "you" be replaced by "I feel" regex: s/you/I feel/

Anyway, glad you came to a resolution and marked it as Solved, for future searchers who hit this 777 debate!

You are NOT "bothering" at all! People love answering, even if a bit "snippy"! Sorry!
I'm a "newbie" but I think that security guru's "freak" when they hear someone mention like "no locks/doors"! Or parents finding that the teacher wrote that all locks&doors are to be removed from homes.

Last edited by !!!; 04-09-2017 at 05:50 PM.
 
  


Reply

Tags
amazon, aws, permissions, ubuntu server, www



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How to setup a Linux server on Amazon AWS, LXer Syndicated Linux News 0 02-27-2017 04:45 PM
Amazon AWS Linux servers usao Linux - Virtualization and Cloud 9 04-16-2015 11:40 AM
LXer: Canonical Brings Snappy Ubuntu Core OS to Amazon AWS LXer Syndicated Linux News 0 12-22-2014 11:40 AM
LXer: AWS: Amazon Cloud Is the Modern Windows Server LXer Syndicated Linux News 0 11-21-2013 11:21 PM
Amazon AWS windows instance backups linuxlover.chaitanya General 0 05-17-2011 12:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration