Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Serve more directories with vsftpd
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
IvanZD
Apprentice
Apprentice


Joined: 04 Jul 2005
Posts: 166

PostPosted: Thu Jul 07, 2005 5:18 pm    Post subject: Serve more directories with vsftpd Reply with quote

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
View user's profile Send private message
wjholden
l33t
l33t


Joined: 01 Mar 2004
Posts: 826
Location: Augusta, GA

PostPosted: Thu Jul 07, 2005 5:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
IvanZD
Apprentice
Apprentice


Joined: 04 Jul 2005
Posts: 166

PostPosted: Thu Jul 07, 2005 6:02 pm    Post subject: Serve more directories with vsftpd [solved] Reply with quote

Works, thanks!
_________________
http://www.meteoadriatic.net/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum