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

    Details

    • Team:
      Team A
    • Sprint:
      Sprint 50 (Mar 2019), Sprint 51 (Apr 2019)
    • Story Points:
      0.5

      Description

      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?

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: