CHMOD is the Unix and Linux Command to change the rights, a user, group or all users have on a file.
CHMOD is used in the following way chmod a+x file.txt.
The a+x means add the right to eXecute to all users.
Instead of a one can use u (change the right for the owner), g (change the rights for all users in the file s group), o (change the rights for all people not in the file s group).
Instead of a + one can use a - , which removes permissions or an = which deletes all other permissions and only sets the new ones.
Instead of the x you can use: - r - for reading rights
- w - for writing rights
- Any one of the ugoa described earlier, to set the same permissions as definded to the users, group...
- t - to set the sticky bit
- s - to set the users who executes the application, when executed
|