I am trying to install Prestashop and spoke with the technical support representative from BlueHost regarding questions I had on setting the file permissions to 777 as stated in the following installation instructions:
Asked
Active
Viewed 3,442 times
0
-
Are we really talking about file permissions? Or is this perhaps about a folder? – Daniel B May 29 '18 at 08:12
-
1Isn't 666 even MORE dangerous? – JohnnyVegas May 29 '18 at 08:34
-
@JohnnyVegas speaking of the devil? – Gerard H. Pille May 29 '18 at 09:08
-
What instructions? It might be useful to see what exactly its suggesting so we can point you in the right direction in addition to saying "yes, its dangerous" – Journeyman Geek May 29 '18 at 10:15
1 Answers
5
Each '7' in 777 means 'read'+'write'+'execute'. First digit defines permissions for file ouwner, second digit is for group and last digit for everyone 'other'.
Let's assume the file belongs to 'root' (aka system administrator'). Last '7' permits anyone to modify this file. So any unprivileged user may write into it some program which when executed by 'root' will give administrative privileges to anyone.
It is definitely dangerous.
John Doe
- 151