Menu
Linux · 07 Topic · 3 steps

Administrative Tasks

“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/shadow and /etc/group are built, and how useradd, usermod, userdel, groupadd, passwd and chage change them
  • How to set up service accounts and limited, temporary or locked accounts
  • How to schedule jobs with cron, at and systemd timers, and who is allowed to use them
  • How locales and the LANG, LC_* and LC_ALL variables work
  • How to set the time zone with timedatectl, /etc/localtime and TZ
  • 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.

Start reading →
Byte card for Administrative Tasks: 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/.

Byte card

The whole topic on one card

  1. Accounts live in /etc/passwd, /etc/shadow and /etc/group. Manage them with useradd and usermod.
  2. usermod -aG adds a group. -G without -a replaces every supplementary group.
  3. Crontab fields: minute, hour, day of month, month, day of week. System crontabs add a user field.
  4. at runs a job once, cron repeats it, and a systemd .timer starts the .service with its name.
  5. 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.

Search posts and bytes

Optional account

Keep your progress everywhere

Everything on AminBytes is free to read, with or without an account. Sign in only if you want your commits, streak and merged topics saved, on every device.

or

We keep only your name, avatar and which bytes you finished, and you can delete it all anytime. Privacy