Forum Home
Press F1
 
Thread ID: 52643 2004-12-25 06:01:00 Linux Symlinks Question Ash M (46) Press F1
Post ID Timestamp Content User
307336 2004-12-25 06:01:00 Hey,

I have a FC2 linux box that I am using as an FTP Server on my local lan.
I have an 80GB hdd in it, and a 30GB external USB drive as well.

By default people logging into my server are put into /home/ftp, meaning they can use the full 80gb.

Is is possible to setup a symlink, to /mnt/usb (the external drive) so that they can access files stored on the external drive, even though they are chrooted to the new drive? If so, what command would I use.

Thanx
Ash
Ash M (46)
307337 2004-12-25 06:09:00 Open up a terminal and cd to the /home/ftp directory. Then enter in:

ln -s /mnt/usb
(note that is a lowercase L in ln)

This will place a folder called usb in the ftp directory which is linked to the /mnt/usb directory.
Jen (38)
307338 2004-12-25 06:58:00 Open up a terminal and cd to the /home/ftp directory. Then enter in:

ln -s /mnt/usb
(note that is a lowercase L in ln)

This will place a folder called usb in the ftp directory which is linked to the /mnt/usb directory.

Thanks for that. The problem is, the ftp users are chrooted in the vsftpd configuration to their home directories. Do you know if there is any way I can override this for this one folder, without removing the chroot?
Ash M (46)
307339 2004-12-25 07:06:00 mount --bind /mnt/usb /home/ftp Chilling_Silence (9)
307340 2004-12-25 07:08:00 Sorry in my haste I hit post and forgot to answer the rest.

Check in /etc/vsftpd because there's a fair few options for it. There may be a file in that folder called chroot_users, which sets who is/isnt chrooted.


Chill.
Chilling_Silence (9)
307341 2004-12-25 09:57:00 mount --bind /mnt/usb /home/ftp

Thanks Chill/Jen, that did exactly what I wanted.... Where did you (and Jen) learn all this stuff.. Did you just install linux one day and started playing around, or read a book, or take a course or what.
Ash M (46)
307342 2004-12-25 20:12:00 Lets just say I managed to break my Redhat 8/9 box so many times I could do a complete backup/reformat/restoration in about 20-25mins.... That and I wasnt afraid to try something "new/different".

Gentoo helps a lot also, thats where the real power is at :-)

Stick with it and Im sure you'll be similar someday!

Cheers


Chill.
Chilling_Silence (9)
1