From: Dietmar Maurer Date: Thu, 12 Jan 2017 09:12:16 +0000 (+0100) Subject: CLIHandler.pm: remove run as root restriction X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=commitdiff_plain;h=cb87191ed641152ec111d7940a364d6e68cad8e1 CLIHandler.pm: remove run as root restriction This should be checked somewhere else. Signed-off-by: Dietmar Maurer --- 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"};