GTKC Knowledgebase
A little bit of wisdom
Linux chmod parameters explained
Posted by  Admin on


How to use chmod in Linux.

chmod u+ = assign user permissions

chmod g+ = assign group permissions

chmod a+ = assign all permissions


Some examples:

Command:
chmod u+wrx testfile.txt

Result:
-rwx------  1 root root 0 Feb  5 16:53 testfile.txt

Command:
chmod g+wrx testfile.txt

Result:
----rwx---  1 root root 0 Feb  5 16:53 testfile.txt

Command:
chmod a+wrx testfile.txt

Result:
-rwxrwxrwx  1 root root 0 Feb  5 16:53 testfile.txt


Tags: Filesystem , Linux

Return to home page: Home