Password Ageing and Account Expiry

A password policy arrives and six accounts are in six different states. Read /etc/shadow, set the defaults for new accounts, bring an existing account under the policy, force a password change, renew an expired account, and lock and unlock passwords.

Skill labintermediate~25 minPro

What you'll do

  • ✓Read the fields of /etc/shadow and the reports of chage -l and passwd -S
  • ✓Set password ageing defaults for new accounts in /etc/login.defs and know they do not reach existing ones
  • ✓Change maximum, minimum, warning and inactivity values of an existing account
  • ✓Force a password change at next login and set an account expiry date
  • ✓Lock and unlock a password without losing it

Lab outline

  1. 01Read
  2. 02New accounts
  3. 03Existing accounts

Before you start

  • User Account Lifecycle
  • Read and Edit Configuration Files

Every lab runs on a real machine of your own in the browser — no installs, nothing to clean up — and checks your work automatically as you go.

← All Linux System Administration labs

Your first machine is
8 seconds away.

Learn by doing on real machines — and give every AI agent one of its own.

Free forever · No credit card · Cancel anytime

Password Ageing and Account Expiry — Linux lab | Kube Labs