File permissions in UNIX

A file can have three types of permissions:

  1. Read : Authorized user can read the contents of the file.
  2. Write : Along with read permission, it allows the allowed user to modify its contents.
  3. Execute : If the file is an executable, any allowed user can execute it

A file can be accessed by:

Ø  User : Person creating the file. He grants all the authorizations to the file
Ø  Group : Group user for the file
Ø  Others: All other users not belonging to the group or are not the creator.

Value
Significance
4
Read permission
2
Write permission
1
Execute permission
6(=4+2)
Read and write permission
7(=4+2+1)
Read,write and execute permission



Previous    Next