Click to See Complete Forum and Search --> : GAH!


Counterstrike
04-03-2001, 07:27 AM
I'm trying to set up an FTP server using wu-ftpd 2.6.0 ... anyways, I have the anonymous login setup correctly, it chroots just fine and everything seems to be working correctly. Anonymous users have a choice of 4 directories: bin, pub, etc, and lib. Inside the pub directory I was to create a sym link to my mp3s (/mnt/win_c2). I used the command (as root):

ln -s /mnt/win_c2 mp3

it creates mp3, tells me that it's a link to /mnt/win_c2 ... everything should work, I can follow the link on my computer with no problems. But when logging in with CuteFTP from another computer on the network, I can't follow the sym link as an anonymous user, only as an authenticated one. What did I do wrong? What's going on? I've been tinkering with this for 2-1/2 hours now and I'm becoming extremely annoyed... anyone out there that can help? ... Please?

<edit> The error I get when trying to follow the sym link on the client computer is "No such file or directory." </edit>

[ 03 April 2001: Message edited by: Counterstrike ]

bdg1983
04-03-2001, 04:36 PM
I would guess the anonymous user does not have the permissions set to see the symlink or it is not in the $PATH.

Craig McPherson
04-05-2001, 06:06 AM
The FTP directory structure for anonymous users is inside a chroot "jail". The FTP directory becomes a sort of virtual self-contained filesystem, with no links outside to the "real" filesystem. Within that jail, it's impossible for a symlink to point to /mnt/win, because /mnt/win doesn't exist in that filesystem. Symlinks in the FTP filesystem can only point to other stuff within that same "jail".

There are ways around this. You can mount the drive with your MP3s beneath the FTP directory directly (for example, /pathtoftpdirectory/pub/mp3), and then symlink /mnt/win_2c to that, for example.