The Complete Practical Docker Guide - Creating Users Using useradd Command

The Complete Practical Docker Guide - Creating Users Using useradd Command

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Hard

Created by

Quizizz Content

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is required to create a new user in an Ubuntu Docker container?

Admin access

Guest access

Root access

Regular user access

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command can be used to create a new user in Ubuntu?

adduser

useradd

Neither 'adduser' nor 'useradd'

Both 'adduser' and 'useradd'

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the 'passwd' command?

To delete a user

To set or change a user's password

To list all users

To create a new user

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens if you try to create a user without root privileges?

You receive a permission denied error

The user is created successfully

The system crashes

The command is ignored

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which option with 'useradd' automatically creates a home directory?

-d

-m

-h

-u

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the 'userdel' command do?

Deletes a user

Adds a new user

Changes a user's password

Lists all users

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you ensure a user's home directory is removed when deleting the user?

Use the '-r' option with 'userdel'

Use the '-d' option with 'userdel'

Use the '-h' option with 'userdel'

Use the '-m' option with 'userdel'

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?