Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam EX200 topic 1 question 8 discussion

Actual exam question from RedHat's EX200
Question #: 8
Topic #: 1
[All EX200 Questions]

SIMULATION -
Create a user named alex, and the user id should be 1234, and the password should be alex111.

Show Suggested Answer Hide Answer
Suggested Answer: See explanation below.
# useradd -u 1234 alex
# passwd alex
alex111
alex111

OR -
echo alex111|passwd -stdin alex

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
gavoyov606
1 week, 3 days ago
To create a user named alex with user ID 1234 and password 'alex111': ```bash sudo useradd -u 1234 -m alex # Create user 'alex' with UID 1234 and home directory sudo passwd alex # Set password for user 'alex' (enter 'alex111' twice) ``` This will create the user 'alex' with the specified user ID and password.https://shorturl.at/6nMOq
upvoted 1 times
...
ogwogwo
9 months, 2 weeks ago
With The answers I see, it makes the uid and the gid the same while the question asks only the uid to be changed.
upvoted 1 times
smdrouiss
1 month, 1 week ago
It doesn't mention the group ID
upvoted 1 times
...
...
Rahul95
1 year, 1 month ago
#useradd -u 1234 alex #passwd alex - it will ask for new password for user alex #cat /etc/passwd | grep alex or id alex - to verify
upvoted 2 times
...
ktd971
1 year, 5 months ago
useradd -u 1234 -p alex111 -m alex
upvoted 4 times
...
Mayowa15
1 year, 7 months ago
#useradd alex -u 1234 #passwd alex #alex111 #alex111
upvoted 1 times
...
SOAPGUY
1 year, 9 months ago
one more '-' needed; echo alex111 | passwd --stdin alex
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
ex Want to SAVE BIG on Certification Exam Prep?
close
ex Unlock All Exams with ExamTopics Pro 75% Off
  • arrow Choose From 1000+ Exams
  • arrow Access to 10 Exams per Month
  • arrow PDF Format Available
  • arrow Inline Discussions
  • arrow No Captcha/Robot Checks
Limited Time Offer
Ends in