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