I. Rights Management
1. View file properties
Ls-l
2. Permission Type
Ii. Linux Users and permissions
1. User Management
① Viewing users
ID User1
② adding users
Useradd user1
③ Deleting a user
Userdel-r user1
1. User Group
① New Group
Groupadd G1
② Deleting a group
Groupdel G1
③ adding users to a group
Gpasswd-a user1 G1
④ remove users from the group
Gpasswd-d user1 G1
3. Permission Assignment
Sudo
Iii. user-to-file relationship-permissions
1. chmod Rights Assignment
①chmod 755 File
②chmod a+x File
2. ACL authorization
①setfacl Setting file Permissions
Setfacl-m user:user1:rwx File
②getfacl Viewing file permissions
Getfacl file
③ Delete File permissions
Setfacl-x user:user1 File
④ Empty file permissions
Setfacl-b file
⑤ Creating and Deleting file permissions
You need to set ACL permissions on the directory
Setfacl-m USER:USER1:RW dir
⑥ How to set permissions on directories and subdirectories and files
Setfacl-m User:user1:rw-r dir
⑦ directory and how files inherit permissions from the parent directory
Setfacl-m D:user:user1:rw-r dir
Shell file permissions and script execution