Chapter 13: File Permissions and Ownership
Chapter 13: File Permissions and Ownership
Ownership
Example Meaning
chmod u+x myscript Adds execute permission for the user
owner
chmod g-w file1 Removes write permission from the group
owner
chmod o=r,g-w,u+x myscript Assigns others read, removes write from
the group owner and adds execute
permission from the user owner
chmod a=- file1 Assign everyone no permission