“S”linux文件权限是什么意思

我见过各种 Linux文件权限,如rwx和rws,但我从未见过权限集rwS.有人可以向我解释国会大厦’S’代表什么?

解决方法

大写S表示文件具有setuid位设置但不可执行.
[root@host:/]$touch file
[root@host:/]$chmod 4755 file
[root@host:/]$ls -l file
-rwsr-xr-x 1 root root 0 Jul 25 15:05 file
[root@host:/]$chmod -x file
[root@host:/]$ls -l file
-rwSr--r-- 1 root root 0 Jul 25 15:05 file

相关文章

1、安装Apache。 1)执行如下命令,安装Apache服务及其扩展包...
一、先说一下用ansible批量采集机器信息的实现办法: 1、先把...
安装配置 1. 安装vsftpd 检查是否安装了vsftpd # rpm -qa | ...
如何抑制stable_secret读取关键的“net.ipv6.conf.all.stabl...
1 删除0字节文件 find -type f -size 0 -exec rm -rf {} ...
## 步骤 1:安装必要的软件包 首先,需要确保系统已安装 `dh...