>>> On 5/12/2009 at 10:10 AM, Lionel B Dyck <[email protected]> wrote: > I setup a linux server (based on the novell starter kit) under z/vm to > serve installation media. In the anonymous ftp directory /srv/repository > (which the starter kit placed there) I created a link to my sles11 > directory which is mounted on /dev/dasdd1. When I ftp in as anonymous I > can see the sles11 directory: > > lrwxrwxrwx 1 0 0 12 May 11 20:19 sles11 -> > /sles/sles11 > > But I can not cd to it > > ftp> cd sles11 > 550 Failed to change directory. > > I'm baffled - any advice
With vsftpd, all anonymous access is chrooted to the the ftp user's home directory. That is /srv/ftp by default. So, any symbolic links that point anywhere outside the chroot environment will be inaccessible. If you want to keep anonymous access, then do a bind mount of your repository on top of a mount point inside /srv/ftp. In your case that would look like this: mount --bind /sles/sles11 /srv/ftp/sles11 You'll need to remove the symlink and create the mount point first, of course. Mark Post ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
