1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:24:57 +00:00

usermod: Remove premature root user check

This allows the use of `--help`, for example.
This commit is contained in:
Tim Ledbetter 2023-08-07 06:43:28 +01:00 committed by Jelle Raaijmakers
parent 827e23940a
commit 0875446b38

View file

@ -38,11 +38,6 @@ static Optional<gid_t> group_string_to_gid(StringView group)
ErrorOr<int> 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"));