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