home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / sys5 / r4 / 840 < prev    next >
Encoding:
Text File  |  1992-12-16  |  1.8 KB  |  54 lines

  1. Newsgroups: comp.unix.sys5.r4
  2. Path: sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!uchinews!machine!ddsw1!karl
  3. From: karl@ddsw1.MCS.COM (Karl Denninger)
  4. Subject: BSD ftpd doesn't work?
  5. Sender: karl@ddsw1.mcs.com (Karl Denninger)
  6. Message-ID: <BzC0zD.G0y@ddsw1.mcs.com>
  7. Date: Wed, 16 Dec 1992 03:14:00 GMT
  8. Organization: MCSNet, Chicago, IL
  9. Lines: 43
  10.  
  11. I'm trying to bring up the ftpd from the wustrl archive; the one UUNET uses.
  12. I would like to be able to log connections among other things.
  13.  
  14. It seems to be dying in the clone socket routines however.  The reason is
  15. obvious; it cannot get back its root privileges to make the priv'd socket.
  16. The odd part is that the following code works as expected:
  17.  
  18. #include    <stdio.h>
  19. main()
  20. {
  21.     printf("Effective UID = %d\n", geteuid());
  22.     seteuid(100);
  23.     printf("Effective UID after call = %d\n", geteuid());
  24.     seteuid(0);
  25.     printf("Effective UID back to root = %d\n", geteuid());
  26.     exit(0);
  27. }
  28.  
  29. This proves that the seteuid() call works as expected, as it returns (when
  30. run as root):
  31.  
  32. Effective UID = 0
  33. Effective UID after call = 100
  34. Effective UID back to root = 0
  35.  
  36. Therefore, we can do the seteuid(0) call and get what we expect out of it.
  37.  
  38. It could be failing somewhere else, but I don't think so.  
  39.  
  40. Any ideas out there?  Anyone got a patched version of this that they
  41. wouldn't mind me having?
  42.  
  43. On the same note, does anyone have a patched "telnetd" which can display an
  44. "issue" file yet also has 8-bit transparency.  The bsd version is nastily
  45. intertwined with everything else in the release, and I don't feel like
  46. transferring the remainder of the net2 kit!
  47.  
  48. Thanks in advance,
  49.  
  50. -- 
  51. Karl Denninger (karl@ddsw1.MCS.COM, <well-connected>!ddsw1!karl)
  52. Data Line: [+1 312 248-0900] Anon. arch. (nuucp) 00:00-06:00 C[SD]T
  53. Request file: /u/public/sources/DIRECTORY/README for instructions
  54.