-
Problem report
-
Resolution: Fixed
-
Major
-
3.0.1
-
None
-
Linux
-
Sprint 50 (Mar 2019), Sprint 51 (Apr 2019)
-
0.5
when launching zabbix_agentd in foreground mode (-f) with root user, zabbix_agentd refuses to change user (to zabbix) and instead print "cannot run as root".
relevant code is in libs/zbxnix/daemon.c function daemon_start
if (0 != (flags & ZBX_TASK_FLAG_FOREGROUND))
{ zbx_error("cannot run as root!"); exit(EXIT_FAILURE); }this was introduced in ZBXNEXT-611
I've tried without these lines and it seems to work fine,
so is there a security reason that i'm missing, or can we remove these lines?