home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / sys5 / r4 / 868 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  2.0 KB

  1. Xref: sparky comp.unix.sys5.r4:868 comp.protocols.tcp-ip:5681 comp.unix.sysv386:17510
  2. Newsgroups: comp.unix.sys5.r4,comp.protocols.tcp-ip,comp.unix.sysv386
  3. Path: sparky!uunet!inmos!titan.inmos.co.uk!news
  4. From: rob@icarus.inmos.co.uk (Robin Pickering)
  5. Subject: Re: BSD ftpd doesn't work?
  6. Message-ID: <1992Dec18.122912.12568@titan.inmos.co.uk>
  7. Sender: news@titan.inmos.co.uk
  8. Reply-To: rob@icarus.UUCP (Robin Pickering)
  9. Organization: INMOS Limited, Bristol, UK
  10. References: <BzC0zD.G0y@ddsw1.mcs.com> <BzD6un.2JB@news.rn.com>
  11. Date: Fri, 18 Dec 1992 12:29:12 GMT
  12. Lines: 39
  13.  
  14. In article <BzD6un.2JB@news.rn.com> larry@news.rn.com (Larry Snyder) writes:
  15. >karl@ddsw1.MCS.COM (Karl Denninger) writes:
  16. >
  17. >>I'm trying to bring up the ftpd from the wustrl archive; the one UUNET uses.
  18. >>I would like to be able to log connections among other things.
  19. >
  20. >Does it support symbolic links?  My problem is that I can't have
  21. >symbolic links off my anonymous ftp directories.  The directories
  22. >can be made, and will show up when logging into the directory from
  23. >from the shell, or valid login's using ftp, but don't show up when
  24. >logging in via anonymous ftp.
  25. >
  26. >Try it -- anonymous ftp gator.use.com -- you can't get to any files -- since
  27. >they are all mounted via the nfs automounter using symbolic links
  28. >on another machine.
  29.  
  30. This is a basic facet of the way that ftpd limits access to only the
  31. files and directories below ~ftp.
  32.  
  33. This uses chroot(2) to ~ftp which means that the file system which your
  34. anon ftp session sees contains nothing above ~ftp. This is why you have
  35. to have a /bin, /etc etc in this directory.
  36.  
  37. All absolute file accesses (e.g. automounter symlinks to /tmp_mnt/foo/bar) are
  38. relative to this ftp root, not the real file system root. Meanwhile the
  39. automounter which obviously cannot be expected to know about chrooted applications
  40. mounts the file on the real /tmp_mnt and creates a symlink.
  41.  
  42.  
  43. The only fixes for this are:
  44.  
  45.    1) hack your ftpd to remove the chroot (but anon ftp now has access to your
  46.       entire file system)
  47.  
  48.    2) Use hard mounts for stuff under ~ftp
  49.  
  50.  
  51. --
  52.    Rob Pickering.
  53.