diff --git a/Userland/Utilities/pls.cpp b/Userland/Utilities/pls.cpp index 4912a30fab..13c4f03d86 100644 --- a/Userland/Utilities/pls.cpp +++ b/Userland/Utilities/pls.cpp @@ -42,8 +42,7 @@ ErrorOr serenity_main(Main::Arguments arguments) TRY(Core::System::pledge("stdio rpath exec id")); - TRY(Core::System::setgid(0)); - TRY(Core::System::setuid(as_user_uid)); + TRY(as_user.login()); TRY(Core::System::pledge("stdio rpath exec"));