[英]Linux permissions group vs others
Let's suppose that for a certain file the permissions look like this:假设某个文件的权限如下所示:
rw----r--
Does this mean that everyone except for the group members have read access to the file, or that r
which appears for others overrides the group -
and gives read access to the group members as well?这是否意味着除了组成员之外的每个人都具有对该文件的读取权限,或者为其他人显示的
r
覆盖了该组-
并且也为组成员提供了读取权限?
Is there any difference for directories?目录有什么区别吗?
Yes, that will grant read permission to everyone but the members of the group.是的,这将授予除组成员之外的所有人的读取权限。 It doesn't matter if it's a directory or not.
它是否是目录并不重要。 ACLs would probably be better in a situation where one would like to do that.
在人们想要这样做的情况下,ACL 可能会更好。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.