To change runtime user simply change the user name in the following files after you run ./configure [options]
File configure:
|
1 2 3 4 5 6 7 8 9 10 |
int main () { char *user = "new-zabbix"; <--- change this to your new runtime user initgroups(user, 0); ; return 0; } |
File configure.in:
|
1 2 3 4 |
[ char *user = "new-zabbix"; <--- change this to your new runtime user initgroups(user, 0); ], |
File src/libs/zbxnix/daemon.c:
|
1 |
char user[10] = "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.