Guide to Permission Management in Linux Operating System
1. Basic Concepts of Permissions (1) Users and Groups # View current user information $ id uid=1000(alice) gid=1000(alice) groups=1000(alice),10(wheel) # View system user file $ cat /etc/passwd root:x:0:0:root:/root:/bin/bash alice:x:1000:1000:Alice User:/home/alice:/bin/bash # View user group information $ cat /etc/group root:x:0:wheel:x:10:alice,bob developers:x:1001:alice,charlie (2) Basic Structure of File Permissions Permission bits example: -rwxr-xr– Position description: 1st bit: File … Read more