Linux System Administration
User Management
Changing permissions
The owner of a file controls which users have permission to access the file and how they can access it.
You can use the chmod (change mode) command to change the permissions for that file.
Some examples:
chmod o+rx filename
chmod g+w filename
chmod a+rwx filename
chmod o-x filename
chmod u-rx filename
Note that o stands for others, g stands for group, and u stands for user (owner).
Note that r stands for read, w stands for write, and x stands for execute.
Note that the + symbol adds the permissions and the - symbol removes the permissions.
Prev
Page 16
Next