Ok, well probably the next step is to turn on some debugging and/or look
around at system logs. 

What else have you tried to try to figure this out yourself? If you run it
*without* -u ravi  does it make any difference?  Could it be that it's not
finding the libraries because sudo changes 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 as I execute it.


On 3/28/11, Steve Friedl <st...@unixwiz.net> 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
> Subject: unable to run snmpd as non-root user
>
> 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 using -u option. User ravi is included in 
> /etc/sudoers file.
>
>
> Thanks,
> Ravi
>
> ----------------------------------------------------------------------
> ------
> --
> Create and publish websites with WebMatrix Use the most popular FREE 
> web apps or write code yourself; WebMatrix provides all the features 
> you need to develop and publish your website. 
> http://p.sf.net/sfu/ms-webmatrix-sf
> _______________________________________________
> Net-snmp-coders mailing list
> Net-snmp-coders@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
>
>

----------------------------------------------------------------------------
--
Create and publish websites with WebMatrix Use the most popular FREE web
apps or write code yourself; WebMatrix provides all the features you need to
develop and publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and publish 
your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to