LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-02-2004, 04:12 PM   #1
pablovschby
Member
 
Registered: Oct 2003
Posts: 153

Rep: Reputation: 30
how to make links in vsftpd?


Hello,

i've searched google and this forum here didn't answer my question either.
How can I make a link from the home-dir of a ftp-user in vsftpd to a destination, for example /mnt/pladde...?
Thanks for all advises
 
Old 11-02-2004, 05:25 PM   #2
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
well symlinks don't seem to work very well with ftp servers, so i'll give you
an example of something you can do .. lets say you have a second hard
drive that has some of the data you want to host on a ftp server, which
we'll call /mnt/storage ... and lets say you have your ftp users locked in a
folder /home/ftpusers, in which this is the location you want people to
collect the data ... so first you will make a folder within this location, so you use the mkdir command, and we'll call it ftpfolder .. so now we have a folder called /home/ftpusers/ftpfolder ... you can use the mount command with the following argument ..

Code:
mount --bind /mnt/storage /home/ftpusers/ftpfolder
so the contents of /mnt/storage will not only be located in /mnt/storage
but now also in /home/ftpusers/ftpfolder ...

i am pretty sure this is the question your asking, just state otherwise
if i misunderstood you ....
 
Old 11-08-2004, 08:18 AM   #3
TaTaE
LQ Newbie
 
Registered: Sep 2004
Distribution: Fedora Core 2 on Pentium III 700Mhz
Posts: 6

Rep: Reputation: 0
I tried to make symlink in /var/ftp/pub/ pointing to /mnt/hda3/games but ftp users cannot enter that link. I wonder what went wrong. I did chown 744 the hole directory "games" and "pub" .
 
Old 11-08-2004, 08:21 AM   #4
TaTaE
LQ Newbie
 
Registered: Sep 2004
Distribution: Fedora Core 2 on Pentium III 700Mhz
Posts: 6

Rep: Reputation: 0
'Sorry for the mistypings. I should also mention that my target directory is INSIDE /dev/hda3 so i don't want to use MOUNT --BIND , as i don't want to share the whole partition.
 
Old 11-09-2004, 08:00 PM   #5
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
you don't have to share the whole partition ... share the specific folder .. so if for example, i am going to be making total assumption on this, but thats the only way i can give
an example ... so lets assume /dev/hda3 is mounted as
/usr/local ... and the data you want to share is for example :
/usr/local/i/want/to/share/this/particular/folder/on/devhda3
then all you have to type is :
Code:
mount --bind /usr/local/i/want/to/share/this/particular/folder/on/devhda3 /home/ftpusers/ftpfolder
as you can see you are only sharing that particular folder,
as you say, that is inside /dev/hda3 ...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
vsftpd - creating links that can be used remotely ereeno Linux - Software 5 10-16-2008 05:38 AM
vsftpd won't follow links for anonymous login sebaldus Linux - Software 7 08-22-2004 02:14 AM
Symbolic Links with VSFTPD corpus_delicti Linux - Networking 9 11-16-2003 11:53 AM
vsftpd, combining chroot jail & links? Whz Linux - Software 0 07-25-2003 04:31 PM
Sym Links and vsFTPd Datacraft Linux - Software 1 05-24-2003 05:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration