XK0-005 · Question #1595
XK0-005 Question #1595: Real Exam Question with Answer & Explanation
The correct answer is A: sudo useradd -G wheel joe. {"question_number": 6, "question": "Which of the following commands should a technician use to create an administrative account for the username Joe?", "correct_answer": "A", "explanation": "sudo useradd -G wheel joe creates the user joe and adds them to the wheel group in a sing
Question
Which of the following commands should a technician use to create an administrative account for the username Joe?
Options
- Asudo useradd -G wheel joe
- Bsudo useradd joe; sudo passwd -l joe
- Csudo useradd joe; sudo cat key.pem > ~/.ssh/authorized_keys
- Dsudo useradd joe; groupadd admin joe
Explanation
{"question_number": 6, "question": "Which of the following commands should a technician use to create an administrative account for the username Joe?", "correct_answer": "A", "explanation": "sudo useradd -G wheel joe creates the user joe and adds them to the wheel group in a single command. On Linux systems (especially RHEL/CentOS-based), membership in the wheel group grants sudo privileges, effectively making the account administrative. Option B creates the account but then locks the password (-l), preventing login. Option C incorrectly redirects an SSH key into the current user's authorized_keys instead of joe's. Option D has invalid syntax - groupadd creates a group, not adds a user to one, and the syntax shown is incorrect.", "generated_by": "claude-sonnet", "llm_judge_score": 4}
Topics
Community Discussion
No community discussion yet for this question.