Re: unable to run snmpd as non-root user

2011-03-29 Thread Dave Shield
On 29 March 2011 17:06, Ravi Kumar wrote: > by the way does it make any difference if Ā initgroups failed as for as > snmpd functionalities are concerned ? Not in general, no. Probably the only difference would be if there are files that the agent needs to access, which are readable by you due t

Re: unable to run snmpd as non-root user

2011-03-29 Thread Ravi Kumar
Thanks it works with -r -u... -Dsnmpd/main shows that uid/gid is being changed back to non-root user. by the way does it make any difference if initgroups failed as for as snmpd functionalities are concerned ? Thanks, Ravi On 3/29/11, Dave Shield wrote: > On 28 March 2011 19:25, Ravi Kumar w

Re: unable to run snmpd as non-root user

2011-03-29 Thread Dave Shield
On 28 March 2011 19:25, Ravi Kumar wrote: > [ravi@volga]$ sudo /home/ravi/net-snmp-5.5/agent/snmpd -c > /home/ravi/net-snmp-5.5/local/snmpd.conf,/var/net-snmp/snmpd.conf -C > -f -Le -u ravi > > Cannot find module (IP-MIB): At line 0 in (none) > Cannot find module (IF-MIB): At line 0 in (none) > in

Re: unable to run snmpd as non-root user

2011-03-28 Thread Ravi Kumar
it quits with the same error "initgroups failed: Operation not permitted." even if I run with both options (-u and -g). Thanks, Ravi On 3/29/11, Dave Shield wrote: > On 28 March 2011 19:25, Ravi Kumar wrote: >> Problem comes when I try to switch back to non-root user using -u >> option. Afte

Re: unable to run snmpd as non-root user

2011-03-28 Thread Dave Shield
On 28 March 2011 19:25, Ravi Kumar wrote: > Problem comes when I try to switch back to non-root user using -u > option. After running snmpd using sudo. In this case snmpd quits with > error "initgroups failed: Operation not permitted." OK - that's useful information. What happens if you try to

Re: unable to run snmpd as non-root user

2011-03-28 Thread Ravi Kumar
Hi Dave, when I execute the snmpd command in root account rather than using sudo it works perfectly fine and responses all queries. [root@volga]# /home/ravi/net-snmp-5.5/agent/snmpd -c /home/ravi/net-snmp-5.5/local/snmpd.conf,/var/net-snmp/snmpd.conf -C -f -Le Cannot find module (IP-MIB): At lin

RE: unable to run snmpd as non-root user

2011-03-28 Thread Steve Friedl
s the path? What if you "sudo bash" and then run it directly that way? -Original Message- From: Ravi Kumar [mailto:mynets...@gmail.com] Sent: Monday, March 28, 2011 10:37 AM To: Steve Friedl Cc: net-snmp-coders Subject: Re: unable to run snmpd as non-root user snmpd quits. as soon

Re: unable to run snmpd as non-root user

2011-03-28 Thread Ravi Kumar
snmpd quits. as soon as I execute it. On 3/28/11, Steve Friedl wrote: > What does "unable" mean? What happens when you try? > > -Original Message- > From: Ravi Kumar [mailto:mynets...@gmail.com] > Sent: Monday, March 28, 2011 9:22 AM > To: net-snmp-coders &g

RE: unable to run snmpd as non-root user

2011-03-28 Thread Steve Friedl
What does "unable" mean? What happens when you try? -Original Message- From: Ravi Kumar [mailto:mynets...@gmail.com] Sent: Monday, March 28, 2011 9:22 AM To: net-snmp-coders Subject: unable to run snmpd as non-root user Hi, Could any one tell me why the snmpd does not run wi

Re: unable to run snmpd as non-root user

2011-03-28 Thread Dave Shield
On 28 March 2011 17:22, Ravi Kumar wrote: > Could any one tell me why the snmpd does not run with sudo as given below. There's a problem somewhere. Not a very helpful response, I know - but you haven't exactly given us much information to work with. If you want more meaningful assistance, it w

unable to run snmpd as non-root user

2011-03-28 Thread Ravi Kumar
Hi, Could any one tell me why the snmpd does not run with sudo as given below. $ sudo /home/ravi/net-snmp-5.5/agent/snmpd -c /home/ravi/net-snmp-5.5/local/snmpd.conf,/var/net-snmp/snmpd.conf -C -u ravi I am trying to run snmpd as root with sudo command on 161 port and switch back to user ravi u