home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.sys5.r4:868 comp.protocols.tcp-ip:5681 comp.unix.sysv386:17510
- Newsgroups: comp.unix.sys5.r4,comp.protocols.tcp-ip,comp.unix.sysv386
- Path: sparky!uunet!inmos!titan.inmos.co.uk!news
- From: rob@icarus.inmos.co.uk (Robin Pickering)
- Subject: Re: BSD ftpd doesn't work?
- Message-ID: <1992Dec18.122912.12568@titan.inmos.co.uk>
- Sender: news@titan.inmos.co.uk
- Reply-To: rob@icarus.UUCP (Robin Pickering)
- Organization: INMOS Limited, Bristol, UK
- References: <BzC0zD.G0y@ddsw1.mcs.com> <BzD6un.2JB@news.rn.com>
- Date: Fri, 18 Dec 1992 12:29:12 GMT
- Lines: 39
-
- In article <BzD6un.2JB@news.rn.com> larry@news.rn.com (Larry Snyder) writes:
- >karl@ddsw1.MCS.COM (Karl Denninger) writes:
- >
- >>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.
- >
- >Does it support symbolic links? My problem is that I can't have
- >symbolic links off my anonymous ftp directories. The directories
- >can be made, and will show up when logging into the directory from
- >from the shell, or valid login's using ftp, but don't show up when
- >logging in via anonymous ftp.
- >
- >Try it -- anonymous ftp gator.use.com -- you can't get to any files -- since
- >they are all mounted via the nfs automounter using symbolic links
- >on another machine.
-
- This is a basic facet of the way that ftpd limits access to only the
- files and directories below ~ftp.
-
- This uses chroot(2) to ~ftp which means that the file system which your
- anon ftp session sees contains nothing above ~ftp. This is why you have
- to have a /bin, /etc etc in this directory.
-
- All absolute file accesses (e.g. automounter symlinks to /tmp_mnt/foo/bar) are
- relative to this ftp root, not the real file system root. Meanwhile the
- automounter which obviously cannot be expected to know about chrooted applications
- mounts the file on the real /tmp_mnt and creates a symlink.
-
-
- The only fixes for this are:
-
- 1) hack your ftpd to remove the chroot (but anon ftp now has access to your
- entire file system)
-
- 2) Use hard mounts for stuff under ~ftp
-
-
- --
- Rob Pickering.
-