Create new users and groups and authorize

Create user group publish (publish group)

#groupadd publish

Create a user: the directory is /home/aaa, the group is publish, and the user is aaa

#useradd -s /bin/bash -g publish -d /home/aaa -m aaa

The root user sets other user passwords

#passwd  aaa

Then enter the password 2 times

Change the group the folder belongs to to publish

#chgrp -R publish /home/test

Change the group permissions, rwx together is 4+2+1=7, modify the group permissions to read, write and execute = 7, a file with fully open rwxrwxrwx permissions, the value is 777, and the current directory executes

 

#chmod -R 770 test

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326219621&siteId=291194637