加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

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

发布时间:2020-12-13 18:11:03 所属栏目: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 r
我见过各种 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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读