Systems Support Specialist Resetting a Linux User Password Quiz

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Thames
T
Thames
Community Contributor
Quizzes Created: 11982 | Total Attempts: 187,298
| Questions: 20 | Updated: Aug 14, 2026
Please wait...
Question 1 / 21
🏆 Rank #-- ▾
0 %
0/100
Score 0/100

1. Which field in /etc/shadow contains the password hash?

Explanation

The `/etc/shadow` file stores account information in colon-separated fields. The first field contains the username, and the second contains the password hash (or a marker indicating that password authentication is disabled or handled elsewhere). Subsequent fields contain password-aging and account-expiration information.

Submit
Please wait...
About This Quiz
Systems Support Specialist Resetting A Linux User Password Quiz - Quiz

This quiz evaluates college-level knowledge of Linux user password management and reset procedures essential for systems support specialists. It covers authentication mechanisms, password recovery tools, file permissions, and security best practices relevant to the CompTIA Linux+ certification. Mastering these skills is critical for maintaining system security and helping users regain... see moreaccess to their accounts. see less

2.

What first name or nickname would you like us to use?

You may optionally provide this to label your report, leaderboard, or certificate.

2. Which utility displays password expiration information for a user?

Explanation

`chage -l username` displays the password-aging details for the specified account, including when the password was last changed, its expiration date, and any account or password aging limits. The other commands serve different purposes: `passwd -l` locks an account, `lastlog` shows recent login information, and `finger` displays user details.

Submit

3. What is the purpose of password aging in Linux systems?

Explanation

Password aging sets an expiration period for user passwords, requiring users to update them regularly. This helps reduce the risk of compromised or unchanged passwords being used for extended periods.

Submit

4. How are failed login attempts typically logged in Linux?

Explanation

Failed login attempts are recorded in authentication logs, which capture security-related events such as login successes and failures. Debian-based systems typically use `/var/log/auth.log`, while Red Hat-based systems commonly use `/var/log/secure`.

Submit

5. What does the 'usermod' command do in password management?

Explanation

The `usermod` command modifies settings for an existing user account. Depending on its options, it can change the login shell, home directory, group memberships, or account name. Password changes are typically handled with `passwd`, while deleting accounts and displaying password information require different commands.

Submit

6. When resetting a user's password, what security best practice should be followed?

Explanation

A temporary password provides immediate access while limiting how long the reset credential remains in use. Requiring the user to create a new password at their next login ensures the temporary password is replaced with one they control.

Submit

7. Which file typically contains PAM configuration rules?

Explanation

PAM (Pluggable Authentication Modules) rules are typically defined in `/etc/pam.conf` or in separate service-specific configuration files under `/etc/pam.d/`. These files specify which authentication, account, password, and session modules applications should use and how those modules are evaluated.

Submit

8. What is PAM in the context of Linux authentication?

Explanation

PAM stands for Pluggable Authentication Modules. It provides a flexible framework that lets Linux applications use configurable modules to handle authentication and related account-management tasks, without requiring each application to implement those functions independently.

Submit

9. How can password expiration policies be enforced in Linux?

Explanation

Password expiration can be managed with `chage`, which sets password-aging rules for individual accounts, including expiration dates and warning periods. The `/etc/login.defs` file defines default password-aging settings, generally applied when new accounts are created. Using both allows administrators to establish system-wide defaults and customize policies for specific users.

Submit

10. What does 'passwd -e username' do?

Explanation

The `-e` option marks the user’s password as expired. The user must change it at their next login before continuing, subject to the system’s password and login policies.

Submit

11. Which command is used to change a user's password in Linux?

Explanation

The `passwd` command is used to change a user’s password in Linux. A user can run it to update their own password, while an administrator can use it to change passwords for other accounts.

Submit

12. What is the default password hashing algorithm in modern Linux systems?

Explanation

Modern Linux systems typically use SHA-256 or SHA-512 to hash passwords, with SHA-512 commonly selected by default in many distributions. A unique salt is added to each password before hashing, making precomputed attacks less effective. MD5 and DES are outdated, while Base64 is an encoding method, not a password-hashing algorithm.

Submit

13. How can a systems support specialist unlock a locked user account?

Explanation

Running `sudo passwd -u username` removes the password lock on the specified account, allowing the user to authenticate again. Administrative privileges are required because changing another user’s account status is a privileged operation. This is more appropriate than deleting the account or rebooting the system.

Submit

14. What does 'passwd -l username' do?

Explanation

`passwd -l username` locks the account’s password by disabling password-based authentication, typically by adding a lock marker to the encrypted password. The user can no longer log in using that password until an administrator unlocks it, for example with `passwd -u username`.

Submit

15. Which tool is used to safely edit the sudoers file?

Explanation

visudo is the recommended utility for modifying the sudoers configuration. It opens the file in the configured text editor and checks its syntax before saving, helping prevent errors that could block administrative access. It also uses locking to reduce the risk of conflicting edits. Directly editing /etc/sudoers with a regular editor skips these safeguards.

Submit

16. What is the purpose of the '/etc/sudoers' file?

Explanation

The `/etc/sudoers` file specifies which users or groups may run commands with elevated privileges using `sudo`. It can also define which commands they may run and on which hosts, allowing administrators to grant controlled access without sharing the root password.

Submit

17. If a user forgets their password, which method can a systems support specialist use to reset it?

Explanation

A systems support specialist can reset a user’s password with `sudo passwd username`. The command prompts for a new password and updates the system’s password records, without deleting the account or directly editing protected files.

Submit

18. What does the 'sudo' command allow a user to do?

Explanation

The `sudo` command lets an authorized user run a specific command with elevated privileges, typically those of the system administrator (root). This is useful for performing tasks that require extra permissions without logging in as the root account.

Submit

19. Which permission level is required to reset another user's password?

Explanation

Resetting another user’s password requires administrative access because it changes protected system account information. Root can perform this action directly, while a user with sudo privileges can run the password-reset command with elevated authority. Ordinary user, group, or file-owner permissions do not grant access to modify another user’s credentials.

Submit

20. What file stores encrypted user password hashes in modern Linux systems?

Explanation

Modern Linux systems store encrypted password hashes in `/etc/shadow`, which is typically readable only by privileged users. The `/etc/passwd` file contains account information and a placeholder indicating that password hashes are stored separately. This separation helps protect password data from unauthorized access.

Submit
×
Saved
Thank you for your feedback!
View My Results
Cancel
  • All
    All (20)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
Which field in /etc/shadow contains the password hash?
Which utility displays password expiration information for a user?
What is the purpose of password aging in Linux systems?
How are failed login attempts typically logged in Linux?
What does the 'usermod' command do in password management?
When resetting a user's password, what security best practice should...
Which file typically contains PAM configuration rules?
What is PAM in the context of Linux authentication?
How can password expiration policies be enforced in Linux?
What does 'passwd -e username' do?
Which command is used to change a user's password in Linux?
What is the default password hashing algorithm in modern Linux...
How can a systems support specialist unlock a locked user account?
What does 'passwd -l username' do?
Which tool is used to safely edit the sudoers file?
What is the purpose of the '/etc/sudoers' file?
If a user forgets their password, which method can a systems support...
What does the 'sudo' command allow a user to do?
Which permission level is required to reset another user's password?
What file stores encrypted user password hashes in modern Linux...
play-Mute sad happy unanswered_answer up-hover down-hover success oval cancel Check box square blue
Alert!