gpt4 book ai didi

浅谈linux rwxrwxrwt文件夹属性

转载 作者:qq735679552 更新时间:2022-09-27 22:32:09 43 4
gpt4 key购买 nike

CFSDN坚持开源创造价值,我们致力于搭建一个资源共享平台,让每一个IT人在这里找到属于你的精彩世界.

这篇CFSDN的博客文章浅谈linux rwxrwxrwt文件夹属性由作者收集整理,如果你对这篇文章有兴趣,记得点赞哟.

/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文件夹属性就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持我.

最后此篇关于浅谈linux rwxrwxrwt文件夹属性的文章就讲到这里了,如果你想了解更多关于浅谈linux rwxrwxrwt文件夹属性的内容请搜索CFSDN的文章或继续浏览相关文章,希望大家以后支持我的博客! 。

43 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com