/usr/lib/systemd
NameSizeModeActions
boot/-0755rm
catalog/-0755rm
network/-0755rm
ntp-units.d/-0755rm
portable/-0755rm
system/-0755rm
system-generators/-0755rm
system-preset/-0755rm
system-shutdown/-0755rm
system-sleep/-0755rm
user/-0755rm
user-environment-generators/-0755rm
user-generators/-0755rm
user-preset/-0755rm
libsystemd-shared-239.so27654480755editdlrm
portablectl378880755editdlrm
purge-nobody-user23510755editdlrm
resolv.conf6780644editdlrm
systemd16136720755editdlrm
systemd-ac-power121600755editdlrm
systemd-backlight253360755editdlrm
systemd-binfmt170960755editdlrm
systemd-cgroups-agent123040755editdlrm
systemd-coredump626400755editdlrm
systemd-cryptsetup294400755editdlrm
systemd-dissect164080755editdlrm
systemd-export421680755editdlrm
systemd-fsck253280755editdlrm
systemd-growfs209280755editdlrm
systemd-hibernate-resume122960755editdlrm
systemd-hostnamed296080755editdlrm
systemd-initctl209280755editdlrm
systemd-journald1581120755editdlrm
systemd-localed503600755editdlrm
systemd-logind2716720755editdlrm
systemd-makefs127120755editdlrm
systemd-modules-load209120755editdlrm
systemd-portabled920720755editdlrm
systemd-pstore213840755editdlrm
systemd-quotacheck125920755editdlrm
systemd-random-seed163920755editdlrm
systemd-remount-fs251280755editdlrm
systemd-reply-password122960755editdlrm
systemd-resolved4636320755editdlrm
systemd-rfkill253440755editdlrm
systemd-shutdown626640755editdlrm
systemd-sleep212640755editdlrm
systemd-socket-proxyd251440755editdlrm
systemd-sulogin-shell164000755editdlrm
systemd-sysctl212720755editdlrm
systemd-sysv-install-0editdlrm
systemd-timedated378400755editdlrm
systemd-udevd4183520755editdlrm
systemd-update-done127280755editdlrm
systemd-update-utmp164000755editdlrm
systemd-user-runtime-dir2510080755editdlrm
systemd-user-sessions121440755editdlrm
systemd-vconsole-setup209600755editdlrm
systemd-veritysetup122960755editdlrm
systemd-volatile-root122960755editdlrm
Edit: /usr/lib/systemd/purge-nobody-user (2351B)
#!/bin/bash -eu if [ $UID -ne 0 ]; then echo "WARNING: This script needs to run as root to be effective" exit 1 fi export SYSTEMD_NSS_BYPASS_SYNTHETIC=1 if [ "${1:-}" = "--ignore-journal" ]; then shift ignore_journal=1 else ignore_journal=0 fi echo "Checking processes..." if ps h -u 99 | grep .; then echo "ERROR: ps reports processes with UID 99!" exit 2 fi echo "... not found" echo "Checking UTMP..." if w -h 199 | grep . ; then echo "ERROR: w reports UID 99 as active!" exit 2 fi if w -h nobody | grep . ; then echo "ERROR: w reports user nobody as active!" exit 2 fi echo "... not found" echo "Checking the journal..." if [ "$ignore_journal" = 0 ] && journalctl -q -b -n10 _UID=99 | grep . ; then echo "ERROR: journalctl reports messages from UID 99 in current boot!" exit 2 fi echo "... not found" echo "Looking for files in /etc, /run, /tmp, and /var..." if find /etc /run /tmp /var -uid 99 -print | grep -m 10 . ; then echo "ERROR: found files belonging to UID 99" exit 2 fi echo "... not found" echo "Checking if nobody is defined correctly..." if getent passwd nobody | grep '^nobody:[x*]:65534:65534:.*:/:/sbin/nologin'; then echo "OK, nothing to do." exit 0 else echo "NOTICE: User nobody is not defined correctly" fi echo "Checking if nfsnobody or something else is using the uid..." if getent passwd 65534 | grep . ; then echo "NOTICE: will have to remove this user" else echo "... not found" fi if [ "${1:-}" = "-x" ]; then if getent passwd nobody >/dev/null; then # this will remove both the user and the group. ( set -x userdel nobody ) fi if getent passwd 65534 >/dev/null; then # Make sure the uid is unused. This should free gid too. name="$(getent passwd 65534 | cut -d: -f1)" ( set -x userdel "$name" ) fi if grep -qE '^(passwd|group):.*\bsss\b' /etc/nsswitch.conf; then echo "Sleeping, so sss can catch up" sleep 3 fi if getent group 65534; then # Make sure the gid is unused, even if uid wasn't. name="$(getent group 65534 | cut -d: -f1)" ( set -x groupdel "$name" ) fi # systemd-sysusers uses the same gid and uid ( set -x systemd-sysusers --inline 'u nobody 65534 "Kernel Overflow User" / /sbin/nologin' ) else echo "Pass '-x' to perform changes" fi