[英]Linux permissions - user vs group permission
I know that the permissions listing are for user , then the group and the third one is for other users. 我知道权限列表是针对user的,然后该组和第三个权限是针对其他用户的。
my example : 我的例子:
_rwxr--r-- tooth face file1.txt
_rwxr--r-- eye face file2.txt
_rwxr--r-- leg face file3.txt
groups included 包括的组
tooth : face head
eye : face head
leg : body
Now, my question is : whether "leg" will have rwx permissions to file3 as it is not a member in group "face" ? 现在,我的问题是: “ leg”是否具有对file3的rwx权限,因为它不是“ face”组的成员?
The file permissions are: 文件权限为:
_rwxr--r-- leg face file3.txt
^^^ ^^^
| ^^^ |
| | others
| group
owner
This means that: 这意味着:
leg
has rwx
permissions. leg
具有rwx
权限。 face
have r--
permissions. face
其他用户具有r--
权限。 face
have r--
permissions. face
有r--
权限。 Since the owner is leg
, this user will of course have rwx
permissions. 由于所有者为
leg
,因此该用户当然具有rwx
权限。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.