Which of the following options can be used with the usermod command to add a user to a supplementary group?Select one:a.-Ub.-ac.-Nd.-L
Question
Which of the following options can be used with the usermod
command to add a user to a supplementary group?
Select one:
- a.
-U
- b.
-a
- c.
-N
- d.
-L
Solution
To determine which option can be used with the usermod
command to add a user to a supplementary group, let's analyze the options provided:
- -U: This option is used to unlock a user account.
- -a: This option stands for "append." When used with the
-G
option, it allows adding the user to the supplementary group without removing them from other groups. - -N: This option is used to disable the user’s password.
- -L: This option is used to lock the user account.
Conclusion:
The correct answer is b. -a, as it is used in combination with -G
to add a user to a supplementary group without affecting their membership in other groups. The complete command would look like this:
usermod -a -G group_name username
Similar Questions
Which of the following options can be used with the usermod command to change the primary group of a user?Select one:a.-Ub.-Lc.-Nd.-g
Which of the following options can be used with the useradd command to create a user with no login permissions?Select one:a.-Gb.-Nc.-Ud.-L
Which of the following options can be used with the usermod command to unlock a user's password?Select one:a.-Lb.-Nc.-gd.-U
Which of the following options can be used with the usermod command to lock a user's password?Select one:a.-Ub.-gc.-Nd.-L
What privilege enables a user to pass it to another user using the GRANT command?Question 3Answera.SELECTb.GRANT OPTIONc.UPDATEd.REFERENCES
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.