Owner (u) | Group (g) | Other (o) | |
---|---|---|---|
Read (r) | |||
Write (w) | |||
Execute (x) |
Octal Value
000
Symbolic
---------
Command
chmod 000 filename
chmod u=---,g=---,o=--- filename
About Chmod
Chmod (change file mode bits) is a Unix/Linux command used to change the permissions of files and directories. Permissions control who can read, write, or execute a file.
Permission Values:
- Read (r): - Allows viewing file contents
- Write (w): - Allows modifying file contents
- Execute (x): - Allows running the file as a program
Add these values together for each user category (Owner, Group, Others) to get the octal permission.