1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 12:17:44 +00:00

Userland+Kernel: Set shutdown/reboot to only be run by the phys group

This commit is contained in:
thatlittlegit 2020-02-23 12:55:32 -05:00 committed by Andreas Kling
parent 30556a0a93
commit ab9e5755ba

View file

@ -111,8 +111,12 @@ else
find ../Userland/ -type f -executable -exec cp {} mnt/bin/ \; find ../Userland/ -type f -executable -exec cp {} mnt/bin/ \;
fi fi
chown 0:$wheel_gid mnt/bin/su chown 0:$wheel_gid mnt/bin/su
chown 0:$phys_gid mnt/bin/shutdown
chown 0:$phys_gid mnt/bin/reboot
chmod 4750 mnt/bin/su chmod 4750 mnt/bin/su
chmod 4755 mnt/bin/ping chmod 4755 mnt/bin/ping
chmod 4750 mnt/bin/reboot
chmod 4750 mnt/bin/shutdown
echo "done" echo "done"
printf "installing applications... " printf "installing applications... "