Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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!
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.
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.
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.
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
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?
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!
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.