home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / linux / 21801 < prev    next >
Encoding:
Text File  |  1992-12-27  |  1.3 KB  |  30 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!mnemosyne.cs.du.edu!nyx!amartell
  3. From: amartell@nyx.cs.du.edu (Alex Martelli)
  4. Subject: Re: getpwnami, 4.2 & login, perl ... (was Re: UUCP 103 (taylor))
  5. Message-ID: <1992Dec27.091526.21378@mnemosyne.cs.du.edu>
  6. Sender: usenet@mnemosyne.cs.du.edu (netnews admin account)
  7. Organization: University of Denver, Dept. of Math & Comp. Sci.
  8. References: <724981623snx@weasel.demon.co.uk> <72424@cup.portal.com> <1992Dec26.155518.21255@r-node.gts.org> <1992Dec26.210230.3632@mnemosyne.cs.du.edu>
  9. Date: Sun, 27 Dec 92 09:15:26 GMT
  10. Lines: 18
  11.  
  12. amartell@nyx.cs.du.edu (Alex Martelli) writes:
  13.  
  14. >I'm also having problems with that... I did all that I saw suggested here
  15. >(conf.h as posted here, without SIGACTION etc; -fwritabble-strings; got
  16. >0.99 PL 1 and libc.so.4.2; ...) and now what happens is that getpwnam()
  17. >and getpwuid(), called in sig1.c, both return null pointers, thus all
  18. >programs, starting from uucp itself, die with "Can't get login name"...
  19.  
  20. >Both getpw* functions appear to work fine from a small test program, but
  21. >not within the uucp suite... so far, I can't figure out why.
  22.  
  23. Fixed by chmod go+r /etc/passwd; the passwd file was unreadable (although
  24. I ran as root, the uucp suite programs are setuid to uucp...) because of
  25. strange 600 permissions.
  26.  
  27. Alex
  28. --
  29. Alex Martelli - preferred email alex@am.sublink.org
  30.