I know that 777 gives more write - rights, but can people who visit your site change your file when is has the 777 instead of 755?
Sometimes it's enough when my file has the rights of 755, but I do sometimes 777, is that bad?
People don't recommend it, but why? Can people access it when it is on 777? Or are there more things that I don't know?
A 777 permission on the directory means that everyone has access to read/write/execute (execute on a directory means that you can do an ls of the directory). 755 means read and execute access for everyone and also write access for the owner of the file.
To sum it up, 777 means the file/ directory is granted read, write and execute permissions for all three user classes, including the owner, group members, and others. It's denoted as rwxrwxrwx .
It's not safe to leave files in 0755, as you are turning on the execution bit. The recommended file permission for WHM/cPanel hosting environment is 0644 for files and 0755 for directories.
The command chmod -R 777 / makes every single file on the system under / (root) have rwxrwxrwx permissions. This is equivalent to allowing ALL users read/write/execute permissions.
A 777 permission on the directory means that everyone has access to read/write/execute (execute on a directory means that you can do a ls of the directory).
755 means read and execute access for everyone and also write access for the owner of the file. When you perform chmod 755 filename command you allow everyone to read and execute the file, owner is allowed to write to the file as well.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With