mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 08:08:43 +00:00
Userland: Add passwd utility
This commit is contained in:
parent
1211a036ba
commit
207fb054e5
Notes:
sideshowbarker
2024-07-19 04:30:48 +09:00
Author: https://github.com/petelliott
Commit: 207fb054e5
Pull-request: https://github.com/SerenityOS/serenity/pull/2879
Issue: https://github.com/SerenityOS/serenity/issues/1168
Reviewed-by: https://github.com/BenWiederhake
Reviewed-by: https://github.com/awesomekling
3 changed files with 148 additions and 0 deletions
|
@ -37,6 +37,7 @@ chown $window_uid:$window_gid mnt/etc/WindowServer/WindowServer.ini
|
|||
echo "/bin/sh" > mnt/etc/shells
|
||||
|
||||
chown 0:$wheel_gid mnt/bin/su
|
||||
chown 0:$wheel_gid mnt/bin/passwd
|
||||
chown 0:$phys_gid mnt/bin/keymap
|
||||
chown 0:$phys_gid mnt/bin/shutdown
|
||||
chown 0:$phys_gid mnt/bin/reboot
|
||||
|
@ -45,6 +46,7 @@ chown 0:0 mnt/res/kernel.map
|
|||
chmod 0400 mnt/res/kernel.map
|
||||
chmod 0400 mnt/boot/Kernel
|
||||
chmod 4750 mnt/bin/su
|
||||
chmod 4755 mnt/bin/passwd
|
||||
chmod 4755 mnt/bin/ping
|
||||
chmod 4750 mnt/bin/reboot
|
||||
chmod 4750 mnt/bin/shutdown
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue