UsingnLinux Ubuntu Create a new user with following information. Try to use fewe
ID: 3598286 • Letter: U
Question
UsingnLinux Ubuntu
Create a new user with following information.
Try to use fewer commands to complete the task.
a) User name: bbrown
b) Primary group: faculty
c) Other groups: web-author, coordinator
d) Temporary password: bob (the user needs to change it when login for the first time)
e) How many commands did you use?
f) Take two screenshots
i) Execute “id bbrown” on the command line. Take a screenshot of the execution results (#7-1). ii) Display the content of the “passwd” file. Show the line for the user “bbrown”. Take a screenshot (#7-2).
Explanation / Answer
a) adduser bbrown -------------> direct command to add a new user with the given user name
b) sudo usermod -a -G faculty bbrown -----------------> You use this to accomplish both the above tasks a & b
c)sudo groupadd -g web-author
sudo groupadd -g cordinator
// Groups can be added this way
d) passwd -e bob // e stands for expire so, thre password will expire on first log in
e) it is accomplished above in 4 commands
Once you run these, you can get the screenshots for part (f) and run command "id brown" for part (i)
take screenshot and similarly for "passwd" file, run
command => cat passwd to see the content of passwd file
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.