Menu
“Users and groups, scheduled jobs with cron, at and systemd timers, and localisation.”
Topic 107 of LPIC-1 (exam 102-500) covers the jobs an admin does on every Linux machine, whatever it’s used for: creating and managing the accounts people and services log in with, making tasks run on their own at the right time, and setting the language, formats, time zone and character encoding that fit the people using it.
You’ll learn:
- How
/etc/passwd,/etc/shadowand/etc/groupare built, and howuseradd,usermod,userdel,groupadd,passwdandchagechange them - How to set up service accounts and limited, temporary or locked accounts
- How to schedule jobs with
cron,atand systemd timers, and who is allowed to use them - How locales and the
LANG,LC_*andLC_ALLvariables work - How to set the time zone with
timedatectl,/etc/localtimeandTZ - What ASCII, ISO-8859, Unicode and UTF-8 are, and how to convert files with
iconv
You’ll need: a Linux machine, a VM or a container such as docker run -it --rm debian or
docker run -it --rm ubuntu. Most commands here change system files, so you need root or sudo. Containers have no
systemd, so try timers and timedatectl on a VM or a real machine.
- 1 Manage user and group accounts and related system filesCreate, change and remove users and groups, and read the files where Linux keeps them.
- 2 Automate system administration tasks by scheduling jobsRun commands on a schedule with cron, once later with at, and the modern way with systemd timers.
- 3 Localisation and internationalisationLocales, LANG and LC_* variables, time zones and TZ, and character encodings from ASCII to UTF-8.

Byte card
The whole topic on one card
- Accounts live in /etc/passwd, /etc/shadow and /etc/group. Manage them with useradd and usermod.
- usermod -aG adds a group. -G without -a replaces every supplementary group.
- Crontab fields: minute, hour, day of month, month, day of week. System crontabs add a user field.
- at runs a job once, cron repeats it, and a systemd .timer starts the .service with its name.
- LC_ALL beats LC_* beats LANG; /etc/localtime links to the zone file in /usr/share/zoneinfo/.
Save it as a cheat sheet, or share it with someone who's learning this too.