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 |
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 but now also in /home/ftpusers/ftpfolder ... i am pretty sure this is the question your asking, just state otherwise if i misunderstood you .... |
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" .
|
'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.
|
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 say, that is inside /dev/hda3 ... |
All times are GMT -5. The time now is 09:55 AM. |