当前位置: 技术问答>linux和unix
文件属性 --w--S--T rwxrwxrwx 中的w,S,T分别代表什么?
来源: 互联网 发布时间:2015-03-29
本文导语: 如题 | w可写 s:setgid/setuid,使应用执行者拥有与应用拥有者同样的GUI/UID t:sticky bit,用于目录,如/tmp,描述如下: If a directory is writable and has S_ISVTX (the sticky bit) set,...
如题
|
w可写
s:setgid/setuid,使应用执行者拥有与应用拥有者同样的GUI/UID
t:sticky bit,用于目录,如/tmp,描述如下:
If a directory is writable and has S_ISVTX (the sticky bit)
set, files within that directory can be removed or renamed
only if one or more of the following is true (see unlink(2)
and rename(2)):
o the user owns the file
o the user owns the directory
o the file is writable by the user
o the user is a privileged user
s:setgid/setuid,使应用执行者拥有与应用拥有者同样的GUI/UID
t:sticky bit,用于目录,如/tmp,描述如下:
If a directory is writable and has S_ISVTX (the sticky bit)
set, files within that directory can be removed or renamed
only if one or more of the following is true (see unlink(2)
and rename(2)):
o the user owns the file
o the user owns the directory
o the file is writable by the user
o the user is a privileged user