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

UserCommands are executed with gid set to root - use initgroups()

    XMLWordPrintable

    Details

      Description

      hi,

      Given the fact wie have an agentd running with Uid and Gid set to
      "zabbix":

      [email protected]:~/deb/build-area/usr/bin$ ps -U zabbix -o user,group,pid
      USER GROUP PID
      zabbix zabbix 11245
      zabbix zabbix 11246
      [..]

      and one User command, executing /usr/bin/id (or /usr/bin/groups):

      UserParameter=id,/usr/bin/id

      now. zabbix_get -shost -kid returns the following output:

      [email protected]:~/deb/build-area/usr/bin$ ./zabbix_get -slocalhost -kid
      uid=107(zabbix) gid=110(zabbix) groups=0(root),102(lpadmin),1001(wheel)

        Attachments

          Activity

            People

            Assignee:
            alexei Alexei Vladishev
            Reporter:
            alexei Alexei Vladishev
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: