Oracle Solaris 11 Advanced System Administrator — Question 15
User brian changes the permissions for db_data this command:
chmod 4755 db_data
What is true?
Answer options
- A. db_data now has permissions rwsr-xr-x and can be deleted only by user brian.
- B. db_data now has permissions rwsr-xr-x and, if executed, will inn with the permissions of user brian.
- C. db_data now has permissions rwxr-sr-x and can be deleted only by members of the group owning it.
- D. The permissions for db_data cannot be determined, because the permissions prior to the change have not been specified.
- E. db_data must be an ordinary file, because special permissions cannot be set on a directory.
Correct answer: C
Explanation
The correct answer is C because the command sets the setgid bit, allowing files created within the directory to inherit group ownership, and only group members can delete it. Option A is incorrect as it misrepresents the permissions, while B incorrectly states that executing it would run with brian's permissions. Option D is false as the permissions can still be understood from the command itself, and E is incorrect since special permissions can indeed be set on directories.