|
|
发表于 2007-3-14 10:22:11
|
显示全部楼层
这里的s叫做sticky可以设置suid, sgid, 目录的组执行权限被设置了该位(sgid),任何加到该目录下的文件的组自动成为该目录所属的组.
这个功能在CVS里用的比较多.
如果是文件具有粘滞位的话(suid),执行的时候就具有文件属主的权限. 如/user/bin/passwd
man chmod
STICKY FILES
On older Unix systems, the sticky bit caused executable files to be
hoarded in swap space. This feature is not useful on modern VM sys-
tems, and the Linux kernel ignores the sticky bit on files. Other ker-
nels may use the sticky bit on files for system-defined purposes. On
some systems, only the superuser can set the sticky bit on files.
STICKY DIRECTORIES
When the sticky bit is set on a directory, files in that directory may
be unlinked or renamed only by root or their owner. Without the sticky
bit, anyone able to write to the directory can delete or rename files.
The sticky bit is commonly found on directories, such as /tmp, that are
world-writable.
这样应该清楚了. |
|