Linux Fundamentals - Creating Users Using the useradd Command

Linux Fundamentals - Creating Users Using the useradd Command

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Hard

Created by

Quizizz Content

FREE Resource

The video tutorial explains how to create and manage users in an Ubuntu Docker container. It covers the use of 'user add' and 'add user' commands, setting passwords, creating home directories, and removing users. The tutorial also discusses the importance of root access and demonstrates how to modify default shell settings for new users.

Read more

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

Guest access

Regular user access

Root access

Admin access

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command allows you to create a new user with a custom home directory?

useradd

userdel

adduser

usermod

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens if you try to log in as a new user without setting a password?

You will be denied access

You will be prompted to set a password

You can log in without a password

The system will crash

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which option with 'useradd' automatically creates a home directory for the new user?

-d

-u

-h

-m

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the 'userdel -r' command do?

Changes the user's password

Only removes the user's home directory

Removes a user but keeps their home directory

Removes a user and their home directory

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default shell for new users created with 'useradd'?

/bin/ch

/bin/sh

/bin/zsh

/bin/bash

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you change the default shell for new users in the configuration file?

By using the 'chsh' command

By modifying /etc/default/useradd

By running 'useradd -s'

By editing /etc/passwd

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?