Exam EX200 All QuestionsBrowse all questions from this exam
Question 100

SIMULATION -

Create a collaborative directory/home/admins with the following characteristics:

Group ownership of /home/admins is adminuser

The directory should be readable, writable, and accessible to members of adminuser, but not to any other user. (It is understood that root has access to all files and directories on the system.)

Files created in /home/admins automatically have group ownership set to the adminuser group

    Correct Answer:

    To create a collaborative directory /home/admins with the required characteristics, follow these steps: 1. Create the directory: mkdir /home/admins 2. Change the group ownership of the directory to adminuser: chgrp adminuser /home/admins 3. Set the directory's permissions to be readable, writable, and accessible only to the adminuser group: chmod 770 /home/admins 4. Ensure that files created in the directory automatically inherit the group ownership of adminuser: chmod g+s /home/admins. These commands ensure the directory is accessible only to members of the adminuser group, with the correct group ownership and permissions.

Discussion
PENNSHARK

roupadd adminuser [root@3af65124781c ~]# mkdir /home/admins [root@3af65124781c ~]# chown :adminuser /home/admins [root@3af65124781c ~]# setfacl -m g:adminuser:rw /home/admins [root@3af65124781c ~]# chmod o-rwx /home/admins [root@3af65124781c ~]# chmod g+s /home/admins