- Linux Shell Scripting Cookbook(Third Edition)
- Clif Flynt Sarath Lakshman Shantanu Tushar
- 48字
- 2021-07-09 19:46:28
Setting the sticky bit
The sticky bit can be applied to directories. When the sticky bit is set, only the owner can delete files, even though others have write permission for the folder.
The sticky bit is set with the +t option to chmod:
$ chmod a+t directory_name