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_nameand the information about that directory (metadata)ls -la - value is 1