您的位置:首页 > 运维架构 > Linux

linux中的特殊权限s\t

2013-10-24 10:13 169 查看
权限:

特殊权限:s
t

以文件属主的权限运行该程序

[root@localhost mnt]# ll /usr/bin/passwd

-rwsr-xr-x 1 root root 22960 2006-07-17 /usr/bin/passwd

chmod u=rwx,g=rx,o=rx /sbin/shutdown

chmod u+s
/sbin/shutdown
u+s=4755 对象为二进制可执行文件,以拥有者的身份运行

S 权 限失效
S+x=s
S=s-x

g+s(2755):和目录权限一至;目录下所有创建的文件属组和该目录相同

chmod g+s /mnt

chgrp group2 /mnt

o+t(1777):

chmod o+wrx /test

chmod o+t /test 只有根用户和文件创建者可以修改,目录的创建这可以修改
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: