Security

A directory /srv/projects must be owned by the root user and the developers group. Members of developers need full access, including the ability to enter the directory, and all other users must have no access. Which commands meet this requirement?

Show the answer

Correct answerB. chown root:developers /srv/projects; chmod 770 /srv/projects

The chown syntax is user:group, so root:developers sets the right owner and group, and mode 770 gives the group full access and others none. Mode 660 is tempting but lacks the execute bit, so group members could not enter the directory.