A system administrator needs to ensure that all new files created within the /srv/collaboration directory automatically grant read and write (rw) permissions to the project_leads group. Which command will accomplish this requirement?
The correct command is setfacl -m d:g:project_leads:rw /srv/collaboration. The -m option modifies the ACL. The key part is d:, which stands for default:. This specifies that the entry should be added to the default ACL of the directory. The default ACL is inherited by new files and directories created inside /srv/collaboration. g:project_leads:rw specifies that the group project_leads should receive read and write permissions. The command setfacl -m g:project_leads:rw /srv/collaboration only sets an access ACL on the directory itself, not a default ACL for new files. The command setfacl -R -m g:project_leads:rw /srv/collaboration recursively applies the ACL to all current contents of the directory but does not set the default for new items. chmod g+s /srv/collaboration sets the setgid bit, which makes new files inherit the group ownership of the directory, but it does not specifically grant permissions; the file's umask would still control the initial permissions.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the difference between an access ACL and a default ACL?
Open an interactive chat with Bash
What does the `-m` option do in the `setfacl` command?
Open an interactive chat with Bash
How is the `setgid` bit applied using `chmod`, and why doesn't it meet the requirement in this scenario?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
Security
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access