A system administrator needs to create a shared group 'projectx' and add existing users 'bob' and 'carol' to it. The users need to collaborate on files in a directory /projectx. What is the correct sequence of commands to set up the group and ensure new files created in /projectx are automatically owned by the group 'projectx'?
Correct commands to add to group and set setgid.
Why this answer
Option B is correct because -aG adds supplemental groups without removing existing ones; g+s sets the setgid bit so new files inherit group. Option A is wrong because -G without -a replaces all groups. Option C is wrong because usermod -G without -a and also passing two users is not valid syntax.
Option D uses invalid commands or options (adduser is distribution-specific and chmod u+s is setuid, not setgid).