How to change folder permissions 755 in Linux

You can use the chmod command in the Linux terminal to change file permissions. To set the folder's permission to 755, you can use the following command:


chmod 755 /path/to/yourfolder

This command sets the folder's permissions to:

  • Owner: Read (4), Write (2), Execute (1)
  • Group: Read (4), Execute (1)
  • Others: Read (4), Execute (1)

This means the owner and group will have full read, write, and execute permissions, while others (everyone else) will have read and execute permissions, allowing them to access the contents of the folder but not modify it.

Make sure to replace /path/to/yourfolder with the actual path to your directory.
 

Comments

Leave a Reply