Exam XK0-005 All QuestionsBrowse all questions from this exam
Question 204

Which of the following commands should a technician use to create an administrative account for the username Joe?

    Correct Answer: A

    To create an administrative account for the username Joe, the command 'sudo useradd -G wheel joe' is appropriate. This command will create a user named Joe and add him to the 'wheel' group, which is typically associated with administrative or sudo privileges. This allows Joe to execute commands with elevated rights using 'sudo'. The other options do not correctly create an administrative user. For instance, 'sudo useradd joe; sudo passwd -l joe' locks Joe's account, 'sudo useradd joe; sudo cat key.pem > ~/.ssh/authorized_keys' is related to SSH key configuration, and 'sudo useradd joe; groupadd admin joe' incorrectly uses 'groupadd'.

Discussion
LukaDoncicOption: A

joe will never be able to walk, he is on the wheel even in LINUX+ test.

makuzikerOption: A

sudo useradd -G wheel joe This will create the user Joe, with his own userId and groupId, and will set his additional group attachments to "wheel". The wheel group typically allows running any command on the system, for any user associated with the group.

bongoboOption: A

what "wheel" ?

Operator_Zebra

Wheel refers to a wheel group member. Instead of giving a user or service account root access you can add them to a wheel group and then let that group access certain parts of the system.