Bureaucrats, cc_docs_admin, cc_staff
2,879
edits
No edit summary |
(sticky bit and ls -l) |
||
Line 48: | Line 48: | ||
or if you prefer to use the octal notation discussed above by using the mode 1000, hence | or if you prefer to use the octal notation discussed above by using the mode 1000, hence | ||
{{Command|chmod 1774 <directory name>}} | {{Command|chmod 1774 <directory name>}} | ||
to set the sticky bit and <code>rwxrwxr--</code> permissions on the directory. The sticky bit can be unset by the command | to set the sticky bit and <code>rwxrwxr--</code> permissions on the directory. | ||
The sticky bit is represented in <code>ls -l</code> output by the letter "t" or "T" in the last place of the permissions field, like so: | |||
$ ls -ld directory | |||
drwxrws--T 2 someuser def-someuser 4096 Sep 25 11:25 directory | |||
The sticky bit can be unset by the command | |||
{{Command|chmod -t <directory name>}} | {{Command|chmod -t <directory name>}} | ||
or via octal notation, | or via octal notation, |