mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:37:46 +00:00
Base: Only allow members of the "wheel" group to use /bin/su
This commit is contained in:
parent
d4b4883d55
commit
69af59d061
1 changed files with 3 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
set -e
|
||||
|
||||
wheel_gid=1
|
||||
tty_gid=2
|
||||
phys_gid=3
|
||||
audio_gid=4
|
||||
|
@ -99,7 +100,8 @@ elif [ "$(uname -s)" = "OpenBSD" ]; then
|
|||
else
|
||||
find ../Userland/ -type f -executable -exec cp {} mnt/bin/ \;
|
||||
fi
|
||||
chmod 4755 mnt/bin/su
|
||||
chown 0:$wheel_gid mnt/bin/su
|
||||
chmod 4750 mnt/bin/su
|
||||
chmod 4755 mnt/bin/ping
|
||||
echo "done"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue