CHmod Explained

Posted by engineerisaac


Posted on 4 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.



Script:
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








Script:
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




Script:
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

Guests Cannot Post!

If you would like to Comment on this video! Consider joining the Blue community!

Register Login


Other Engineerisaac Articles