QUESTION6 Assume you are root. You want to locate the user ID of a particular us
ID: 3598919 • Letter: Q
Question
QUESTION6 Assume you are root. You want to locate the user ID of a particular user. Which of the following approaches would not necessarily guarantee that you would be able to obtain the user's ID? Look at the leto/group file Look at letclpasswd O Look at the letc/shadow file O Use the id command All of the above would allow you to obtain the users ID QUESTION 7 You want to add a user to a number of pre-existing groups. There are several ways to do this. Which of the following is not a way to do this? Through usermod Through the User Manager GUI, modifying the Groups tab of the User Properties Through the User Manager GUI, modifying a Group's properties Through groupmod All of the above can do this QUESTION 8 The usermod option-m is used to o create a home directory only if one was not created when the account was first generated o create a home directory even if one was created when the account was first generated delete the user's home directory o delete the user's home directory and create a new one in its place move the user's home directory to a newExplanation / Answer
Answer 6. look at the /etc/group file does not guarantee that you will be able to find the user's Id becuase it can help to find the group id, and each user is assigned a group Id but the group id can be different from the user id.
Answer 7. Through usermod
Rest all other commands does not support adding a new user to existing groups
Answer 8. move the user's home directory to a new location
'-m' option is valid only in combination with '-d' or '--home' option.
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.