Ad Widget

Collapse

Modifying the user Zabbix runs as

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cronuscronus
    Junior Member
    • Jan 2010
    • 29

    #1

    Modifying the user Zabbix runs as

    Recently I started deploying Zabbix in our corporate environment. A user was created for me to run Zabbix as. This user was "flzabbix".

    Unfortunately there is no option in the zabbix server or proxy configuration to run as a different user! Hopefully this is resolved in a future release.

    To fix this simply change the user name in the following files after you run ./configure [options]

    configure:
    int
    main ()
    {

    char *user = "flzabbix"; <--- change this to your new runtime user
    initgroups(user, 0);

    ;
    return 0;
    }

    configure.in:
    [
    char *user = "flzabbix"; <--- change this to your new runtime user
    initgroups(user, 0);
    ],


    src/libs/zbxnix/daemon.c
    char user[9] = "flzabbix"; <--- change this to your new runtime user
    *** Remember this is C and you must appropriately size the char array based on the length of your new runtime user.

    Now make install and Zabbix will run as the proper user.
Working...