View previous topic :: View next topic |
Author |
Message |
IvanZD Apprentice

Joined: 04 Jul 2005 Posts: 166
|
Posted: Thu Jul 07, 2005 5:18 pm Post subject: Serve more directories with vsftpd |
|
|
Hi!
I wonder if I can serve more then one directory with this daemon? For example; /home/ftp is regular dir I wish to serve, but I would like to also serve my /usr/portage/distfiles, so friends can download source files from me. I tried to symlink /usr/portage/distfiles from inside /home/ftp, but without success; if I try to follow that symlink in ftp session, I get error ("Could not read /distfiles.", or similar like "550 Failed to change directory." depending from ftp client using).
How to setup this to work properly? Thx _________________ http://www.meteoadriatic.net/ |
|
Back to top |
|
 |
wjholden l33t

Joined: 01 Mar 2004 Posts: 826 Location: Augusta, GA
|
Posted: Thu Jul 07, 2005 5:50 pm Post subject: |
|
|
Something you could do is bind the directories. I used to use binding all the time.
Code: | mkdir /home/ftp/distfiles
mount --bind /usr/portage/distfiles/ /home/ftp/distfiles/ |
Then add it to your /etc/fstab like this:
Code: | /usr/portage/distfiles /home/ftp/distfiles auto bind,ro 0 0 |
|
|
Back to top |
|
 |
IvanZD Apprentice

Joined: 04 Jul 2005 Posts: 166
|
Posted: Thu Jul 07, 2005 6:02 pm Post subject: Serve more directories with vsftpd [solved] |
|
|
Works, thanks! _________________ http://www.meteoadriatic.net/ |
|
Back to top |
|
 |
|