Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Linux Creating Users and Groups

Total questions: 27

Worksheet time: 14mins

Name
Class
Date
1.
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?
a)
Create a user account for Sarah with full access to the file server.
b)
Create a user account for Sarah and assign her to a group with read-only permissions on the marketing documents.
c)
Don't create a user account and provide Sarah with guest access.
d)
Create a user account for Sarah and grant her sudo privileges.
2.
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?
a)
useradd Alex Ben
b)
groupadd developers Alex Ben
c)
useradd -m -G developers Alex Ben
d)
passwd Alex Ben
3.
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?
a)
Set the user's password to a blank string.
b)
Modify the user's primary group.
c)
Deselect the "Create home directory" option.
d)
Use the -s /sbin/nologin flag with the useradd command.
4.
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?
a)
Modify file permissions for the directory to grant read/write access for everyone.
b)
Add your colleague to the root group.
c)
Create a group with your colleague and assign ownership of the directory to that group.
d)
Add your colleague as a secondary group for your existing user account.
5.
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?
a)
Create a user account for each administrator with root privileges.
b)
Create a group for network administrators and grant them ownership of network configuration files.
c)
Create user accounts and assign them all to the "wheel" group.
d)
Create user accounts and assign them to a custom group with sudo access limited to network configuration commands.
6.
You suspect a user account on your system might be compromised. What's the first step to investigate?
a)
Reset the password for all user accounts.
b)
Immediately delete the suspicious user account.
c)
Change the root user password.
d)
Lock the suspicious user account and investigate further.
7.
While managing user accounts, you accidentally mistype the username during account creation. How can you fix this username error?
a)
Edit the /etc/ passwd file manually.
b)
There's no way to fix the username after creation. You'll need to delete and recreate the account.
c)
Use the usermod command to modify the username.
d)
Use the passwd command to reset the password.
8.
Your company is deploying a new application server that requires a dedicated user account. This user should only have access to the application's directory structure. Which guideline should you follow when setting up the application user account?
a)
Create the user account with root privileges.
b)
Assign the application user ownership of the entire system.
c)
Create the user account with a strong, unique password and restrict its home directory to the application directory.
d)
Configure the application to run under the root user account.
9.
You're working on a development server where multiple developers collaborate on projects. How can you ensure each developer can access their project directories while maintaining individual ownership?
a)
Create a single group for all developers and grant them ownership of all project directories.
b)
Set uniform permissions on all project directories, allowing full access for everyone.
c)
Assign each developer a unique group and set ownership of their project directory to that group.
d)
Configure project directories with read-only access for everyone.
10.
You identify an inactive user account on your Linux system. What's the recommended course of action?
a)
Leave the account untouched as it might be needed in the future.
b)
Immediately delete the inactive user account.
c)
Disable the inactive user account and review its activity logs.
d)
Change the password for the inactive user account.
11.
Your company enforces strong password policies for user accounts. A new user complains their password is too complex to remember. How can you assist them?
a)
Explain the importance of strong passwords and suggest using a password manager.
b)
Generate a weak password for the user out of convenience.
c)
Allow the user to set a simple password but enforce frequent password changes.
d)
Instruct the user to write their password down and keep it in a secure location.
12.
You're troubleshooting login issues for a user. After verifying the username and password are correct, what should you check next?
a)
The user's home directory permissions.
b)
The availability of the network connection.
c)
The system uptime and resource usage.
d)
The user account status (locked, disabled, etc.).
13.
While reviewing system logs, you notice failed login attempts for a user account. What action should you take as a security precaution?
a)
Ignore the failed login attempts as they might be typos.
b)
Reset the password for all user accounts on the system.
c)
Lock the user account experiencing failed login attempts and investigate further.
14.
You're managing a Linux server that hosts a public website. What user account should the web server process run under?
a)
A user account with root privileges for maximum control.
b)
A dedicated user account created specifically for the web server process.
c)
The user account of the system administrator.
d)
A system account with limited privileges.
15.
You're tasked with auditing user accounts on a Linux system. What's the primary file used to store user account information?
a)
/etc/shadow
b)
/etc/group
c)
/etc/passwd
d)
User accounts are stored directly within the kernel.
16.
While creating a new user account, you accidentally assign the user primary group to the "root" group. What potential security risk does this create?
a)
The user will lose access to their home directory.
b)
The user will be unable to change their password.
c)
The user will inherit all administrative privileges.
d)
There won't be any security implications.
17.
You're configuring user accounts for a new database server. Each database administrator requires access to manage their assigned databases but shouldn't have access to modify system configurations. How can you achieve this access control?
a)
Create user accounts with root privileges for each administrator.
b)
Configure database access control lists (ACLs) to grant specific permissions for each administrator.
c)
Assign all database administrators to a group with full read/write access to the database directory.
d)
Modify system file permissions to grant write access to database administrators for all files.
18.
A user account on a Linux system inherently has access to all files and resources.
a)
True
b)
False
19.
The /etc/shadow file stores user account usernames and passwords in plain text.
a)
True
b)
False
20.
Assigning a user account to a group automatically grants them all permissions associated with that group.
a)
True
b)
False
21.
The useradd command can be used to create a user account without a home directory.
a)
True
b)
False
22.
It's recommended practice to create user accounts with root privileges for administrative tasks.
a)
True
b)
False
23.
The process of creating a group and assigning users to it is irreversible.
a)
True
b)
False
24.
When creating a user account for a web server process, it's secure to use the root user account.
a)
True
b)
False
25.
The best way to ensure a user remembers their complex password is to store it in a plain text file on their desktop.
a)
True
b)
False
26.
Disabling an inactive user account permanently deletes it from the system.
a)
True
b)
False
27.
The usermod command can only modify a user's password.
a)
True
b)
False