Consider the following directory: drwxrwxr-x 2 root sales 4096 Jan 1 15:21 sales
Which command ensures new files created within the directory sales are owned by the group sales? (Choose two.)
A. chmod g+ssales
B. setpol -R newgroup=sales sales
C. chgrp -p sales sales
D. chown –persistent *.sales sales
E. chmod 2775 sales
A & E
error sintaxis en la A, debería haber un espacio: chmod g+s sales
The correct syntax for a is chmod g+s sales but there is no “s” symbolic reference.
chmod 2775 sales make sense
but chgrp doesnt have option -p but it does have -P key sensitive. So this question is confusing.
I would say then C and E are correct under these corrections.
If answer A is correct, the command should be: chmod g+s sales and not chmod g+ssales
A & E.
-p isn’t an option for chgrp