XK0-005 · Question #757
XK0-005 Question #757: Real Exam Question with Answer & Explanation
The correct answer is A: chgrp Finance Q1/. {"question_number": 2, "correct_answer": "A, B", "explanation": "Two commands are needed: (A) 'chgrp Finance Q1/' changes the group ownership of the Q1 directory to the Finance group, and (B) 'chmod g+s Q1/' sets the setgid (Set Group ID) bit on the directory. The setgid bit ensu
Question
An organization's business office needs to collaborate on quarterly reports and asks the systems administrator to create a finance group. The administrator creates the following directory: Which of the following commands will allow all members of the finance group to have group ownership of all files created in the Q1 directory while ensuring that members of the business group preserve access? (Choose two).
Options
- Achgrp Finance Q1/
- Bchmod g+s Q1/
- Cchmod u+s Ql/
- Dchmod a+x Q1/
- Echown Finance Ql/
- Fchmod g+x Q1/
Explanation
{"question_number": 2, "correct_answer": "A, B", "explanation": "Two commands are needed: (A) 'chgrp Finance Q1/' changes the group ownership of the Q1 directory to the Finance group, and (B) 'chmod g+s Q1/' sets the setgid (Set Group ID) bit on the directory. The setgid bit ensures that any new files or subdirectories created inside Q1 automatically inherit the Finance group ownership rather than the creating user's primary group - this is what makes group collaboration seamless. 'chmod u+s' sets the setuid bit (irrelevant here), 'chmod a+x' adds execute for all users (not group ownership), 'chown Finance' changes the user owner (not group), and 'chmod g+x' only adds group execute permission without affecting file creation inheritance.", "generated_by": "claude-sonnet", "llm_judge_score": 3}
Topics
Community Discussion
No community discussion yet for this question.