[2837] in RedHat Linux List
RE: anon FTP howto setup sym links
daemon@ATHENA.MIT.EDU (Randy Hall)
Tue Nov 5 16:47:23 1996
From: Randy Hall <randy@linux.edg.rsc.ray.com>
To: "'redhat-list@redhat.com'" <redhat-list@redhat.com>,
"'tony@mbox317.swipnet.se'" <tony@mbox317.swipnet.se>
Date: Tue, 5 Nov 1996 16:38:31 -0500
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
mount the cd in the /home/ftp/cdrom
create a sym link from /mnt/cdrom to /home/ftp/cdrom
go about your business with commands like:
mount /dev/hdc /mnt/cdrom -t iso9660
----------
From: tony@mbox317.swipnet.se[SMTP:tony@mbox317.swipnet.se]
Sent: Tuesday, November 05, 1996 4:10 PM
To: redhat-list@redhat.com
Subject: Re: anon FTP howto setup sym links
> >
> > I've got some trouble with anon FTP. I've setup an apache server and
> > linked a couple of directories (cdrom, some vfat mounted dir's) and
> > it works fine, probably coz there's a config option "FollowSymLinks".
> > Now I've setup the anan FTP stuff but the sym links won't work so for
> > now I have to actually copy the stuff into pub, there must be a way
> > to make this with links. Anyone that knows about this?
> >
>
> Anonymous ftp does a 'chroot' function call when started. This function does
> what is implied in the name; it changes the _apparent_ root directory for
> the process. It is governed by the user entry for ftp in /etc/passwd.
>
> Now what does this have do with the symlink deal? Plenty! Since the wu.ftpd
> process now does see anything above its home directory (usually /home/ftp in
> Linux) it cannot resolve symlinks that are "above" this. For symlinks to
> work, the CD-ROM _has_ to be mounted some where under /home/ftp. There is no
> exception. (Also of note is that certain things like libraries, binaries,
> etc. are in fact duplicated in dirs like /home/ftp/lib, /home/ftp/bin, etc.)
>
> The reason that anon-ftp does the chroot is for security. Think of it like
> this: If files above /home/ftp are visible (accessable), then they can be
> obtained, or worse yet deleted and/or modified. To quote some anonymous
> source, "It's not a bug, it's a feature!"
>
To bad.... the part with mounting the cdrom in that dir I already
thought of, the problem is then 300 megs of data from another HD...
either copy them all or repartition it and mount the data like the
cdrom.... aaaargh... this destroys much of my nice ideas..... but
thanks! I've learned and come closer to enlightment!
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
________________________________________________________________________
http://www.redhat.com/RedHat-FAQ http://www.redhat.com/RedHat-Errata
http://www.redhat.com/RedHat-Tips http://www.redhat.com/mailing-lists
------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
________________________________________________________________________
http://www.redhat.com/RedHat-FAQ http://www.redhat.com/RedHat-Errata
http://www.redhat.com/RedHat-Tips http://www.redhat.com/mailing-lists
------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null