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
- OSUbuntu 26.04 LTS
- Kernel7.0.0-30-generic
- systemd259
- TimeAbout 17 min
| Server Name | IP Address | OS | Roles | CPU | RAM | HDD |
|---|---|---|---|---|---|---|
| LPIC1-A01 | 192.168.0.76 | Ubuntu 26.04 LTS | Debian-family host - dpkg and apt, which objective 102.4 names | 2 Core | 4 GB | 50 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.
- creating an account, and reading back all three files it wrote
- finding where the defaults came from
- adding secondary groups, with the
-athat must not be forgotten - setting ageing, and finding what a lock actually does
Before you start
-
One command, three files
-
Where the defaults came from
-
Secondary groups, and the `-a` that must not be forgotten
-
Ageing, and locking an account