login.defs
The file of defaults, such as password aging and ID ranges, that useradd copies into each new account.
In more detail
Changing it affects only accounts created afterwards; existing accounts are changed with chage. It also sets the UID and GID ranges and the mode of new home directories.
Example
PASS_MAX_DAYS 60Related terms
- password aging — The rules in the shadow file that decide how long a password lasts and when its user is warned.
- useradd — The command that creates a user account.
Taught in
- Defaults For New Accounts: login.defs, useradd And skel — Red Hat Certified System Administrator (EX200) Exam Prep
- Starters, Leavers And A Service Account: Accounts On Two Families — CompTIA Linux+ (XK0-006) Exam Prep
- Accounts On Ubuntu: Skeletons, Groups And Offboarding — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- Account Files: Every Answer Is A Field — LPIC-1 Linux Administrator (101-500 and 102-500) Exam Prep