鱼C论坛

 找回密码
 立即注册
查看: 2849|回复: 3

[已解决]关于文件模式的问题谢谢

[复制链接]
发表于 2020-6-4 17:57:38 | 显示全部楼层 |阅读模式
10鱼币
Screenshot at 2020-06-04 17-53-13.png

如图,我知道r,w,x 的意思,但T表示什么呢,谢谢
最佳答案
2020-6-4 17:57:39
rt3 发表于 2020-6-4 21:03
可是 如果 只是 “只有文件的所有者、目录的所有者或根用户才能重命名或删除该文件” 这样的话,其他 文 ...

文档中说
treats the files in such directories

是目录中文件的权限,而不是限定目录本身。

我用了四年 Linux,也是第一次见到这个。个人感觉,知道这么个事情就可以了,工作中,大概率用不上,我也不想研究和 x 相比,具体有多大区别。

有兴趣自己试一下吧。

满意就请给个最佳,谢谢。

最佳答案

查看完整内容

文档中说 是目录中文件的权限,而不是限定目录本身。 我用了四年 Linux,也是第一次见到这个。个人感觉,知道这么个事情就可以了,工作中,大概率用不上,我也不想研究和 x 相比,具体有多大区别。 有兴趣自己试一下吧。 满意就请给个最佳,谢谢。
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2020-6-4 17:57:39 | 显示全部楼层    本楼为最佳答案   
rt3 发表于 2020-6-4 21:03
可是 如果 只是 “只有文件的所有者、目录的所有者或根用户才能重命名或删除该文件” 这样的话,其他 文 ...

文档中说
treats the files in such directories

是目录中文件的权限,而不是限定目录本身。

我用了四年 Linux,也是第一次见到这个。个人感觉,知道这么个事情就可以了,工作中,大概率用不上,我也不想研究和 x 相比,具体有多大区别。

有兴趣自己试一下吧。

满意就请给个最佳,谢谢。
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2020-6-4 20:04:25 | 显示全部楼层
本帖最后由 赚小钱 于 2020-6-4 20:06 编辑

File_permissions_and_attributes
Sticky_bit

t        The sticky bit; it can only be found in the others triad; it also implies that x is set.
T        Same as t, but x is not set; rare on regular files, and useless on folders.


In computing, the sticky bit is a user ownership access right flag that can be assigned to files and directories on Unix-like systems.

When a directory's sticky bit is set, the filesystem treats the files in such directories in a special way so only the file's owner, the directory's owner, or root user can rename or delete the file.

评分

参与人数 1荣誉 +5 鱼币 +5 贡献 +3 收起 理由
rt3 + 5 + 5 + 3 鱼C有你更精彩^_^

查看全部评分

想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

 楼主| 发表于 2020-6-4 21:03:19 | 显示全部楼层
赚小钱 发表于 2020-6-4 20:04
File_permissions_and_attributes
Sticky_bit

可是 如果 只是 “只有文件的所有者、目录的所有者或根用户才能重命名或删除该文件” 这样的话,其他 文件模式不带t 和 T的文件 也这样啊?
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2024-4-28 19:33

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表