Re: vsftpd: access network directories possibe?
- From: Ohmster <notareal@emailaddress.>
- Date: Sat, 28 Oct 2006 03:25:00 -0500
Alan_C <mtbr0228AT@xxxxxxxxxxxxxxxx> wrote in
news:87k62lq9nk.fsf@xxxxxxxxxxxxxxxxx:
Ohmster <notareal@emailaddress.> writes:
<snip>
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
Isn't the --bind option needed when something gets mounted for a 2nd
time?
I think it is.
I was able to do that, mount it with the --bind tag and mount it again,
but I had no problem with mounting it twice without the bind anyway. I
did it like this:
[root@ohmster pub]# mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/mapper/VolGroup01-LogVol00 on /mnt/old_sys type ext3 (rw)
/dev/hda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
automount(pid10203) on /net type autofs (rw,fd=4,pgrp=10203,minproto=
2,maxproto=4)
//missy/ohmster_music on /media/ohmster_music type cifs (rw,mand)
[root@ohmster pub]#
[root@ohmster pub]# mount --bind /media/ohmster_music /var/ftp/pub/music
[root@ohmster pub]#
[root@ohmster pub]# mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/mapper/VolGroup01-LogVol00 on /mnt/old_sys type ext3 (rw)
/dev/hda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
automount(pid10203) on /net type autofs (rw,fd=4,pgrp=10203,minproto=
2,maxproto=4)
//missy/ohmster_music on /media/ohmster_music type cifs (rw,mand)
/media/ohmster_music on /var/ftp/pub/music type none (rw,bind)
[root@ohmster pub]#
But I could have and did mount the same network share again in two
locations in linux by using the "mount -t cifs..." command. "mount --
bind..." allows me to mount an already mounted share from Linux to Linux
again, that is the only difference that I can see between mount and mount
--bind.
(or maybe I haven't correctly grasped / you unmounted then mounted
under ftp)
Yes, vsftp doesn't like symlink nor even other partitions mounted
elsewhere either.
I had a different partition (previously mounted elsewhere, not under
the ftp). I wanted it (this mounted folder) shared to vsftp. The only
thing that ended up working for me was to mount it again (using the
--bind option) under the ftp.
I did not unmount it. That is, the (partition mounted to a folder)
remained mounted to its original mount. I then used the --bind option
to also mount that partition again under the ftp. And now those files
work with vsftp.
The problem is that I am not mounting a partition but a samba share from
another computer with cifs. Although the share is now mounted in more
than one place, you cannot download from it with FTP because it just does
not work. See output from FTP session:
ftp> bin
200 Switching to Binary mode.
ftp> get "Amy Grant-Baby Baby.mp3"
200 PORT command successful. Consider using PASV.
150 Opening BINARY mode data connection for Amy Grant-Baby Baby.mp3
(3795172 bytes).
426 Failure writing network stream.
ftp>
That is the problem right there. "Failure writing network stream." This
directory/share is on another machine and FTP will not grab files from
another machine like that. I can see and list files all day:
ftp> ls -la
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
drwxrwxrwx 1 0 0 0 Jan 26 2005 .
drwxrwxrwx 1 0 0 0 May 09 22:47 ..
-rwxrwSrwt 1 0 0 2777 Jan 26 2005 AlbumArtSmall.jpg
-rwxrwSrwt 1 0 0 10635 Jan 26 2005 AlbumArt_
{C70FDEE0-4D56-490A-A3C8-EA8AC8AE52B2}_Large.jpg
-rwxrwSrwt 1 0 0 2777 Jan 26 2005 AlbumArt_
{C70FDEE0-4D56-490A-A3C8-EA8AC8AE52B2}_Small.jpg
-rwxrwSrwt 1 0 0 3795172 Feb 05 2005 Amy Grant-Baby
Baby.mp3
-rwxrwSrwt 1 0 0 3831073 Feb 05 2005 Amy Grant-Good
for Me.mp3
-rwxrwSrwt 1 0 0 4810352 Feb 05 2005 Amy Grant-I Will
Remember You.mp3
-rwxrwSrwt 1 0 0 10635 Jan 26 2005 Folder.jpg
-rwxrwSrwt 1 0 0 10752 Sep 24 2002 Thumbs.db
-rwxrwSrwt 1 0 0 356 Jan 26 2005 desktop.ini
226 Directory send OK.
ftp: 883 bytes received in 0.00Seconds 883000.00Kbytes/sec.
ftp>
But cannot "get" any files when they are mounted as a network share.
Maybe I did not make that point?
[snip]
Can anyone tell me how to make a link in the ftp pub directory to a share
on a network computer and then have it accessible from an ftp connection,
for downloading files as well as listing them? 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? - SOLVED
- From: Ohmster
- Re: vsftpd: access network directories possibe? - SOLVED
- References:
- vsftpd: access network directories possibe?
- From: Ohmster
- Re: vsftpd: access network directories possibe?
- From: Alan_C
- vsftpd: access network directories possibe?
- Prev by Date: Re: vsftpd: access network directories possibe?
- Next by Date: Re: What is LDAP and is it useful on home network FC5?
- Previous by thread: Re: vsftpd: access network directories possibe?
- Next by thread: Re: vsftpd: access network directories possibe? - SOLVED
- Index(es):
Relevant Pages
|