From 0875446b38c765e5c3781d7a1511c91d0309f995 Mon Sep 17 00:00:00 2001 From: Tim Ledbetter Date: Mon, 7 Aug 2023 06:43:28 +0100 Subject: [PATCH] usermod: Remove premature root user check This allows the use of `--help`, for example. --- Userland/Utilities/usermod.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Userland/Utilities/usermod.cpp b/Userland/Utilities/usermod.cpp index c80fb0e607..9b704370e7 100644 --- a/Userland/Utilities/usermod.cpp +++ b/Userland/Utilities/usermod.cpp @@ -38,11 +38,6 @@ static Optional group_string_to_gid(StringView group) ErrorOr serenity_main(Main::Arguments arguments) { - if (geteuid() != 0) { - warnln("Not running as root :^("); - return 1; - } - TRY(Core::System::pledge("stdio wpath rpath cpath fattr tty")); TRY(Core::System::unveil("/etc", "rwc"));