LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-06-2005, 01:29 PM   #1
yus
LQ Newbie
 
Registered: Sep 2005
Posts: 5

Rep: Reputation: 0
browsing ntfs partitions via ftp


hello everyone.

i mounted 1 ntfs partition in my fedora4, then, with vsftpd i start my ftp server.

when i log in, i cant see my /mnt directory, it is invisible to my ftp client. i changed the '/mnt/windows' mount point to '/home/user1/windows' but still nothing, my ftp client can see every single directory except for the one with the ntfs partition mounted. I even changed the mount point to to /home/user1/windowsD and my client was able to see the emty folder of /home/user1/windows, but the /home/user1/widnowsD is now invisible.

what can i do to access the ntfs partitions via ftp?

thanx
 
Old 09-06-2005, 02:05 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Can you see the folder from the computer locally? Can you access files in it?

vsftpd may be set up NOT to traverse mountpoints.
 
Old 09-07-2005, 04:49 PM   #3
yus
LQ Newbie
 
Registered: Sep 2005
Posts: 5

Original Poster
Rep: Reputation: 0
yes i can!

it is perfectly mounted, i can read every file

i think it is set up not to traverse mountpoint

but then, how do i configure vsftpd to see the mountpoints?
 
Old 09-07-2005, 09:40 PM   #4
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Can you post the output of the 'mount' command? I see no specific related options in the vsftpd.conf manpage, however I do wonder if the user vsftpd runs as can read those directories.
 
Old 09-08-2005, 10:46 PM   #5
yus
LQ Newbie
 
Registered: Sep 2005
Posts: 5

Original Poster
Rep: Reputation: 0
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
/dev/proc on /proc type proc (rw)
/dev/sys on /sys type sysfs (rw)
/dev/devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/hda6 on /boot type ext3 (rw)
/dev/shm on /dev/shm type tmpfs (rw)
/dev/hda1 on /mnt/windows type ntfs (ro,noexec,nosuid,nodev,umask=000)
/dev/hda5 on /mnt/windowsD type ntfs (ro,noexec,nosuid,nodev,umask=000)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
automount(pid2132) on /misc type autofs (rw,fd=4,pgrp=2132,minproto=2,maxproto=4)
automount(pid2167) on /net type autofs (rw,fd=4,pgrp=2167,minproto=2,maxproto=4)


then i run the command "mount --move /mnt/windows /home/user1/windows"
before i do that, i can access /home/user1/windows emty dir with no problem
but after i mount it, the folder does not appears any more in the ftp client, but if i localy browse
it i can see all the files of the partition mounted, i dont know what is going on here.

thanx
 
Old 09-14-2005, 09:28 AM   #6
thiagobart
LQ Newbie
 
Registered: Sep 2005
Distribution: Fedora Core 4
Posts: 2

Rep: Reputation: 0
Hi,

just in order to help finding the solution, I am experiencing the same problem but without Windows.

I have a laptop only with 1 HD which has some partitions:

Code:
 
[root@hobbes vsftpd]# mount
/dev/hda3 on / type ext3 (rw)
/dev/proc  on /proc type proc (rw)
/dev/sys  on /sys type sysfs (rw)
/dev/devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/hda1  on /boot type ext3 (rw)
/dev/shm on /dev/shm type tmpfs (rw)
/dev/hda6 on /home type ext3 (rw)
/dev/hda8 on /mnt/hd2 type ext2 (rw)
/dev/hda7 on /s type ext3 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/dev/hdc on /media/cdrecorder type udf (rw,nosuid,nodev,_netdev,user=bart)
When I log with a local user using "ftp localhost" and make "ls /" I get:

Code:
ftp> ls /
227 Entering Passive Mode (127,0,0,1,241,50)
150 Here comes the directory listing.
drwxr-xr-x   10 0        0            5140 Sep 14 12:20 dev
drwxr-xr-x   95 0        0            12288 Sep 14 14:08 etc
drwxr-xr-x   10 0        0            4096 Jul 28 19:18 home
drwxr-xr-x   11 0        0            4096 Aug 31 08:11 lib
drwxr-xr-x   20 0        0            4096 Aug 24 11:01 opt
dr-xr-xr-x  127 0        0               0 Sep 14  2005 proc
drwxr-x---   44 0        0            4096 Sep 14 13:09 root
drwxr-xr-x    2 0        0            4096 May 23 04:28 srv
drwxr-xr-x   10 0        0               0 Sep 14  2005 sys
drwxrwxrwt  19 0        0           16384 Sep 14 14:10 tmp
drwxr-xr-x   14 0        0            4096 Sep 07  2004 usr
drwxr-xr-x   26 0        0            4096 Aug 10 13:30 var
226 Directory send OK.
Note that the directories for /s, /boot and /mnt/hd2, which are other partitions from the same /dev/hda, simply are not shown. And I am pretty sure I can access them locally with the same user I am logging in.

I searched the net and read the whole vsftpd.conf man page but couldn't find anything related to partitions, mountpoint or device restrictions.

Any one has a clue?

Regards,
Thiago
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FTP browsing through squid ncorreia Linux - Software 0 02-09-2005 11:12 AM
KDE problem browsing NTFS freefall90 Linux - Software 4 10-13-2004 01:46 PM
Browsing Other Local Partitions soopafresh Linux - General 1 08-05-2004 10:12 PM
mozilla not browsing ftp sites kabads Linux - Software 0 09-04-2003 04:41 AM
Stop user from browsing ftp Sifvion Slackware 4 09-16-2002 07:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration