mirror of https://github.com/Icinga/icinga2.git
parent
b72ba2b63a
commit
43bbbfce13
|
@ -384,10 +384,10 @@ int Main(void)
|
|||
Logger::DisableTimestamp(true);
|
||||
#ifndef _WIN32
|
||||
if (command->GetImpersonationLevel() == ImpersonateRoot) {
|
||||
/*if (getuid() != 0) {
|
||||
if (getuid() != 0) {
|
||||
Log(LogCritical, "cli", "This command must be run as root.");
|
||||
return 0;
|
||||
}*/
|
||||
}
|
||||
} else if (command && command->GetImpersonationLevel() == ImpersonateIcinga) {
|
||||
String group = Application::GetRunAsGroup();
|
||||
String user = Application::GetRunAsUser();
|
||||
|
|
Loading…
Reference in New Issue