TransWikia.com

priority of the Linux group & user

Super User Asked by jw__fu on January 3, 2021

My current user & group is baohua-baohua.If I create a file belonging to baohua-test, the priority of the user is higher than that of the group (if the user’s permission is rw-, the file is rw).If I create a file belonging to test-baohua, the priority of the group is higher than that of the user (if the group’s permission is rw-, the file is rw).
for example:

enter image description here

enter image description here

Why is that

One Answer

Assumption: no ACL.

  • Are you the user that owns the file?
    • Yes → The owner's permissions matter. Nothing else matters. End procedure.
      (The file belonging to baohua:test fits this case.)
    • No → Are you in the group that owns the file?
      • Yes → The group's permissions matter. Nothing else matters. End procedure.
        (The file belonging to test:baohua fits this case.)
      • No → The other's permissions matter. End procedure.

Answered by Kamil Maciorowski on January 3, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP