简体   繁体   English

Linux权限-用户与组权限

[英]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: 这意味着:

  • user leg has rwx permissions. 用户leg具有rwx权限。
  • other users from group face have r-- permissions. face其他用户具有r--权限。
  • the rest of the users who are not in the group face have r-- permissions. 谁在组不是用户的其余facer--权限。

Since the owner is leg , this user will of course have rwx permissions. 由于所有者为leg ,因此该用户当然具有rwx权限。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM