Base: Only allow members of the "wheel" group to use /bin/su

This commit is contained in:
Andreas Kling 2020-01-04 13:35:25 +01:00
parent d4b4883d55
commit 69af59d061
Notes: sideshowbarker 2024-07-19 10:22:35 +09:00

View File

@ -2,6 +2,7 @@
set -e set -e
wheel_gid=1
tty_gid=2 tty_gid=2
phys_gid=3 phys_gid=3
audio_gid=4 audio_gid=4
@ -99,7 +100,8 @@ elif [ "$(uname -s)" = "OpenBSD" ]; then
else else
find ../Userland/ -type f -executable -exec cp {} mnt/bin/ \; find ../Userland/ -type f -executable -exec cp {} mnt/bin/ \;
fi fi
chmod 4755 mnt/bin/su chown 0:$wheel_gid mnt/bin/su
chmod 4750 mnt/bin/su
chmod 4755 mnt/bin/ping chmod 4755 mnt/bin/ping
echo "done" echo "done"