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

•

Practice Problem

•

Hard

Created by

Wayground 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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?