symbolic mode

A chmod permission change written as who, operator and rights, such as u+x or go-w.

In more detail

It changes only the rights you name and leaves the rest alone, which makes it safer than a numeric mode for small adjustments. = sets exactly the rights given for those classes.

Examples

chmod u+x notes.txt
chmod a=r notes.txt
It names the class (u, g, o or a), the operation (+ add, - remove, = set exactly) and the permissions. Because it changes only what you name, it is safer in a runbook than replacing every bit with a guessed octal number. Inspect the resulting mode afterwards.
before=640 change=g+w after=660 shows group write added while others stay unable to write.

Related terms

Taught in

References