Linux Administration Bootcamp: Go from Beginner to Advanced - Switching Users and Running Commands as Others

Linux Administration Bootcamp: Go from Beginner to Advanced - Switching Users and Running Commands as Others

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Hard

Created by

Quizizz Content

FREE Resource

The video tutorial explains how to run commands and programs as other users using the DU, SU, and sudo commands. It covers the use of environment variables, the differences between SU and sudo, and how to configure sudo permissions using the sudoers file. The tutorial also highlights the advantages of using sudo over SU, such as not needing the other user's password, and provides examples of switching users and executing commands with elevated privileges.

Read more

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default user account assumed when using the 'su' command without any arguments?

Admin

Guest

Root

Oracle

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you check which user account you are currently using?

By using the 'who am I' command

By using the 'current user' command

By using the 'user check' command

By using the 'account status' command

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens to environment variables when you switch to another user using 'su' with a dash?

They are discarded unless specified

They are always retained

They are always discarded

They are retained only if specified

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is one advantage of using 'sudo' over 'su'?

It does not require the other user's password

It allows running commands without any password

It can only be used by the root user

It requires the other user's password

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you view the commands available for you to run with 'sudo'?

By using 'sudo -commands'

By using 'sudo -L'

By using 'sudo -show'

By using 'sudo -list'

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the 'visudo' command?

To create a new sudoers file

To view the sudoers file

To edit the sudoers file safely

To delete the sudoers file

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the 'sudoers' file, what does the user listed in parentheses represent?

The user who created the file

The user that the commands will run as

The user who can view the file

The user who can edit the file