GRAYBYTE WORDPRESS FILE MANAGER2833

Server IP : 149.255.58.128 / Your IP : 216.73.216.213
System : Linux cloud516.thundercloud.uk 5.14.0-427.26.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 17 15:51:13 EDT 2024 x86_64
PHP Version : 8.2.28
Disable Function : allow_url_include, apache_child_terminate, apache_setenv, exec, passthru, pcntl_exec, posix_kill, posix_mkfifo, posix_getpwuid, posix_setpgid, posix_setsid, posix_setuid, posix_setgid, posix_seteuid, posix_setegid, posix_uname, proc_close, proc_get_status, proc_open, proc_terminate, shell_exec, show_source, system
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /lib/systemd/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /lib/systemd//purge-nobody-user
#!/usr/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

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
March 26 2025 22:43:12
0 / root
0555
boot
--
March 18 2025 04:14:44
0 / root
0755
catalog
--
March 21 2025 22:43:24
0 / root
0755
network
--
March 21 2025 22:43:25
0 / root
0755
ntp-units.d
--
December 04 2024 22:45:00
0 / root
0755
system
--
May 22 2025 21:42:21
0 / root
0755
system-generators
--
May 08 2025 21:42:23
0 / root
0755
system-preset
--
May 01 2025 21:42:47
0 / root
0755
system-shutdown
--
March 21 2025 22:43:25
0 / root
0755
system-sleep
--
March 18 2025 04:14:45
0 / root
0755
user
--
March 21 2025 22:43:24
0 / root
0755
user-environment-generators
--
March 21 2025 22:43:24
0 / root
0755
user-generators
--
March 21 2025 22:43:24
0 / root
0755
user-preset
--
March 21 2025 22:43:24
0 / root
0755
libsystemd-shared.abignore
0.098 KB
March 18 2025 04:14:45
0 / root
0644
purge-nobody-user
2.3 KB
March 18 2025 04:14:45
0 / root
0755
resolv.conf
0.693 KB
October 31 2022 18:59:18
0 / root
0644
systemd
95.93 KB
March 18 2025 04:14:51
0 / root
0755
systemd-ac-power
15.203 KB
March 18 2025 04:14:51
0 / root
0755
systemd-backlight
35.547 KB
March 18 2025 04:14:51
0 / root
0755
systemd-binfmt
23.492 KB
March 18 2025 04:14:51
0 / root
0755
systemd-bless-boot
31.781 KB
March 18 2025 04:14:51
0 / root
0755
systemd-boot-check-no-failures
15.477 KB
March 18 2025 04:14:50
0 / root
0755
systemd-cgroups-agent
15.406 KB
March 18 2025 04:14:51
0 / root
0755
systemd-coredump
67.891 KB
March 18 2025 04:14:51
0 / root
0755
systemd-cryptsetup
92.523 KB
March 18 2025 04:14:51
0 / root
0755
systemd-export
43.719 KB
March 18 2025 04:14:51
0 / root
0755
systemd-fsck
31.492 KB
March 18 2025 04:14:51
0 / root
0755
systemd-growfs
23.438 KB
March 18 2025 04:14:51
0 / root
0755
systemd-hibernate-resume
15.219 KB
March 18 2025 04:14:51
0 / root
0755
systemd-hostnamed
52.086 KB
March 18 2025 04:14:51
0 / root
0755
systemd-initctl
23.508 KB
March 18 2025 04:14:51
0 / root
0755
systemd-integritysetup
23.688 KB
March 18 2025 04:14:51
0 / root
0755
systemd-journald
181.328 KB
March 18 2025 04:14:51
0 / root
0755
systemd-localed
51.859 KB
March 18 2025 04:14:51
0 / root
0755
systemd-logind
295.906 KB
March 18 2025 04:14:51
0 / root
0755
systemd-makefs
15.414 KB
March 18 2025 04:14:51
0 / root
0755
systemd-measure
52.102 KB
March 18 2025 04:14:51
0 / root
0755
systemd-modules-load
23.711 KB
March 18 2025 04:14:51
0 / root
0755
systemd-network-generator
43.836 KB
March 18 2025 04:14:51
0 / root
0755
systemd-pcrphase
31.711 KB
March 18 2025 04:14:51
0 / root
0755
systemd-pstore
23.602 KB
March 18 2025 04:14:51
0 / root
0755
systemd-quotacheck
15.258 KB
March 18 2025 04:14:51
0 / root
0755
systemd-random-seed
27.469 KB
March 18 2025 04:14:50
0 / root
0755
systemd-remount-fs
19.461 KB
March 18 2025 04:14:51
0 / root
0755
systemd-reply-password
15.445 KB
March 18 2025 04:14:51
0 / root
0755
systemd-rfkill
23.531 KB
March 18 2025 04:14:51
0 / root
0755
systemd-shutdown
51.688 KB
March 18 2025 04:14:51
0 / root
0755
systemd-sleep
31.547 KB
March 18 2025 04:14:51
0 / root
0755
systemd-socket-proxyd
31.656 KB
March 18 2025 04:14:51
0 / root
0755
systemd-sulogin-shell
19.516 KB
March 18 2025 04:14:51
0 / root
0755
systemd-sysctl
27.734 KB
March 18 2025 04:14:51
0 / root
0755
systemd-sysroot-fstab-check
56.344 KB
March 18 2025 04:14:51
0 / root
0755
systemd-sysupdate
124.883 KB
March 18 2025 04:14:51
0 / root
0755
systemd-timedated
47.805 KB
March 18 2025 04:14:51
0 / root
0755
systemd-update-done
15.445 KB
March 18 2025 04:14:51
0 / root
0755
systemd-update-helper
3.763 KB
March 18 2025 04:13:52
0 / root
0755
systemd-update-utmp
23.531 KB
March 18 2025 04:14:51
0 / root
0755
systemd-user-runtime-dir
23.477 KB
March 18 2025 04:14:51
0 / root
0755
systemd-user-sessions
15.227 KB
March 18 2025 04:14:51
0 / root
0755
systemd-vconsole-setup
19.484 KB
March 18 2025 04:14:51
0 / root
0755
systemd-veritysetup
23.641 KB
March 18 2025 04:14:51
0 / root
0755
systemd-volatile-root
23.469 KB
March 18 2025 04:14:51
0 / root
0755
systemd-xdg-autostart-condition
15.469 KB
March 18 2025 04:14:51
0 / root
0755

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF