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

Userland: Implement pls, a sudo clone

This commit is contained in:
Jesse Buhagiar 2021-04-14 12:23:55 +10:00 committed by Ali Mohammad Pur
parent ea33e9647b
commit 82b48d867d
6 changed files with 262 additions and 0 deletions

View file

@ -230,6 +230,8 @@ $ ninja run
Note that the `anon` user is able to become `root` without password by default, as a development convenience.
To prevent this, remove `anon` from the `wheel` group and he will no longer be able to run `/bin/su`.
`anon` is also, by default, located in `/etc/sudoers`, meaning that they will be able to execute with root permission using `pls`.
To prevent this, remove them from `/etc/sudoers`.
On Linux, QEMU is significantly faster if it's able to use KVM. The run script will automatically enable KVM if `/dev/kvm` exists and is readable+writable by the current user.