Octal Permissions Lookup Table
Table 4.2 shows a selection of octal permissions along with their actual permissions (as shown by the ls -l command). It may help you if haven't yet been able to get your head around using octal numbers to represent absolute permissions (don't worry—you'll get used to it!). Note: the initial character representing the file type is not included.
Octal Permissions | Actual Permissions |
---|---|
400 | r-------- |
440 | r--r----- |
444 | r--r--r-- |
500 | r-x------ |
550 | r-xr-x--- |
555 | r-xr-xr-x |
600 | rw------- |
640 | rw-r----- |
660 | rw-rw---- |
664 | rw-rw-r-- |
666 | rw-rw-rw- |
700 | rwx------ |
755 | rwxr-xr-x |
775 | rwxrwxr-x |
777 | rwxrwxrwx |
1777 | rwxrwxrwt |
2444 | r--r-lr-- |
2555 | r-xr-sr-x |
4555 | r-sr-xr-x |
6555 | r-sr-sr-x |
Get Solaris™ Operating Environment Boot Camp now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.