Is setting CHMOD to 777 Dangerous?

0

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:

Emily Smith

Posted 2018-05-29T08:04:02.987

Reputation: 1

Are we really talking about file permissions? Or is this perhaps about a folder? – Daniel B – 2018-05-29T08:12:29.883

1Isn't 666 even MORE dangerous? – JohnnyVegas – 2018-05-29T08:34:55.530

@JohnnyVegas speaking of the devil? – Gerard H. Pille – 2018-05-29T09:08:38.800

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 – 2018-05-29T10:15:57.130

Answers

4

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

Posted 2018-05-29T08:04:02.987

Reputation: 141