Change Passwords and Adjust Password Aging for Local User Accounts

LinuxLinuxBeginner
Practice Now

Introduction

As a system administrator, you are responsible for managing user accounts and ensuring the security of your system. One important aspect of this is setting appropriate password policies, including password aging and password changes. In this challenge, you will learn how to change passwords and adjust password aging for local user accounts on a Linux system.


Skills Graph

%%%%{init: {'theme':'neutral'}}%%%% flowchart RL linux(("`Linux`")) -.-> linux/BasicSystemCommandsGroup(["`Basic System Commands`"]) linux/BasicSystemCommandsGroup -.-> linux/echo("`Text Display`") subgraph Lab Skills linux/echo -.-> lab-389480{{"`Change Passwords and Adjust Password Aging for Local User Accounts`"}} end

Change Passwords for Local User Accounts

Tasks

  • Change the password for the labex user account.
  • Change the password for the root user account.

Requirements

  • The new password for the labex user account must be newpassword.
  • The new password for the root user account must be rootpassword.
  • All password changes must be performed using the appropriate command-line tools.

Example

After completing this step, the labex user should be able to log in with the password newpassword, and the root user should be able to log in with the password rootpassword.

Adjust Password Aging for Local User Accounts

Tasks

  • Set the password expiration period for the labex user account to 90 days.
  • Set the password expiration period for the root user account to 180 days.

Requirements

  • The password expiration period for the labex user account must be set to 90 days.
  • The password expiration period for the root user account must be set to 180 days.
  • All password aging changes must be performed using the appropriate command-line tools.

Example

After completing this step, the labex user account should have a password expiration period of 90 days, and the root user account should have a password expiration period of 180 days.

Summary

In this challenge, you learned how to change passwords and adjust password aging for local user accounts on a Linux system. You practiced using the passwd and chage commands to manage user account passwords and password policies. These skills are essential for maintaining the security of your Linux systems and ensuring that user accounts are properly configured.

Other Linux Tutorials you may like