From: Alex Martelli (amartell@nyx.cs.du.edu)
Date: 12/27/92


From: amartell@nyx.cs.du.edu (Alex Martelli)
Subject: Re: getpwnami, 4.2 & login, perl ... (was Re: UUCP 103 (taylor))
Date: Sun, 27 Dec 1992 09:15:26 GMT

amartell@nyx.cs.du.edu (Alex Martelli) writes:

>I'm also having problems with that... I did all that I saw suggested here
>(conf.h as posted here, without SIGACTION etc; -fwritabble-strings; got
>0.99 PL 1 and libc.so.4.2; ...) and now what happens is that getpwnam()
>and getpwuid(), called in sig1.c, both return null pointers, thus all
>programs, starting from uucp itself, die with "Can't get login name"...

>Both getpw* functions appear to work fine from a small test program, but
>not within the uucp suite... so far, I can't figure out why.

Fixed by chmod go+r /etc/passwd; the passwd file was unreadable (although
I ran as root, the uucp suite programs are setuid to uucp...) because of
strange 600 permissions.

Alex