406. sudo, PAM and polkit
An administrator on KDOS is an account in the wheel group, and three pieces of software turn that membership into rights: sudo runs a command as root after asking for the account’s own password, PAM is the library every login, the lock screen and sudo check a password through, and polkit answers the system daemons that ask whether a user may perform an action, asking for a password through Plasma’s authentication agent where an action’s policy says so. This page shows the files of all three, how to give an account rights and check what it has, how to add a rule of your own, and what to look at when a request is refused. Who polkit answers and how is in the KDOS book’s polkit and the authentication agent.
Installation
| What | Port |
|---|---|
sudo, sudoedit, visudo |
sudo |
libpam, pam_unix and the other modules, the shared PAM stacks |
pam |
polkitd, pkexec, pkaction, pkcheck |
polkit, built with elogind as its session tracker |
| The authentication agent, the password dialog for polkit in a Plasma session | polkit-kde-agent-1 |
pam_elogind and pam_turnstile, which register a login as a session and start the user’s services |
elogind, turnstile |
pam_fprintd, the fingerprint module in sudo’s stack |
fprintd, over libfprint |
All of them are on the image. polkitd is started by /etc/init.d/41_polkitd.sh, from the tree’s fs/ overlay, after the system bus and before NetworkManager; the image ships no polkitd marker in /etc/service.disabled/, so it starts on the live medium and on an installed system. The account it runs as, polkitd, is made by the polkit port’s postinstall.sh:
root="${PKG_ROOT:-/}"
grep -q '^polkitd:' "$root/etc/group" 2>/dev/null || groupadd -R "$root" -r polkitd
grep -q '^polkitd:' "$root/etc/passwd" 2>/dev/null || \
useradd -R "$root" -r -g polkitd -d /nonexistent -s /sbin/nologin polkitd
ports/core/auth/polkit/postinstall.sh, lines 19–22
Not every password check goes through PAM. These do, each with the PAM service file named:
| Program | /etc/pam.d/ file |
From |
|---|---|---|
sudo, sudoedit |
sudo |
the sudo port |
polkit’s password helper, polkit-agent-helper-1, and pkexec |
polkit-1 |
the polkit port |
vlock |
vlock |
the kbd port |
| CUPS | cups |
the cups port |
The console login on tty2 and the serial line |
login |
the util-linux-login port |
| SDDM: a password login, an automatic login and the greeter’s own session | sddm, sddm-autologin, sddm-greeter |
the sddm port |
| The lock screen: a password, and a fingerprint | kde, kde-fingerprint |
the kscreenlocker port |
| turnstile’s own session for the user’s services | turnstiled |
the turnstile port |
PostgreSQL is built with PAM as well, and uses it only for a pg_hba.conf line whose method is pam; it has no file in /etc/pam.d, so other answers for it and refuses.
su and passwd are shadow’s, built without PAM, and read /etc/shadow themselves. A process that is not root, such as the lock screen, checks a password through pam_unix, which asks the setuid helper unix_chkpwd. See Users and groups.
Configuration
sudo
/etc/sudoers is the file sudo’s own install writes, unchanged; its last line reads every file in /etc/sudoers.d. /etc/sudoers.d/00-sudo is the KDOS rule, mode 440, written by ports/core/auth/sudo/build.sh:
cat > $PKG/etc/sudoers.d/00-sudo << "EOF"
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin"
Defaults env_keep += "EDITOR VISUAL SUDO_EDITOR"
%wheel ALL=(ALL) ALL
EOF
chmod 440 $PKG/etc/sudoers.d/00-sudo
ports/core/auth/sudo/build.sh, lines 57–62
secure_path is the PATH every command run through sudo gets. env_keep carries the three editor variables through, so sudoedit and visudo open the editor the shell names, with nvim and then nano as the build’s fallbacks. The last line lets every member of wheel run any command as any user after typing their own password. The build’s configure switches, among them the password prompt [sudo] password for <user>:, are on the sudo page.
/etc/pam.d/sudo, from the same build.sh. A fingerprint is tried first, when fprintd is installed and the account has one enrolled; the password follows:
mkdir -m 755 $PKG/etc/pam.d
cat > $PKG/etc/pam.d/sudo << "EOF"
# Begin /etc/pam.d/sudo
# an enrolled finger, when there is a reader and one is on file; the leading
# dash skips the line on an image without fprintd rather than failing it
-auth sufficient pam_fprintd.so
# include the default auth settings
auth include system-auth
# include the default account settings
account include system-account
# Set default environment variables for the service user
session required pam_env.so
# include system session defaults
session include system-session
# End /etc/pam.d/sudo
EOF
chmod 644 $PKG/etc/pam.d/sudo
ports/core/auth/sudo/build.sh, lines 34–56
PAM
/etc/pam.d/system-auth, system-account, system-session, system-password and system-login and other are written by ports/core/auth/pam/build.sh. The first four are the shared stacks the service files include; system-login is the stack of every login, and adds pam_turnstile and pam_elogind to the session; other is used by any program that has no file of its own, and refuses everything:
install -vdm755 $PKG/etc/pam.d
cat > $PKG/etc/pam.d/system-auth << "EOF"
# Begin /etc/pam.d/system-auth
account required pam_unix.so
auth required pam_unix.so nullok
auth optional pam_permit.so
session required pam_limits.so
session required pam_unix.so
password required pam_unix.so sha512 shadow try_first_pass
# End /etc/pam.d/system-auth
EOF
cat > $PKG/etc/pam.d/system-account << "EOF"
# Begin /etc/pam.d/system-account
account required pam_unix.so
# End /etc/pam.d/system-account
EOF
cat > $PKG/etc/pam.d/system-session << "EOF"
# Begin /etc/pam.d/system-session
session required pam_limits.so
session required pam_unix.so
# End /etc/pam.d/system-session
EOF
cat > $PKG/etc/pam.d/system-password << "EOF"
# Begin /etc/pam.d/system-password
password required pam_unix.so sha512 shadow try_first_pass
# End /etc/pam.d/system-password
EOF
cat > $PKG/etc/pam.d/system-login << "EOF"
# Begin /etc/pam.d/system-login
auth include system-auth
account include system-account
password include system-password
session include system-session
-session optional pam_turnstile.so
-session optional pam_elogind.so
# End /etc/pam.d/system-login
EOF
cat > $PKG/etc/pam.d/other << "EOF"
# Begin /etc/pam.d/other
auth required pam_warn.so
auth required pam_deny.so
account required pam_warn.so
account required pam_deny.so
password required pam_warn.so
password required pam_deny.so
session required pam_warn.so
session required pam_deny.so
# End /etc/pam.d/other
EOF
ports/core/auth/pam/build.sh, lines 34–87
/etc/pam.d/polkit-1 is installed by polkit’s build and includes the four shared stacks.
polkit
polkit asks elogind about the caller: a process in the active local session at the machine is active, and an action’s allow_active answer applies to it, so the person at the machine suspends, joins a network, mounts a stick or sets the time with no password. Where an action asks for an administrator, Plasma’s agent shows the dialog, and the password of any member of wheel answers it.
/etc/polkit-1/rules.d/50-kdos.rules, from fs/etc/polkit-1/rules.d/50-kdos.rules, is what KDOS changes. It refuses a few actions this system does not do, holds a few at a password for everyone, and grants a member of wheel at the machine a short list without one; for anything else it returns nothing, and the action’s own policy decides. The build sets the file and its directory to root and mode 644 and 755; see The mode of /etc/shadow.
/*
* KDOS: what polkit's shipped defaults do not decide the way this desktop
* wants, and nothing else.
*
* THE DEFAULTS DECIDE FIRST. polkitd tracks sessions through elogind, so a
* subject in the active local session — the person at the machine — gets each
* action's allow_active, a local session switched away from gets
* allow_inactive, and anything else gets allow_any: an SSH login (openssh
* registers no session), a cron job, a daemon. polkit-kde-authentication-
* agent-1 answers every password the defaults ask for in a Plasma session.
* This file changes an answer only where KDOS wants another one, and names
* the action each time.
*
* THE RULES DECIDE; THE AGENT ONLY ANSWERS WHAT THEY LEAVE. A rule returning
* YES is a grant nobody is asked about, so one exists only for something an
* administrator at the keyboard does as a matter of course and whose default
* would stop them for a password every time. A rule returning AUTH_ADMIN_KEEP
* is a prompt made explicit, so a broader rule in a file sorted after this one
* cannot turn it into a silent yes. A rule returning NO is something this
* system does not do, refused where the defaults would have asked.
*
* WHEEL MEANS WHEEL AT THE MACHINE. Every grant to the group also tests
* subject.local && subject.active, so it reaches the administrator in the
* foreground session and never an SSH login, a backgrounded job or a session
* switched away from. Those get the defaults, and a wheel member there has
* sudo, which asks.
*
* WHAT THE GRANTS GIVE. The administrator at the machine edits and deletes
* system network connections, and can read back their passphrases; mounts,
* unlocks and formats internal disks and opens a raw device for an image
* writer; and saves root-owned files from Kate, repartitions with GParted,
* manages libvirt's system guests and ends other users' processes from
* Resources after one password every five minutes. That is the group whose
* shipped sudoers line is `%wheel ALL=(ALL) ALL`, so each is a shortcut to
* something they already have rather than a new capability.
*
* A NAME NOT IN THIS FILE IS THE DEFAULT'S. Removable drives, Wi-Fi and the
* network toggles, hotspots, smart cards, modems, suspend and power-off,
* brightness, power profiles, the time zone and network time, the accent and
* the rest are allow_active upstream already, and the person at the machine
* gets them with no rule here. testing/fixtures/polkit holds the measured
* defaults and the table of answers this file must produce, and
* testing/selftest.sh evaluates this file against both.
*/
polkit.addRule(function (action, subject) {
var here = subject.local && subject.active;
switch (action.id) {
/*
* THE SYSTEM CRONTAB IS NOT OFFERED. crond runs each user's own crontab
* and is built to read no /etc/crontab: the timers the system ships are
* snooze's, in /etc/kdos/timers.d. A Task Scheduler save into the system
* crontab would write a file nothing reads, so it is refused where the
* save is asked for, and the user's own crontab, which needs no polkit,
* is the one it edits.
*/
case "local.kcron.crontab.save":
return polkit.Result.NO;
/*
* BATTERY CHARGE THRESHOLDS ARE TLP's. TLP sets them from /etc/tlp.d at
* boot and again each time it applies a profile, so a limit PowerDevil's
* helper wrote would last until TLP next ran, and a battery page showing
* a limit the battery does not keep is worse than one that refuses. The
* two writes are refused for everyone; the reads stay the defaults'.
*/
case "org.kde.powerdevil.chargethresholdhelper.setthreshold":
case "org.kde.powerdevil.chargethresholdhelper.setconservationmode":
return polkit.Result.NO;
/*
* HELD AT A PASSWORD FOR EVERYONE AT THE MACHINE, whatever comes after
* this file: flashing unsigned system firmware, letting a Thunderbolt
* device onto the PCIe bus, and gvfs's admin:// writes as root. Away from
* the machine the defaults apply, and each of them is stricter there.
*/
case "org.freedesktop.fwupd.update-internal":
case "org.freedesktop.bolt.enroll":
case "org.freedesktop.bolt.authorize":
case "org.freedesktop.bolt.manage":
case "org.gtk.vfs.file-operations":
case "org.gtk.vfs.file-operations-helper":
return here ? polkit.Result.AUTH_ADMIN_KEEP : undefined;
}
if (!here || !subject.isInGroup("wheel"))
return undefined; /* not ours to answer — the defaults decide */
switch (action.id) {
/*
* A SYSTEM CONNECTION is one every user of the machine joins: what
* plasma-nm creates with "all users may connect", what nmcli makes, and
* every profile the installer wrote. Its default is a password even at
* the machine. The rest of NetworkManager's everyday actions — scanning,
* joining, the Wi-Fi switch, a hotspot, a profile of one's own — are
* allow_active already.
*/
case "org.freedesktop.NetworkManager.settings.modify.system":
return polkit.Result.YES;
/*
* udisks2's actions for a drive that is not removable, or that another
* user holds: Dolphin and the Device Notifier mounting a second internal
* disk, unlocking its LUKS container, unmounting or ejecting what another
* login mounted, taking ownership of a fresh filesystem, an image writer
* or GNOME Disks reaching the raw device, and formatting or partitioning
* an internal drive. Their removable twins are allow_active upstream; the
* -system and -others forms are a password at the machine, and here are
* the administrator's without one. The storage layout under a running
* system — fstab, crypttab, RAID, LVM, btrfs, swap — and the firmware
* erases stay the defaults' prompt.
*/
case "org.freedesktop.udisks2.filesystem-mount-system":
case "org.freedesktop.udisks2.filesystem-unmount-others":
case "org.freedesktop.udisks2.filesystem-take-ownership":
case "org.freedesktop.udisks2.encrypted-unlock-system":
case "org.freedesktop.udisks2.encrypted-lock-others":
case "org.freedesktop.udisks2.eject-media-system":
case "org.freedesktop.udisks2.loop-delete-others":
case "org.freedesktop.udisks2.open-device":
case "org.freedesktop.udisks2.open-device-system":
case "org.freedesktop.udisks2.modify-device-system":
return polkit.Result.YES;
/*
* Administrative applications, one password per agent session rather
* than one per action: GParted re-running itself through pkexec, K3b
* setting the burner's group and permissions, KTextEditor (Kate,
* KDevelop) writing a file the user cannot, virt-manager reaching
* qemu:///system, and Resources ending another user's process. Each
* writes a raw disk or a root-owned file, which is what a prompt is for.
*/
case "org.gnome.gparted":
case "org.kde.k3b.updatepermissions":
case "org.kde.ktexteditor6.katetextbuffer.savefile":
case "org.libvirt.unix.manage":
case "net.nokyan.Resources.kill":
return polkit.Result.AUTH_ADMIN_KEEP;
}
return undefined;
});
fs/etc/polkit-1/rules.d/50-kdos.rules
Ports install rules of their own in /usr/share/polkit-1/rules.d, and polkitd reads that directory and /etc/polkit-1/rules.d as one list, in order of file name. polkit’s own 50-default.rules names wheel as the administrators, whose password answers an auth_admin challenge. 50-libvirt.rules grants libvirt’s group, which no account is in until one is added to it. The rules of fwupd, bolt and gvfs grant wheel in an active local session.
/etc/init.d/41_polkitd.sh, from fs/etc/init.d/41_polkitd.sh:
. /etc/init.d/service_helper
# STARTED HERE AND NEVER BY D-BUS ACTIVATION, and it has to be.
#
# Activation would run polkitd as root through `dbus-daemon-launch-helper`,
# and depending on one setuid bit for the whole of this machine's network
# authorisation is a dependency that fails silently: polkitd never starts,
# every NetworkManager check is refused, and the only symptom is a wifi toggle
# that does nothing. So the polkit port ships no activation file: with one,
# a caller that came before polkitd had its name would make the bus start a
# second, unsupervised polkitd, and whichever lost the name would exit — the
# supervised one then restarting every five seconds for as long as the other
# held it.
#
# AFTER dbus (40) AND BEFORE ModemManager and NetworkManager (42), which ask
# polkit on their first privileged call and would be refused while the name
# had no owner; `wait_bus_name` holds the boot here until polkitd has it.
#
# WHAT IT AUTHORISES beyond each action's .policy answers is
# /etc/polkit-1/rules.d/50-kdos.rules and nothing else of ours. A challenge
# (auth_self, auth_admin) goes to the session's authentication agent,
# polkit-kde-authentication-agent-1, which Plasma starts at login; a caller
# with no session has no agent, and its challenge is a refusal. See
# docs/kdos/03-architecture/security-model.md.
NAME="polkitd"
DAEMON="/usr/lib/polkit-1/polkitd"
case "$1" in
start)
if [ ! -x "$DAEMON" ]; then
echo "[SKIP] $NAME: $DAEMON not found"
exit 0
fi
# polkitd drops to this account after it binds; without it the daemon
# exits at once and `supervise` would respawn it for ever.
if ! grep -q '^polkitd:' /etc/passwd 2>/dev/null; then
echo "[SKIP] $NAME: no polkitd account (the port's postinstall makes it)"
exit 0
fi
echo "[KDOS] Starting $NAME..."
mkdir -p /run/polkit-1
# polkitd never forks, so the supervisor watches the daemon itself.
# What polkitd logs goes to syslog as authpriv, so /var/log/auth.log;
# it logs no allow or deny decision at any --log-level, and a rule
# that wants one written calls polkit.log(), which prints to stderr.
# Its stdout carries only a copy of each line it sends to syslog
# and start-up chatter, so redirfd drops it: forwarded, every line
# would be logged twice. Its stderr — polkit.log() and its error
# messages — the supervisor forwards under authpriv, so it reaches
# auth.log once and /var/log/messages not at all. --no-debug would
# point stderr at /dev/null and discard polkit.log() with it.
supervise --facility authpriv "$NAME" \
/usr/bin/redirfd -w 1 /dev/null "$DAEMON"
wait_bus_name org.freedesktop.PolicyKit1
;;
stop)
stop_service "$NAME"
;;
status)
check_status "$NAME"
;;
*)
echo "Usage: $0 {start|stop|status}"
exit 1
;;
esac
Usage
Running a command as root
Run one command:
sudo <command>Edit a root-owned file in your own editor, as yourself, with the result copied back as root:
sudoedit /etc/chrony/chrony.confSee what
sudolets the account run:sudo -lFor a member of
wheelthe list ends with the one rule from00-sudo:User kdos may run the following commands on kdos: (ALL) ALL
sudo prints only the prompt, the first run included: it is built --without-lecture, because the lecture in front of the prompt is what KDESu’s password exchange cannot get past.
Making an account an administrator
Add it to
wheel:sudo usermod -aG wheel aliceThe account logs out and in again; its next
sudoasks for its own password. A new login, includingsu - alice, has the group at once. Other groups are added the same way; see Adding an account to a group.
Taking it out again is sudo gpasswd -d alice wheel, which prints Removing user alice from group wheel. Membership of wheel also opens every polkit action in 50-kdos.rules and the configuration verbs of the KDOS root daemons; see Who may ask for what.
Adding a sudo rule of your own
Put it in a file of its own: 00-sudo belongs to the sudo package, and an upgrade of the package installs it again over an edited copy.
Create the file with
visudo, which refuses to save a filesudocould not parse:sudo visudo -f /etc/sudoers.d/50-localWrite the rule. For example, to let
alice, who is not inwheel, restart chrony and nothing else:alice ALL=(root) /usr/sbin/service restart chronyCheck every sudoers file at once:
sudo visudo -cIt prints one
parsed OKline per file,/etc/sudoers,/etc/sudoers.d/00-sudoand the new one.Check from
alice’s session withsudo -l. It ends:User alice may run the following commands on kdos: (root) /usr/sbin/service restart chrony
/usr/sbin/service is the path to name: it is a link to ksvc, and the rule matches the command by that path.
The build includes every set of insults; a Defaults insults line in such a file turns them on: a wrong password is then answered with a line such as Do you think like you type? in place of Sorry, try again.
Unlocking sudo with a fingerprint
On a machine with a reader that libfprint drives; fprintd’s own configuration is on Fingerprints, FIDO keys and smart cards. On one without, every fprintd-* command answers No devices available, and fprintd-enroll prints it as Impossible to enroll: GDBus.Error:net.reactivated.Fprint.Error.NoSuchDevice: No devices available.
Enrol a finger, from the desktop on System Settings → Users → Configure Fingerprint Authentication, or from Konsole in the session:
fprintd-enrollCheck it:
fprintd-verifyThe next
sudowaits for the finger, and falls back to the password when the finger does not match.
fprintd-delete $USER removes the enrolled prints. The lock screen accepts the finger as well, through its kde-fingerprint stack.
Checking what polkit grants
Read an action’s own policy: its
implicit any,implicit inactiveandimplicit activeanswers, for a caller outside any session, in a session switched away from, and in the active session at the machine:pkaction --action-id org.freedesktop.NetworkManager.network-control --verbosepkactionwith no arguments lists every action id installed, about 240 of them on the image.Ask polkit whether the current shell’s process would be allowed:
pkcheck --action-id org.freedesktop.NetworkManager.network-control --process $$; echo $?0is allowed,1refused,2a password challenge.--allow-user-interactionletspkcheckanswer the challenge through the session’s agent. Run from Konsole in the session, anallow_activeaction answers0; run over SSH, the same action prints the policy’s answer for a caller outside the session and2.
Adding a polkit rule of your own
Find the action id the program asks for in the list
pkactionprints. polkitd logs no allow or deny decision at any log level, so the system log does not name the action.Write the rule in a new file that sorts after
50-kdos.rules, so the shipped list keeps its place. Replaceorg.example.actionwith the id:sudo tee /etc/polkit-1/rules.d/60-local.rules > /dev/null << 'EOF' polkit.addRule(function (action, subject) { if (action.id == "org.example.action" && subject.isInGroup("wheel")) return polkit.Result.YES; }); EOFCheck that the file is owned by root and writable by nobody else; polkitd runs every rule it finds without looking at the owner:
ls -l /etc/polkit-1/rules.d/Test it with
pkcheck, as above. polkitd watches the directory and reads every rule again when a file changes, so no restart is needed: a rule grantingorg.freedesktop.NetworkManager.settings.modify.hostnametowheelturns that action’sauth_admin_keepintoyeswithin a few seconds of the file being written.
polkitd calls the rules in the order of the file names and stops at the first that returns a result. A grant to wheel gives no more than wheel already has through sudo; a grant to any other group is a new right.
Tips
sudo -kforgets the cached password at once, so the nextsudoasks again.sudowrites every command it runs to/var/log/auth.log, with the account, the working directory, the target user and the command, as insudo: kdos : PWD=/home/kdos ; USER=root ; COMMAND=/usr/bin/true. A refusal is logged on the same kind of line, with the reason beforePWD.Over SSH no agent answers, so an action that asks for a password is refused there; run the command with
sudo, as root, whom polkit allows everything. The KDOS book lists the answers under What50-kdos.ruleschanges.pkexec <command>runs a command as root after the agent asks for an administrator’s password, assudodoes in a terminal.polkitd logs no allow or deny decision. A rule of your own can record one with
polkit.log(), which writes a line to/var/log/auth.logtaggedpolkitd, once. Put the rule in a file of its own sorting after50-kdos.rules, such as/etc/polkit-1/rules.d/60-log.rules; polkitd reads it as soon as it is written:polkit.addRule(function (action, subject) { if (action.id.indexOf("org.freedesktop.NetworkManager.") == 0 && !subject.isInGroup("wheel")) polkit.log("not granted: " + action.id + " for " + subject.user); });The rule returns no result, so the decision is still the one the other rules and the action’s policy make;
sudo grep 'not granted' /var/log/auth.loglists the lines.
Troubleshooting
sudo says alice is not in the sudoers file. The account is not in wheel, or was added in this session. id alice shows the groups it will have at its next login.
sudo refuses with a syntax error, for every account. A file in /etc/sudoers.d does not parse. Run sudo visudo -c while some way to root still works; it names the file and the line. With sudo broken and root locked, which is what the installer does by default, there is no root shell on the running system, and the file has to be repaired from the live medium with the installed root mounted; see Repairing from the live medium. Single-user mode needs a root password; see Single-user and emergency mode.
sudo over SSH pauses before it asks for the password. The account has a fingerprint enrolled, and pam_fprintd is waiting on the machine’s reader until it times out; see Known gaps. sudo fprintd-delete <user> removes the prints.
The Wi-Fi switch, or connecting to a network, does nothing. polkitd is not answering NetworkManager:
service status polkitd
cat /run/kdos-init.polkitd.log
[SKIP] polkitd: no polkitd account (the port's postinstall makes it) means the account the port’s postinstall.sh makes is missing. Make it with the same two commands, then start the daemon:
sudo groupadd -r polkitd
sudo useradd -r -g polkitd -d /nonexistent -s /sbin/nologin polkitd
sudo service start polkitd
A program says it is not authorised, and the account is in wheel. Run pkcheck for the action, as above. 1 means the policy refuses it; 2 that it asks for a password and no agent answered, as outside the session. Check that the agent runs in the session, pgrep -a polkit-kde-auth, and that the session is active: loginctl show-session $XDG_SESSION_ID -p Active. polkitd writes an error in a rules file, and every polkit.log() line, to /var/log/auth.log, tagged polkitd:
sudo grep polkitd /var/log/auth.log
polkitd[880]: Error compiling script /etc/polkit-1/rules.d/61-bad.rules: SyntaxError: unterminated statement (line 1)
Known gaps
- Security: membership of
wheelis effectively root
See also
- polkit and the authentication agent: who asks polkit, what is granted and what is not
- How polkit and ModemManager are started: why
polkitdhas a service script - setuid binaries:
sudo,unix_chkpwdand the rest - Users and groups: the
sudogrant and whatwheelmeans - Users and groups: adding accounts and groups
- Time and NTP: an example of a package-owned file edited with
sudoedit - Fingerprints, FIDO keys and smart cards: enrolling a finger and the other devices
- Recovering an unbootable system: repairing an installed root from the live medium
- Logs:
/var/log/auth.logand the rest