Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-10611

zabbix_agentd: foreground and changing user -> "cannot run as root"

XMLWordPrintable

    • 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?

            viktors.tjarve Viktors Tjarve
            etienne.champetier Etienne CHAMPETIER
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: