LINUX user and file permission management experiment

LINUX user and file permission management

User and file permission management experiment for LINUX entry

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 permissions for the relevant directory; then set up 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. Command Document

1. Add user account rain_1 (note: when adding user account rain_1, the user's directory rain_1 is created at the same time) Insert picture description here
2. Add group account (use groupadd command)
3. Set directory permissions and ownership (use chmod command to change rain_1 The authority of is the highest authority, and +777; use the chown command to change the owner of rain_1 to rain. Note that if you want to change the owner and group, please see the previous "Linux account and authority management" blog)Insert picture description here

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 ccc, in order to achieve the purpose of allowing everyone to access, the permissions of the ccc directory Set to the maximum, and chmod +777.)

Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_44324367/article/details/110228385