Write commands to accomplish the following (use the manual or info pages if necessary):a. Create a user with a login name of bsmith, a UID of 733, a GECOS field entry of“accounting manager,” and a password of Gxj234b. Delete the user jdoe, but leave the home directory intactc. Change the properties of the existing user wjones such that the user has a newcomment field of “shipping” and an account expiry of March 23, 2022d. Lock the account of wjenkinse. Change the password of bsmith to We34Rtf. Change the properties of the existing user tbanks such that the user is a member ofthe managers group and has a login name of artbanksg. Create a user with the same UID and primary group as root and a login name ofwjonesh. Create a new user with a login name of jdoe who has a password of he789R andno home directoryi. Change the primary group of the user wsmith to rootj. Add the users tbanks and jdoe to the group acctg
Write commands to accomplish the following (use the manual or info pages if necessary):
a. Create a user with a login name of bsmith, a UID of 733, a GECOS field entry of
“accounting manager,” and a password of Gxj234
b. Delete the user jdoe, but leave the home directory intact
c. Change the properties of the existing user wjones such that the user has a new
comment field of “shipping” and an account expiry of March 23, 2022
d. Lock the account of wjenkins
e. Change the password of bsmith to We34Rt
f. Change the properties of the existing user tbanks such that the user is a member of
the managers group and has a login name of artbanks
g. Create a user with the same UID and primary group as root and a login name of
wjones
h. Create a new user with a login name of jdoe who has a password of he789R and
no home directory
i. Change the primary group of the user wsmith to root
j. Add the users tbanks and jdoe to the group acctg
Trending now
This is a popular solution!
Step by step
Solved in 2 steps