vsftpd: access network directories possibe?
- From: Ohmster <notareal@emailaddress.>
- Date: Thu, 26 Oct 2006 21:50:29 -0500
I have a Fedora Core 5 machine on a cablemodem with FQDN. I run vsftpd
for FTP server and apace for a web server. I have quite a few gigs on my
XP machine on the home LAN that I would like to share with people on the
FTP server at times. Rather than copy all of that stuff to the FC5
machine where the vsftpd server is running, I would like to make a link
or mount in the ftp pub directory so that my ftp visitors can follow the
link or enter the mounted cifs XP share and have read access to the files
on my XP machine.
I have the XP share mounted with cifs on the FC5 machine as /mnt/test and
all of the files are fully accessable for reading (XP machine file system
is NTSF), but when I make a symlink to the mounted XP share, vsftpd gives
a permission denied message. I then mounted the XP share again under the
pub directory in the vsftpd home and now the files can be access by
entering the mounted share and the directory list is available and all
the files are displayed as normal. Here is the command:
mount -t cifs -o
credentials=/etc/smbpasswd.cifs,directio,uid=ohmster,gid=ohmster,rw,dir_m
ode=0755,file_mode=0644,iocharset=utf8 //missy/ohmster_music
/home/ftpsite/pub/test
The problem occurs if I try to download a file. (I am using CuteFTP 4 as
a test on my XP machine, visiting the site by it's FQDN.) The file fails
to download and the FTP client continues to try and download it. Here is
the FTP client output:
COMMAND:> CWD test
250 Directory successfully changed.
COMMAND:> pwd
257 "/pub/test"
COMMAND:> TYPE A
200 Switching to ASCII mode.
STATUS:> Retrieving directory listing...
COMMAND:> PORT 192,168,0,3,9,38
200 PORT command successful. Consider using PASV.
COMMAND:> LIST
150 Here comes the directory listing.
226 Directory send OK.
STATUS:> Received 67051 bytes Ok.
STATUS:> Time: 0:00:01, Efficiency: 65.48 KBytes/s (67051 bytes/s)
STATUS:> Done.
COMMAND:> TYPE I
200 Switching to Binary mode.
STATUS:> Receiving: The Ronnets - Be My Baby.mp3 --> d:\bench\The
Ronnets - Be My Baby.mp3
COMMAND:> PORT 192,168,0,3,9,39
200 PORT command successful. Consider using PASV.
COMMAND:> RETR The Ronnets - Be My Baby.mp3
150 Opening BINARY mode data connection for The Ronnets - Be My
Baby.mp3 (3837330 bytes).
426 Failure writing network stream.
STATUS:> Received 0 bytes, Abnormal termination
STATUS:> Failed to receive The Ronnets - Be My Baby.mp3
STATUS:> Disconnect: Thursday 22:42:48 10-26-2006
STATUS:> Connect: Thursday 22:42:48 10-26-2006
STATUS:> Connecting to ftp.ohmster.com
STATUS:> Connecting to ftp.ohmster.com (ip = 24.127.198.207)
STATUS:> Socket connected. Waiting for welcome message...
220 Welcome to ohmster FTP service.
STATUS:> Connected. Authenticating...
COMMAND:> USER backroom
331 Please specify the password.
COMMAND:> PASS ********
230-This is the ohmster backroom FTP. All sessions are logged.
230 Login successful.
STATUS:> Login successful
COMMAND:> TYPE I
200 Switching to Binary mode.
COMMAND:> pwd
257 "/"
COMMAND:> TYPE A
200 Switching to ASCII mode.
STATUS:> Retrieving directory listing...
COMMAND:> PORT 192,168,0,3,9,41
200 PORT command successful. Consider using PASV.
COMMAND:> LIST
150 Here comes the directory listing.
226 Directory send OK.
STATUS:> Received 127 bytes Ok.
STATUS:> Time: 0:00:01, Efficiency: 0.12 KBytes/s (127 bytes/s)
STATUS:> Done.
COMMAND:> CWD /pub/test
250 Directory successfully changed.
COMMAND:> pwd
257 "/pub/test"
COMMAND:> TYPE A
200 Switching to ASCII mode.
STATUS:> Retrieving directory listing...
COMMAND:> PORT 192,168,0,3,9,42
200 PORT command successful. Consider using PASV.
COMMAND:> LIST
150 Here comes the directory listing.
STATUS:> Received 67051 bytes Ok.
STATUS:> Time: 0:00:01, Efficiency: 65.48 KBytes/s (67051 bytes/s)
226 Directory send OK.
STATUS:> Done.
COMMAND:> TYPE I
200 Switching to Binary mode.
STATUS:> Receiving: The Ronnets - Be My Baby.mp3 --> d:\bench\The
Ronnets - Be My Baby.mp3
COMMAND:> PORT 192,168,0,3,9,43
200 PORT command successful. Consider using PASV.
COMMAND:> RETR The Ronnets - Be My Baby.mp3
150 Opening BINARY mode data connection for The Ronnets - Be My
Baby.mp3 (3837330 bytes).
426 Failure writing network stream.
STATUS:> Received 0 bytes, Abnormal termination
STATUS:> Failed to receive The Ronnets - Be My Baby.mp3
STATUS:> Disconnect: Thursday 22:42:49 10-26-2006
And the FTP client continues to fail the download, reconnect, try to
download again, fail, reconnect, etc.
What is the problem here? Is it possible to make a link or mount in an
FTP pub directory to access and download files from a networked share on
the home LAN? I really want to do this as it makes it not neccessary to
copy gigs of data over to the machine and it is easy to create, move, or
delete a link to control access. Same goes for a mount.
Can anyone shed some light on accessing network shares via FTP to a Linux
machine? Is it possible, and if so, how do you do it? Thanks.
--
~Ohmster
theohmster at comcast dot net
Put "messageforohmster" in message body
to pass my spam filter.
.
- Follow-Ups:
- Re: vsftpd: access network directories possibe?
- From: Alan_C
- Re: vsftpd: access network directories possibe?
- Prev by Date: Re: Fedora5 samba
- Next by Date: Re: What is LDAP and is it useful on home network FC5?
- Previous by thread: What is LDAP and is it useful on home network FC5?
- Next by thread: Re: vsftpd: access network directories possibe?
- Index(es):
Relevant Pages
|