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 <d.t.shi...@liverpool.ac.uk> wrote:
> On 28 March 2011 19:25, Ravi Kumar <mynets...@gmail.com> 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)
>> initgroups failed: Operation not permitted
>
> Hmmm...
>
> Try adding the option '-r'
> The initgroups call will probably still fail, but the agent should
> continue to run.
>
> It might also be worth adding the debug option '-Dsnmpd/main'
> to see exactly what it's trying to do with UIDs and GIDs.
>
> Dave
>

------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to