CHmod Explained

Posted by engineerisaac


Posted on 2 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

Leave a Comment:
Bill Murry - Posted 29 Minutes Ago.
This is a Test comment.