Hi I have an FTP directory set up in /srv/ftp In it I have a directory; Downloads which is intended to allow registerred system users to download files from my system. I also have a link lrwxrwxrwx 1 ricreig users 44 Jan 13 14:20 Music -> /mnt/nfs/asus/raidbox/Multimedia/Audio/Music to allow access to my several hundred gig music library to a few friends BUT, while the link shows up, no one using ftp can follow the link. This link points to my file server. Any ideas why a link wouldn't work in FTP? I can transverse the path just fine as 'me' as long as I am not doing it using FTP. What stupidity have I fallen into now? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wednesday 14 January 2009 01:56:42 Richard wrote:
This link points to my file server. Any ideas why a link wouldn't work in FTP? I can transverse the path just fine as 'me' as long as I am not doing it using FTP.
What stupidity have I fallen into now?
The ftp users are only allowed to use directories under /srv/ftp, and /mnt is outside of that. There are two options: either use, instead of a symlink mount -o bind /mnt/nfs/asus/raidbox/Multimedia/Audio/Music /srv/ftp/Music or change the configuration of the ftp server to allow access to the directory under /mnt I would recommend the mount method Anders -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tue January 13 2009 8:18:00 pm Anders Johansson wrote:
mount -o bind /mnt/nfs/asus/raidbox/Multimedia/Audio/Music /srv/ftp/Music
Thankyou Anders. By configuring FTP so as to allowing access outside of /srv/ftp, I assume you mean to NOT chroot validated users. Can this be done without affecting anonymous users which go to my repositories mirrors? Right now, authenticated users go to /srv/ftp and anonymous users go to /raid/repositories. In the meantime, I'll give your #2 suggestion a try and see if that will also work. It does allow less flexibility (read ease of maintenance) in that I have to remember to mount additional links and not use symlinks in FTP. Again, thanks Richard -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thursday 15 January 2009 00:01:58 Richard wrote:
On Tue January 13 2009 8:18:00 pm Anders Johansson wrote:
mount -o bind /mnt/nfs/asus/raidbox/Multimedia/Audio/Music /srv/ftp/Music
Thankyou Anders. By configuring FTP so as to allowing access outside of /srv/ftp, I assume you mean to NOT chroot validated users. Can this be done without affecting anonymous users which go to my repositories mirrors? Right now, authenticated users go to /srv/ftp and anonymous users go to /raid/repositories.
In the meantime, I'll give your #2 suggestion a try and see if that will also work. It does allow less flexibility (read ease of maintenance) in that I have to remember to mount additional links and not use symlinks in FTP.
Seconding Anders suggestion of using the bind mount option instead of a symlink and configuring the FTP daemon to have access outside of /srv/ftp. You can add the bind mount to the fstab in order to make it mount automatically at boot time, or make use of autofs. Jon -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thu January 15 2009 1:28:10 am Jonathan Ervine wrote:
On Thursday 15 January 2009 00:01:58 Richard wrote:
On Tue January 13 2009 8:18:00 pm Anders Johansson wrote:
mount -o bind /mnt/nfs/asus/raidbox/Multimedia/Audio/Music /srv/ftp/Music
Thankyou Anders. By configuring FTP so as to allowing access outside of /srv/ftp, I assume you mean to NOT chroot validated users. Can this be done without affecting anonymous users which go to my repositories mirrors? Right now, authenticated users go to /srv/ftp and anonymous users go to /raid/repositories.
In the meantime, I'll give your #2 suggestion a try and see if that will also work. It does allow less flexibility (read ease of maintenance) in that I have to remember to mount additional links and not use symlinks in FTP.
Seconding Anders suggestion of using the bind mount option instead of a symlink and configuring the FTP daemon to have access outside of /srv/ftp. You can add the bind mount to the fstab in order to make it mount automatically at boot time, or make use of autofs.
Jon
I appreciate the suggestions. I don't seem to be able to properly translate /mnt/nfs/asus/raidbox/Multimedia/Audio/Music /srv/ftp/Downloads/Music nfs rw,bind 0 0 from mount /srv/fmount -o bind /mnt/nfs/asus/raidbox/Multimedia/Audio/Music /srv/ftp/Downloads/Music properly. When I try to mount it, NFS barfs. If I replace nfs with none or bind, it says unknown type. I would like to have them automounted at reboot. I can handle modifying the fstab and making a dummy directory to hold external directories if I can get the 'bind' entry correct in fstab. In the meantime, the mount -o bind is working.... I just have to remember to do it each time I reboot....which is fortunately almost never, which means I will probably forget if I ever do reboot :) -- Richard -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (4)
-
Anders Johansson
-
Jonathan Ervine
-
Richard
-
Richard Creighton