欢迎来到代码驿站!

Linux

当前位置:首页 > 服务器 > Linux

浅谈linux rwxrwxrwt文件夹属性

时间:2021-03-13 09:48:55|栏目:Linux|点击:

/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

上一篇:Ubuntu16.04.5LTS安装SVN的过程

栏    目:Linux

下一篇:Linux crontab 命令的使用

本文标题:浅谈linux rwxrwxrwt文件夹属性

本文地址:http://www.codeinn.net/misctech/79905.html

推荐教程

广告投放 | 联系我们 | 版权申明

重要申明:本站所有的文章、图片、评论等,均由网友发表或上传并维护或收集自网络,属个人行为,与本站立场无关。

如果侵犯了您的权利,请与我们联系,我们将在24小时内进行处理、任何非本站因素导致的法律后果,本站均不负任何责任。

联系QQ:914707363 | 邮箱:codeinn#126.com(#换成@)

Copyright © 2020 代码驿站 版权所有