ZABBIX Forums  
Prev Previous Post   Next Post Next
  #1  
Old 25-11-2007, 13:35
abi abi is offline
Member
 
Join Date: Jun 2006
Posts: 81
Default UserCommands are executed with gid set to root - use initgroups()

hi,

Given the fact wie have an agentd running with Uid and Gid set to
"zabbix":

foo@bar:~/deb/build-area/usr/bin$ ps -U zabbix -o user,group,pid
USER GROUP PID
zabbix zabbix 11245
zabbix zabbix 11246
[..]

and one User command, executing /usr/bin/id (or /usr/bin/groups):

UserParameter=id,/usr/bin/id

now. zabbix_get -shost -kid returns the following output:

foo@bar:~/deb/build-area/usr/bin$ ./zabbix_get -slocalhost -kid
uid=107(zabbix) gid=110(zabbix) groups=0(root),102(lpadmin),1001(wheel)
__________________
abi AT debian DOT org
http://packages.debian.org/src:zabbix

Last edited by abi; 25-11-2007 at 16:14.
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 11:16.