CertGrid CertGrid
Hands-on Lab·LPIC-1

Accounts, groups and password ageing

Objective 107.1 is about the files, not the wrapper commands. This guide creates an account and then reads back every place the system recorded it - passwd, shadow, group and the home directory - then sets password ageing and locks the account, so the shadow field can be seen changing.

102: Administrative Tasks Guide 16 of 33 Beginner

One Debian-family host. The demo account and group are created and removed inside the capture; the account's password is locked and never set.
Server NameIP AddressOSRolesCPURAMHDD
LPIC1-A01192.168.0.76Ubuntu 26.04 LTSDebian-family host - dpkg and apt, which objective 102.4 names2 Core4 GB50 GB

This guide includes

Use this because this objective is about the files rather than the wrapper commands. This matters because usermod -G without -a replaces every secondary group - the one omission that costs somebody their access.

Before you start

  1. One command, three files

  2. Where the defaults came from

  3. Secondary groups, and the `-a` that must not be forgotten

  4. Ageing, and locking an account

Official sources