Essential System Services
What the exam tests
Essential System Services covers time synchronization, logging, mail transfer agents, and CUPS printing. The exam tests where services are configured, how to inspect them, and how to perform common administrative actions.
Core rules
- Time:
chronydorntpddisciplines the clock;timedatectlshows NTP synchronization,chronyc sourcesorntpq -pchecks peers.hwclock --systohcwrites the system time to the RTC. Configuration is/etc/chrony.confor/etc/ntp.conf. - Logging: rsyslog uses
/etc/rsyslog.confwith facility.severity selectors such asauthpriv.*and*.info; syslog-ng uses/etc/syslog-ng/syslog-ng.conf. systemd-journald stores the journal;journalctl -u ssh -b --since todayfilters by unit, boot, or time.Storage=persistentin/etc/systemd/journald.confkeeps logs across reboots.logrotaterotates files using/etc/logrotate.confand/etc/logrotate.d/. - Mail: an MTA such as Postfix, Exim, or Sendmail accepts and routes mail.
mailqshows the queue,newaliasesrebuilds/etc/aliases, and~/.forwardredirects a user's mail.alternativescan select the MTA. - Printing: CUPS manages queues;
lporlprsubmits jobs,lpstat -p -dlists printers and the default,lpadmin -p name -E -v URI -m modeladds or changes a queue,cancelremoves jobs, andlpmovemoves jobs between queues.
Worked example
Add a network printer reachable at ipp://printer.lab/ipp/print, enable it, and make it default:
lpadmin -p labprinter -E -v ipp://printer.lab/ipp/print -m everywhere
lpadmin -d labprinter
lpstat -p labprinter -d
Reasoning: -p names the queue, -E enables and accepts jobs, -v sets the device URI, and -m everywhere uses driverless IPP discovery. The second command sets the default; lpstat verifies state.
Traps
Without persistent journal storage, journalctl may lose logs after reboot. rsyslog selector order and ; matter. mailq shows queued messages, not delivered mail. CUPS queue names are case-sensitive; lpadmin -d sets the default but does not enable a disabled queue. NTP configuration changes need a service reload.