The ifupdown hooks /etc/network/if-up.d/resolved and if-down.d/resolved
(Debian 12 and 13) use 'return' outside of a function. With /bin/sh ->
dash this ends the script with 0, with /bin/sh -> bash (set by our
Ansible role common/tasks/basic.yml) it fails with exit code 2, so
'ifup lo' fails and networking.service ends up as 'failed'.
The script replaces top-level 'return' by 'exit 0' (same behaviour as
under dash), keeps a backup in /root/ifupdown-backup/ and resets the
failed state of networking.service. Dry-run by default, --apply to
change the files.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Roundcube's bin/cleandb.sh starts with '#!/usr/bin/env php'. Under cron
the PATH inherited by 'su' lacked the php binary directory and contained
/root/bin directories not accessible for the http user, so the job failed
with "env: 'php': Permission denied" while it worked in a login shell.
Determine php (PATH or /usr/local/php/bin/php) and run cleandb.sh with
PATH=<php-bin-dir>:/usr/local/bin:/usr/bin:/bin from /tmp.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Lists logged-in sessions (local and ssh), one entry per terminal,
including multiplexed ssh connections (ControlMaster). Needed because
Debian 13 no longer populates utmp, so w/who show nothing.
- Sessions and origin via systemd-logind (loginctl)
- Terminals detected via session leaders and cgroup mapping
- sudo shells (own pty) shown indented below their terminal
- BEFEHL column shows the current foreground process
- Sessions without a terminal (scp, sftp, ssh -N) are listed too