简单介绍下linux权限中的s和t
来源:互联网 发布:java环境变量配置成功 编辑:程序博客网 时间:2024/04/19 19:20
上一篇(http://blog.csdn.net/bamuta/article/details/34451371)关于权限备份恢复中出现了s,这一篇简单说明一下。
[oracle@OEL63 bin]$ chmod 6571 oracle
[oracle@OEL63 bin]$ ll oracle
-r-srws--x 1 oracle oinstall 232399083 Aug 22 2013 oracle
上例中的“6”生成了s权限,571和正常的权限没有区别。
Three permission triads first triadwhat the owner can dosecond triadwhat the group members can dothird triadwhat other users can doEach triad first characterr: readablesecond characterw: writablethird characterx: executable
s or t: executable and setuid/setgid/sticky
S or T: setuid/setgid or sticky, but not executable
1.关于权限中带S的修改方法:
[oracle@OEL63 bin]$ chmod 6571 oracle
[oracle@OEL63 bin]$ ll oracle
-r-srws--x 1 oracle oinstall 232399083 Aug 22 2013 oracle
2.s和t简单介绍:
上例中的“6”生成了s权限,571和正常的权限没有区别。
第1位“6”所在位上的数字可以是0,1(--t),2(-s-),3(-st),4(s--),5(s-t),6(ss-),7(sst)
0表示不使用任何特殊权限.
具体的说明:
s or t: executable and setuid/setgid/sticky
S or T: setuid/setgid or sticky, but not executable
Changing permission behavior with setuid, setgid, and sticky bits[edit]
Unix-like systems typically employ three additional modes. These are actually attributes but are referred to as permissions or modes. These special modes are for a file or directory overall, not by a class.
- The set user ID, setuid, or SUID mode. When a file with setuid is executed, the resulting process will assume the effective user ID given to the owner class. This enables users to be treated temporarily as root (or another user).
- The set group ID, setgid, or SGID permission. When a file with setgid is executed, the resulting process will assume the group ID given to the group class. When setgid is applied to a directory, new files and directories created under that directory will inherit the group from that directory. (Default behaviour is to use the primary group of the effective user when setting the group of new files and directories.)
- The sticky mode. (Also known as the Text mode.) The classical behaviour of the sticky bit on executable files has been to encourage the kernel to retain the resulting process image in memory beyond termination; however such use of the sticky bit is now restricted to only a minority of unix-like operating systems (HP-UX andUnixWare). On a directory, the sticky permission prevents users from renaming, moving or deleting contained files owned by users other than themselves, even if they have write permission to the directory. Only the directory owner and superuser are exempt from this.
These additional modes are also referred to as setuid bit, setgid bit, and sticky bit, due to the fact that they each occupy only one bit.
0 0
- 简单介绍下linux权限中的s和t
- Linux下s和t权限描述
- linux关于S权限和T权限的介绍
- Linux 关于S权限和T权限的介绍
- linux中的特殊权限s\t
- Linux中的s、t、i、a权限
- Linux文件权限中的R,W,X,S,T
- Linux中的特殊权限s、t、i、a
- 关于linux下s、t、i、a权限
- 关于Linux下s、t、i、a权限
- Linux下的s、t、i、a权限
- 关于Linux下s、t、i、a权限
- 关于Linux下s、t、i、a权限
- Linux下的特殊权限s t i a
- linux下文件的特殊权限s和t
- linux下文件的特殊权限s和t
- linux下文件的特殊权限s和t
- linux下文件的特殊权限s和t
- zookeeper原理(转)
- uml类图( java为例)
- 求数组的子数组之和的最大值
- MES系统质量管理功能
- Unity手游之路<十一>资源打包Assetbundle
- 简单介绍下linux权限中的s和t
- NOJ1072自行车的碰撞——超时!
- 移动crm系统
- SQL中的数字格式化
- J2EE架构师之路
- ligerUI生成popup/select 下拉表格,且点击时可以实时更新数据
- Unity手游之路<一>C#版本Protobuf
- Java中Jdbc详解
- 枸杞子泡水喝有哪些功效