Skip to main content

16.5) Group Permissions (cont'd)


Looking at that same command:

chmod g+rw filename

The ‘+rw’ instructs to add the permission of reading and writing permissions. If you want to change your permissions then put ‘u’ for user in place of ‘g’.

If you want to protect a file from you modifying it then use the following command:

chmod u-rw filename