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