Linux chmod parameters explained
Posted by on 2014-09-19 14:02:41:
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