kb

You only live once. Be free.

Have a Question?

If you have any question you can ask below or enter what you are looking for!

Permissions in linux

This is how permissions work in linux/ unix

Read

  • on a file allows the user to to see the content of the file
  • on a directory allows the user to see the content of the directory
  • value is 4

Write

  • on a file allows the user to modify (and implicitly delete) that file
  • on a directory allows the user to modify and delete its content. Also, the user is enabled to create, modify and delete the content of that directory if he can read that content.
  • value is 2

Execute

  • on a file (along with read permission) allows the user to execute the file
  • on a directory allows a user to access the directory cd directory_name and the information about that directory (metadata) ls -la
  • value is 1

Leave a Reply

Your email address will not be published. Required fields are marked *