Larry Jones writes:
> 
> I strongly suggest kicking the IBM machinery so that it eventually gets
> fixed, but in the meantime, you can use the following (unofficial and
> unlikely to be adopted into the main source tree) patch:

Sorry, that escaped prematurely.  Here's the patch:

diff -u -r1.227 server.c
--- server.c    2000/05/04 19:21:10     1.227
+++ server.c    2000/05/04 19:22:09
@@ -5114,7 +5114,7 @@
     }
 
 #if HAVE_INITGROUPS
-    if (initgroups (pw->pw_name, pw->pw_gid) < 0
+    if (geteuid() == 0 && initgroups (pw->pw_name, pw->pw_gid) < 0
 #  ifdef EPERM
        /* At least on the system I tried, initgroups() only works as root.
           But we do still want to report ENOMEM and whatever other

-Larry Jones

Another casualty of applied metaphysics. -- Hobbes

Reply via email to