ITNuvoAkademiya
Academy homePackagesPlaylistsToolsSubnet calculatorSearchGlossary
CiscoCCNA · CCNA: networking fundamentals1. Introduction2. Network Fundamentals3. Network Access4. IP Connectivity5. IP Services6. IPv67. Security Fundamentals8. AutomationCCNP: Enterprise networks · coming soon
LinuxLinux: system administrator üçün · Linux for system administrators1. Getting to know Linux2. Working with text3. Users and permissions4. Processes and packages5. Inside the system6. Monitoring and logs7. NetworkingRed Hat Enterprise Linux · Red Hat Enterprise Linux: from beginner to advanced1. Getting started2. Packages3. Users and permissions4. SELinux5. Services6. Storage7. Networking8. Building services9. Boot and recovery10. DevOps11. Security and monitoring
FortinetFortiGate Administrator · FortiGate Administrator: from first login to ZTNA1. Getting to know FortiGate2. Routing, policy and NAT3. Security profiles4. Users and logs5. Resilience, SD-WAN and automation6. VDOM7. VPN and ZTNA8. Proxy9. DMZ
MonitoringZabbix · Zabbix: from installation to alerts1. Introduction2. Installation and the database3. Basics: groups, templates, users4. Connecting devices5. Alerts, Grafana and the API
VirtualizationProxmox VE · coming soonVMware ESXi · coming soon
My account / Sign in
AZENRU
← itnuvo.com

Password policy: chage, /etc/login.defs

Lesson 3.27 minBeginnerDecember 1, 2026

Sign in to read this lesson

One of the first questions in an audit: how often do passwords change, and when is a temporary employee's account closed? In this lesson we learn chage for existing accounts, /etc/login.defs for new ones, pwquality which sets password complexity, and forcing a password change at first login.

What you will learn

  • chage -l name shows password and account ageing; -M 90 maximum age, -m 1 minimum, -W 7 warning, -E 2026-12-31 account expiry date.
  • chage -d 0 name — the user must change the password at the next login.
  • /etc/login.defs (PASS_MAX_DAYS, PASS_MIN_DAYS, PASS_WARN_AGE) affects only newly created accounts.
  • Complexity lives in /etc/security/pwquality.conf: minlen, minclass, dcredit and so on.
  • passwd -S name shows a short status, faillock --user name the failed-attempt lock.

The lesson has 5 key points, an explanation and 5 questions. It opens with a package.