ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 346 - XK0-005 discussion

Report
Export

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

A.

sudo useradd -G wheel joe

Answers
A.

sudo useradd -G wheel joe

B.

sudo useradd joe; sudo passwd -l joe

Answers
B.

sudo useradd joe; sudo passwd -l joe

C.

sudo useradd joe; sudo cat key.pem > ~/.ssh/authorized_keys

Answers
C.

sudo useradd joe; sudo cat key.pem > ~/.ssh/authorized_keys

D.

sudo useradd joe; groupadd admin joe

Answers
D.

sudo useradd joe; groupadd admin joe

Suggested answer: A

Explanation:

The -G wheel option adds the user joe to the wheel group, which is a special group that allows users to execute administrative commands using sudo. This is the correct way to create a user with administrative privileges in many Linux distributions, including Red Hat-based ones.

asked 09/10/2024
Simon Liu
36 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first