Knowee
Questions
Features
Study Tools

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

Question

Which of the following options can be used with the useradd command to create a user with no login permissions?

Select one:

  • a. -G
  • b. -N
  • c. -U
  • d. -L
🧐 Not the exact question you are looking for?Go ask a question

Solution

To create a user with no login permissions using the useradd command in Linux, the correct option from the provided choices is d. -L.

Explanation:

The useradd command is used to create a new user in a system. When you create a user but want to restrict their ability to log in, you can use the -L option, which locks the user's password. A locked password means that the user cannot authenticate and thus cannot log in, making it effectively impossible for them to gain access through regular means.

Here’s a brief overview of the other options:

  • a. -G: This option is used to specify supplementary groups for the user.
  • b. -N: This option is used to create a user without a home directory.
  • c. -U: This option is for enabling the user’s password immediately upon creation, which is opposite to what is needed for no login permissions.

In summary, when you want to create a user that cannot log in, using the -L flag with the useradd command is the right choice.

This problem has been solved

Similar Questions

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

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

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 SQL command is used to give a user permission to a specific database object?answerVALUESGRANTREVOKEUPDATE

1/1

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.