Changing access modes
Access modes can be changed with the chmod command, which accepts either octal or symbolic access mode specifications. Octal bits, as shown in the previous section, are specified explicitly. However, some people prefer to use symbolic forms because they usually modify an existing mode instead of completely replacing it. Symbolic mode specifications have three parts, made up of individual characters, as shown in Table 7-5.
Take away permission
Set permission exactly
Execute permission for directories and files with another execute permission, but not plain files
SUID or SGID permissions
The individual user class characters and permissions
characters may be grouped to form compound expressions, such as
ug for user and group combined or
rw for read and write. Here are
some examples of symbolic mode specifications:
Add execute permission for the user.
Remove write permission from group and other classes.
Set the sticky bit.
Set read and write, but not execute, permissions for everyone.
Give everyone execute permission for directories and for those files with any existing execute permission.
The chmod command is used to modify the mode.