Exam EX200 All QuestionsBrowse all questions from this exam
Question 105

SIMULATION -

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

    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
ly01

sudo useradd alex --uid 3400 sudo passwd alex