Question: Using terminal in Ubuntu 1)Add users a)Add a user named roger (or,create your own username) usingthe useradd command.useradd-d/home/roger-m roger b)Create a password for the new
Using terminal in Ubuntu
1)Add users
a)Add a user named “roger” (or,create your own username) usingthe “useradd” command.useradd-d/home/roger-m roger
b)Create a password for the new user using the “passwd” commandpasswd roger
c)Login using the new account.
d)Repeat step a) to c) to create 2 or 3 other users.
e)Examine the home directory of each user under /home/.
f)Examine the following files and see what’s added for theusers/groups you created. Try to understand the new additions.
i)/etc/passwd
ii)/etc/shadow
iii)/etc/group
g)Create two groups: managers, staff
h)Add roger to the “managers” group; add other users you havecreated to the “staff” group.
i)Create some files and directories in /etc/skel.
j)Create a new user and then login to examine his/her homedirectory.What has been created already in the home directory?
k)Add Roger to a new group called “committee”.
l)Use the “id” or “groups” command to check users and groupsinformation and see if they are in the right groups.id roger
2)Create a new user with following information. Try to use fewercommands 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 loginfor the first time)
e)How many commands did you use?
i)Execute “id bbrown” on the command line. Take a screenshot ofthe execution results.
ii)Display the content of the “passwd” file. Show the line forthe user “bbrown”. Take a screenshot.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
