CHmod Explained

Posted by engineerisaac


Posted on 7 months ago

CHmod is a Permission set in Linux. In Unix-like operating systems, chmod is the command and system call which may change the access permissions to file system objects. It may also alter special mode flags. The request is filtered by the umask.



The Permission numbers are by Value then group.




0 == --- == no access

1 == --x == execute

2 == -w- == write

3 == -wx == write / execute

4 == r-- == read

5 == r-x == read / execute

6 == rw- == read / write

7 == rwx == read / write / execute










OWNER GROUP WORLD

r w x r w x r w x

1 1 1 1 0 1 1 0 1

7 5 5

|______|_______|

|

755






chmod 600 file – owner can read and write

chmod 700 file – owner can read, write and execute

chmod 666 file – all can read and write

chmod 777 file – all can read, write and execute


Comments are For the Community.

If you would like to Comment, Consider joining the Community!

We believe in accountability. Your comments are connected to your profile.

Register Login


Other Engineerisaac Articles