“S”linux文件权限是什么意思
发布时间:2020-05-23 23:42:00 所属栏目: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
|
我见过各种 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 (编辑:安卓应用网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
