当前位置:   首页安装配置浅谈linux rwxrwxrwt文件夹属性

浅谈linux rwxrwxrwt文件夹属性

发布日期:2022-04-22 18:53 | 文章来源:站长之家

/tmp 的permission是rwxrwxrwt

chmod 0777 /abc rwxrwxrwx

chmod 777 /abc rwxrwxrwx

chmod 1777 /abc rwxrwxrwt


The "t" character in your permission indicates that only the user (and the root) that has created the file inside of /tmp folder can delete/modify that specific file.

suppose chmod 1777 /tmp

here is 2 part

1 and 777

1 mean : this file only be deleted by root, its called sticky bit ( i guess) need to check again

rwx rwx rw t
owner group other only deleted by root

so this file is user has full access

group has full access

other has read and write

but this file only be deleted by root

以上这篇浅谈linux rwxrwxrwt文件夹属性就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持本站。

联系我们
关于使用场景和技术架构的更多咨询,请联系我们的销售和技术支持团队。
Yingsoo Host

在线
客服

在线客服:7*24小时在线

客服
热线

400-630-3752
7*24小时客服服务热线

关注
微信

关注官方微信
顶部