102-500 Exam QuestionsBrowse all questions from this exam

102-500 Exam - Question 20


What can be specified with useradd? (Choose two.)

Show Answer
Correct Answer: BE

The 'useradd' command allows you to specify the absolute path to the user's home directory and the numeric user ID (UID) of the user. The '-d' option is used to set the home directory, and the '-u' option is used to assign a specific UID to the user. These are critical aspects of setting up a new user account, as they define where the user's personal files will be stored and the unique identifier for the user within the system.

Discussion

5 comments
Sign in to comment
babamalik
Feb 24, 2021

repeated question

LazylinuxOptions: BE
Apr 21, 2022

BE is correct

HelaoyOptions: BE
Jun 21, 2022

BE is correct

Cybersec1989Options: BE
Nov 5, 2022

BE are correct

Adam_HOptions: BE
Jan 30, 2023

When you run the useradd command, the user and group information stored in the password and group databases are updated for the newly created user account and, if specified, the home directory of the new user is created as well. The most important options which apply to the useradd command [include]: -d Create a new user account with a custom home directory -u Create a new user account with a specific UID {source: LPIC-1 (102) (Version 5.0), pages 169-170}