EX200 Exam QuestionsBrowse all questions from this exam

EX200 Exam - Question 105


SIMULATION -

Create a user alex with a userid of 3400. The password for this user should be redhat.

Show Answer
Correct Answer:

To create a user named alex with a user ID of 3400 and set the password to redhat, you can use the following commands. First, run 'useradd -u 3400 alex' to create the user with the specified ID. Then, set the password using 'echo redhat | passwd --stdin alex'. This sets the password to redhat for the user alex.

Discussion

1 comment
Sign in to comment
ly01
Jul 14, 2024

sudo useradd alex --uid 3400 sudo passwd alex