Linux file permissions practice

User test preparation:

groupadd incahome ## a family (dongdaxia home) 

useradd dongdaxia   -g incahome ## so that the family owners dongdaxia belong to this family incahome

If the user exists dongdaxia with the following modifications to the user command group

-g incahome dongdaxia the usermod 
useradd -g incahome ### dongxiaomei family members of this family
useradd test than ### people outside, the owner and family members of people

 

 Create a file of test preparation;

chmod +x /dongdaxia/test.sh 
cat /dongdaxia/test.sh 
ll /dongdaxia/test.sh 

 

Summarizes the test results: Linux common file read, write, execute permissions Description

 

 

 

For a description of deleted files

 

 

Schematic:

 

 

Guess you like

Origin www.cnblogs.com/dongxu2019/p/11592440.html