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

Fix user/group for macOS Installer Package

    XMLWordPrintable

    Details

    • Type: Problem report
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 4.2.7, 4.4.0
    • Fix Version/s: 5.0 (plan)
    • Component/s: Agent (G), Installation (I)
    • Labels:
      None
    • Team:
      Team C
    • Sprint:
      Sprint 58 (Nov 2019), Sprint 59 (Dec 2019), Sprint 60 (Jan 2020), Sprint 61 (Feb 2020)
    • Story Points:
      0.5

      Description

      Hi,

      There currently is an issue with macOS zabbix-agent installer for macOS.

      Installed with,
      sudo installer -pkg /tmp/zabbix_agent-4.2.7-macos-amd64-openssl.pkg -target /

      See (1), the line "dscl . -list /Groups UniqueID | grep $gid > /dev/null"

      • try to test if $gid (200) is already used, but this test is always false, so it uses 200 as group id which is the “_softwareupdate” group id, a very bad thing.

      Could you fix this issue on checking if the GID exists? GID 200 is used by "_softwareupdate"

      Another thing is, that the Zabbix user should be hidden from the default login, with a line like this,
      "dscl . -create /Users/$USER_NAME IsHidden 1", which is missing on the installer. this is why the User is visible as “normal” Login user.

        Attachments

          Activity

            People

            Assignee:
            atumilovics Andrejs Tumilovics
            Reporter:
            ArtursL Arturs Lontons
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: