Linux Creating Users and Groups

Linux Creating Users and Groups

Professional Development

27 Qs

quiz-placeholder

Similar activities

CMT File Sizes and Information Review

CMT File Sizes and Information Review

11th Grade - Professional Development

22 Qs

Mircrosoft Server Admin 98-365

Mircrosoft Server Admin 98-365

KG - Professional Development

24 Qs

Keyboard Skills

Keyboard Skills

Professional Development

22 Qs

Microsoft Word (CHINESE)

Microsoft Word (CHINESE)

Professional Development

22 Qs

CĐ Y DƯỢC SÀI GÒN GV TRẦN THỊ NGỌC CHÂU

CĐ Y DƯỢC SÀI GÒN GV TRẦN THỊ NGỌC CHÂU

Professional Development

23 Qs

netdocuments knowledge

netdocuments knowledge

Professional Development

23 Qs

LIST-TUPLES-SET-DICTIONARY

LIST-TUPLES-SET-DICTIONARY

Professional Development

25 Qs

Redes de Computadores - REVISÃO

Redes de Computadores - REVISÃO

Professional Development

22 Qs

Linux Creating Users and Groups

Linux Creating Users and Groups

Assessment

Quiz

Computers

Professional Development

Practice Problem

Medium

Created by

Patrick Hines

Used 5+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

27 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You are the system administrator for a company's marketing department. A new marketing intern, Sarah Lee, needs access to the company file server but shouldn't be able to modify critical marketing documents. What's the best approach?

Create a user account for Sarah with full access to the file server.
Create a user account for Sarah and assign her to a group with read-only permissions on the marketing documents.
Don't create a user account and provide Sarah with guest access.
Create a user account for Sarah and grant her sudo privileges.

Answer explanation

Providing read-only group permissions ensures Sarah can access files while preventing unauthorized modifications.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You're managing a web server and need to create separate user accounts for two developers, Alex and Ben. Alex will manage the web application's codebase, while Ben will be responsible for uploading static content. Which command would be most appropriate to create these accounts?

useradd Alex Ben
groupadd developers Alex Ben
useradd -m -G developers Alex Ben
passwd Alex Ben

Answer explanation

The useradd -m -G developers Alex Ben command creates user accounts with home directories and assigns them both to the "developers" group.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Your company uses a Linux server to manage customer data. To ensure data security, you decide to create a dedicated user account for a data processing script. This user account shouldn't have a shell access. Which option achieves this during account creation?

Set the user's password to a blank string.
Modify the user's primary group.
Deselect the "Create home directory" option.
Use the -s /sbin/nologin flag with the useradd command.

Answer explanation

The -s /sbin/nologin flag with useradd prevents login access for the user account.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A colleague needs temporary access to manage a specific directory on your Linux system. How can you grant them access without creating a full user account?

Modify file permissions for the directory to grant read/write access for everyone.
Add your colleague to the root group.
Create a group with your colleague and assign ownership of the directory to that group.
Add your colleague as a secondary group for your existing user account.

Answer explanation

Creating a group and assigning directory ownership allows controlled access without a full user account.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You're managing a team of network administrators. Each administrator needs access to manage network configurations but shouldn't be able to modify critical system files. What's the best course of action?

Create a user account for each administrator with root privileges.
Create a group for network administrators and grant them ownership of network configuration files.
Create user accounts and assign them all to the "wheel" group.
Create user accounts and assign them to a custom group with sudo access limited to network configuration commands.

Answer explanation

Granting sudo access with specific command permissions allows administrators to manage networks without full root privileges.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You suspect a user account on your system might be compromised. What's the first step to investigate?

Reset the password for all user accounts.
Immediately delete the suspicious user account.
Change the root user password.
Lock the suspicious user account and investigate further.

Answer explanation

Locking the account prevents further access while allowing investigation to determine the compromise.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

While managing user accounts, you accidentally mistype the username during account creation. How can you fix this username error?

Edit the /etc/ passwd file manually.
There's no way to fix the username after creation. You'll need to delete and recreate the account.
Use the usermod command to modify the username.
Use the passwd command to reset the password.

Answer explanation

The usermod command allows modifying various user account attributes, including the username.

Access all questions and much more by creating a free account

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?