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

Ubuntu/Debian: home directory of zabbix user not created

XMLWordPrintable

    • Icon: Documentation task Documentation task
    • Resolution: Won't fix
    • Icon: Trivial Trivial
    • None
    • None
    • None
    • None

      Using official packages from http://repo.zabbix.com

      When installing latest version (3.4.6) in Ubuntu Xenial, the user "zabbix" is created, but the specified home directory is missing.

      I checked zabbix-server-mysql.postinst which confirms this.

      adduser is having the --no-create-home parameter. While this prevents skeleton files from being copied it would be good to ensure later on that at least an empty directory exists.

      I suggest to add after the adduser line the following code:

      mkdir -p /var/lib/zabbix
      chown zabbix:tabbix /var/lib/zabbix
      

      The same applies for the agent installation. Here the same change is needed in zabbix-agent.postint. Other postint files creating users are likely affected by the same, but I did not check.

            Unassigned Unassigned
            stephankn Stephan Knauss
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: