May 2017
Beginner
552 pages
28h 47m
English
In order to set permissions for files, we use the chmod command.
Assume that we need to set the permission, rwx rw- r-.
Set these permissions with chmod:
$ chmod u=rwx g=rw o=r filename
The options used here are as follows:
Use + to add permission to a user, group, or others, and use - to remove the permissions.
Add the executable permission to a file, which has the permission, rwx rw- r-:
$ chmod o+x filename
This command adds the x permission for others.
Add the executable permission to all permission categories, that is, for user, group, and others:
$ chmod a+x filename
Here a means all.
In order to remove ...