X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=blobdiff_plain;f=src%2FPVE%2FCLIHandler.pm;h=e61fa6a1cdf02c601d1850021cc3e94e246ca099;hp=33c47c3d108483672533ced1c5e29acdf52770f1;hb=0c0304c0d9a9a753b5d93a6c7b2239059a26d945;hpb=7b7f99c9b9d2807e6e1c387f9dfcef35655e5761 diff --git a/src/PVE/CLIHandler.pm b/src/PVE/CLIHandler.pm index 33c47c3..e61fa6a 100644 --- a/src/PVE/CLIHandler.pm +++ b/src/PVE/CLIHandler.pm @@ -506,10 +506,6 @@ sub run_cli_handler { initlog($exename); - if ($class !~ m/^PVE::Service::/) { - die "please run as root\n" if $> != 0; - } - no strict 'refs'; my $def = ${"${class}::cmddef"};