CompTIA Linux+ Guide to Linux Certification (4th Edition) Chapter 10, Problem 6D
ID: 3777709 • Letter: C
Question
CompTIA Linux+ Guide to Linux Certification (4th Edition)
Chapter 10, Problem 6DE (Discovery Excercise)
6. Write commands to accomplish the following (use the manual or info pages if necessary):
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
Explanation / Answer
i)usermod -g root wsmith
j)usermod -a -G acctg tbanks
usermod -a -G acctg jdoe
h)useradd -ou 0 -g 0 wjones
or
->useradd -M jdoe
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.