On 31 March 2010 13:09, Jan Safranek <[email protected]> wrote: > 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.... > When I switch setuid() and initgroups() (i.e. change > groups first, then chage user ID), it works like charm.
That makes sense. I've updated 5.5.x and main trunk accordingly. (SVN revision 18452) Dave ------------------------------------------------------------------------------ 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
