Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Add users a) Add a user named “roger” (or, create your own username) using the “

ID: 3861967 • Letter: A

Question

Add users
a) Add a user named “roger” (or, create your own username) using the “useradd” command.
useradd -d /home/roger -m roger
b) Create a password for the new user using the “passwd” command
passwd 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 the users/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 have created 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 home directory. 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 groups information and see if they are in the right groups.
id roger
2) 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

Per the guidelines giving answers to first four queries:

a) Add a user named “roger” (or, create your own username) using the “useradd” command.

b) Create a password for the new user using the “passwd” command
passwd roger

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote