Related to file and directory permissions and umask: Why the command umask (shows the octal form) and umask -S
(shows the symbolic form) show different (actually the option -S
shows the bits negations of the octal form)? I was expecting the umask in symbolic form for umask 024
to be u=---,g=w,o=r
but it shows like this:
[user1@server-base ~]$ umask
0024
[user1@server-base ~]$ umask -S
u=rwx,g=rx,o=wx
umask 024
777 - 024
results in753
which isu=rwx,g=rx,o=wx
.