LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   how to make links in vsftpd? (https://www.linuxquestions.org/questions/linux-networking-3/how-to-make-links-in-vsftpd-250363/)

pablovschby 11-02-2004 04:12 PM

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

DrOzz 11-02-2004 05:25 PM

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 ....

TaTaE 11-08-2004 08:18 AM

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" .

TaTaE 11-08-2004 08:21 AM

'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.

DrOzz 11-09-2004 08:00 PM

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 ...


All times are GMT -5. The time now is 09:55 AM.