in Web and Tech, Work

CHMOD

#PermissionrwxBinary
7read, write and executerwx111
6read and writerw-110
5read and executer-x101
4read onlyr–100
3write and execute-wx011
2write only-w-010
1execute only–x001
0none000

For example, 754 would allow:

  • “read”, “write”, and “execute” for the user class, as the binary value of 7 is 111.
  • “read” and “execute” for the Group class, as the binary value of 5 is 101.
  • Only “read” for the Others class, as the binary value of 4 is 100.

Write a Comment

Comment