Technical documentation: user and file permission management

1. Experimental environment The
company provides the Linux host to the technical department as a development server. According to the composition of the project team in the department, first establish the corresponding group account, user account, and set the permissions for the related directory; then set a shared data storage directory to facilitate data exchange between colleagues

2. Requirements description
1. Create a user directory
2. Add group accounts and user accounts
3. Set directory permissions and attribution
4. Create a public data storage directory

3. Technical documentation
1. Add user account wangwu (note: when adding user account wangwu, the user directory wangwu is also created)
Insert picture description here

2. Add a group account (using the groupadd command)
Insert picture description here

3. Set directory permissions and ownership (use the chmod command to change the permission of wangwu to the highest permission, and +777; use the chown command to change the owner of wangwu to gcc. Note that if you want to change the owner and group, please see the previous article "Linux Account and Authority Management" blog)
Insert picture description here
Insert picture description here

4. Establish a public data storage directory (create a data storage directory under the directory you need, here is a data storage directory named hahaha, in order to achieve the purpose of allowing everyone to access, the permissions of the hahaha directory Set to the maximum, and chmod +777.)

Insert picture description here

Guess you like

Origin blog.csdn.net/Gengchenchen/article/details/109923899
Recommended