Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FTP Rights 755 vs 777

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?

like image 640
Swag Avatar asked Sep 21 '13 12:09

Swag


People also ask

What is the difference between chmod 777 and 755?

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.

What does 777 mean in file permission?

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 .

Is chmod 755 Safe?

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.

What is the use of chmod 777?

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.


1 Answers

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.

like image 160
Israelm Avatar answered Sep 28 '22 08:09

Israelm