To create the directory “test” in /home, execute as root:
- mkdir /home/test
- chmod -vcR u=rwx,g=rwxs,o=- /home/test
OR
chmod -R 2770 /home/test
(these two commands both do the same thing) - groupadd testgrp
(create a new group.) - chgrp -vcR testgrp /home/test
- usermod -a -G testgrp knightm
(add user knightm to the group so he has permissions. Repeat for all users in group. To check, run “groups knightm”)
Be First to Comment