Ad Widget

Collapse

Zabbix 2.2.3 run as different user

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Codehack
    Junior Member
    • May 2014
    • 1

    #1

    Zabbix 2.2.3 run as different user

    Hi everyone,

    Been using Zabbix for a few weeks now and require to run it as a different user. One that is in LDAP and not a local account called zabbix.

    I've search google/forums and found a few pieces but seems to be outdated code. So far I have tried the following.

    So far efforts have not produced a binary that will start correctly.

    Files edited so far:
    configure:

    int
    main ()
    {

    char *user = "zabtech";
    initgroups(user, 0);

    ;
    return 0;
    }


    configure.ac:

    [
    char *user = "zabtech";
    initgroups(user, 0);
    ],



    Ideally a flag to pass to "./configure" at compile time would be easiest but doesn't appear to be anything.

    Does anyone have any insight on how this can be achieved as I have everything else working great and almost ready to roll out installation.
Working...