- 论坛徽章:
- 0
|
The restricted deletion flag or sticky bit is a single bit, whose interpretation depends on the file type. For directories, it prevents unprivileged users from removing or renaming a file in the directory unless they own the file or the directory; this is called the restricted deletion flag for the directory, and is commonly found on world-writable directories like /tmp. For regular files on some older systems, the bit saves the program’s text image on the swap device so it will load more quickly when run; this is called the sticky bit.
以上是man page中对sticky的说明。
目录设置sticky bit后对于普通用户来说,只能删除文件属主是自己的文件,确定你的uba文件能删除?从提示上看,你删除uba时是连写的权限都没有,更不用提删除了。 |
|