Q: 2
Users in the human resources department are trying to access files in a newly created directory.
Which of the following commands will allow the users access to the files?
Options
Discussion
Option B, not D. chgrp is for group ownership, D is about SELinux which isn’t the default context here.
B. chgrp is the right pick here since it changes the group ownership for the files or directory. That way, HR users can get access as long as they're in the correct group. Pretty sure none of the other commands deal directly with group permissions.
Maybe D. Nice clear question format, seen similar on practice exams.
Be respectful. No spam.