mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-12 11:09:18 +00:00
Userland+Kernel: Set shutdown/reboot to only be run by the phys
group
This commit is contained in:
parent
30556a0a93
commit
ab9e5755ba
Notes:
sideshowbarker
2024-07-19 17:38:49 +09:00
Author: https://github.com/thatlittlegit
Commit: ab9e5755ba
Pull-request: https://github.com/SerenityOS/serenity/pull/1281
1 changed files with 4 additions and 0 deletions
|
@ -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... "
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue