Lost and stolen devices¶
Disk encryption on lost devices¶
Two admin actions on the device page (Actions menu), each confirmed by typing the host name
and written to the audit log. With four eyes approval on, both wait for a second
administrator under Approvals first (Four eyes approval).
Sending either one raises the notification event command.wipe_lost. They run when the
device checks in the next time; a device that stays offline is covered by
offline_lock_hours (Offline lock).
Lost mode blocks every login (/etc/nologin with your message, local passwords locked),
ends running sessions and, for every LUKS volume with an escrowed recovery key, removes every
other key slot. The server adds the recovery keys to the command only at delivery; they are
never stored in the command. After the next power off only IT can open the disk, with the
recovery key from the console. Volumes without an escrowed key keep their slots; the result
on the device page says so.
End lost mode lifts the login block; it needs no approval. The user's passphrase was removed: unlock the disk
with the recovery key at boot and set a new passphrase, for example with
cryptsetup luksAddKey using the recovery key, then rotate the viewed recovery key.
Wipe erases the LUKS headers of all volumes (cryptsetup luksErase), which makes the data
unrecoverable, and restarts the device two minutes later, after reporting the result. The
restart is forced: sleep is blocked until then, a device that slept through the two minutes
restarts as soon as it wakes up, inhibitors are ignored and, if systemd refuses, the agent
reboots through the kernel (/proc/sysrq-trigger). After the restart the disk cannot be
unlocked any more. Devices
without LUKS are refused, because there is no fast way to guarantee deletion; use lost mode.
Lock and unlock¶
Lock device works the same on every desktop:
/etc/nologinrefuses new logins (also SSH, except root).- The local passwords of all people's accounts (UID 1000 and up with a login shell) are locked, so neither a login screen nor the screen locker accepts them. The agent remembers which accounts it locked; Unlock device releases exactly those (SSO rules may keep managed users locked).
- Terminal and SSH sessions of people end (they cannot be locked); root's stay. While the device is locked, the agent ends such sessions again every minute.
- Graphical sessions are locked, not ended, like on Windows and macOS (unsaved work stays): GNOME, KDE Plasma, Xfce, Cinnamon and MATE through logind (Xfce additionally with i3lock), compositors and window managers without a logind aware locker (labwc, sway, Hyprland, river, niri, Wayfire, i3 and others) get swaylock or i3lock started directly, again every minute while the device stays locked.
Whether a session still needs the agent's locker is decided only from what the session's
user cannot fake. The agent skips a session whose logind Desktop (set by the display
manager at login) is GNOME, KDE Plasma, Cinnamon or MATE, whose shell locks itself on
logind's request. So that the user cannot make these shells ignore the request with their
own disable-lock-screen setting (org.gnome.desktop.lockdown, org.cinnamon.desktop.lockdown,
org.mate.lockdown), the agent sets it to false in the dconf system database with a lock
while the device is locked or lost (/etc/dconf/db/local.d/50-limdm-device-lock), and removes
it on unlock. KDE Plasma has no such dconf key; its user restriction action/lock_screen in
kdeglobals is not overridden. Every other graphical session gets swaylock or i3lock started by the
agent, even when a locker seems to run already: logind's LockedHint (the session owner
sets it), process names (any program can be called i3lock) and a locker's environment
(a real locker can run on another, nested or virtual display) are not trusted. A second
locker on an already locked session fails harmlessly. Xfce sessions therefore may get
i3lock on top of their own locker.
Sessions are found through logind, one by one (also several sessions of one user), and each gets the display and D-Bus environment of its own processes.
After unlocking, users unlock their screen with their usual password. Lost mode locks the passwords the same way and ends the sessions. The device page shows the latest lock, unlock, lost mode, wipe and uninstall release with who sent it and whether the device carried it out.