Hi,

I've stumbled upon a possible bug in net-snmp-5.5 in on Fedora 12:
$ snmpd -f -Lo -u daemon
initgroups failed: Operation not permitted

Looking at strace and code in snmpd.c, I can see that the snmpd changed 
UID to daemon user, but subsequent initgroups() fails with EPERM. The 
cause is patch in Feature Request item 1019429.

Was the -uparameter ever working with initgroups()? Or is something 
wrong in my kernel? When I switch setuid() and initgroups() (i.e. change 
groups first, then chage user ID), it works like charm.

Jan

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to