Register a domain and help support LQ
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


LinkBack Search this Thread
Old 02-05-2008, 05:26 AM   #1
LQ Newbie
Registered: Jan 2008
Posts: 7

Rep: Reputation: 0
Vsftpd access to mounted external drive

hi all,

I am using Fedora Core 8.

I have mounted /dev/sdb1 which is an ntfs drive to my ftp directory under a folder /ftp/drive

unfortunately, my ftp users are unable to access /ftp/drive even though this folder's permissions are just like all the other folders in /ftp

Note that file transfers and everything is fully functional to /ftp and all other folders in /ftp the only issue is the mounted external drive

so any help here?

thanks a bunch

this is what my vsftpd.conf file looks like:
# Allow anonymous FTP?
# Uncomment this to allow local users to log in.
# Uncomment this to enable any form of FTP write command.
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)

# Make sure PORT transfer connections originate from port 20 (ftp-data).

# You may fully customise the login banner string:
ftpd_banner=Welcome to the HD-Network FTP service.
# You may specify a file of disallowed anonymous e-mail addresses. Apparently
# useful for combatting certain DoS attacks.
# (default follows)
# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
# (default follows)
# You may activate the "-R" option to the builtin ls. This is disabled by
# default to avoid remote users being able to cause excessive I/O on large
# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
# the presence of the "-R" option, so there is a strong case for enabling it.

#enable for standalone mode
#tcp wrappers is for browser connection
chroot_list is a user called ftpadmin who's home directory is /ftp

Last edited by HDWorx; 02-05-2008 at 05:29 AM.
Old 02-05-2008, 10:07 PM   #2
Senior Member
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,289

Rep: Reputation: 52
If I am not mistaken vsftpd (and some other file servers) won't allow you to see anything within the root folder if it is on another mounted volume, confirm this by mounting your external drive on /ftp/ and see what happens when you restart the server....
Old 02-05-2008, 11:08 PM   #3
Registered: Sep 2007
Location: Australia
Distribution: Arch Linux
Posts: 489

Rep: Reputation: 39
does vsftpd have ntfs support?, you may want to make it ext3 or fat32 (depending on size) if its smaller than 20GB i'd go with fat32, that way its compatible with just about any OS that should try to access it
Old 02-06-2008, 09:32 AM   #4
LQ Newbie
Registered: Jan 2008
Posts: 7

Original Poster
Rep: Reputation: 0
currently i can create a virtual mount using the command "mount --bind /src /des" and mount any folder outside my chroot directory which is /srv/ftp
i can do this for any folder except for the mounted directory. when my mounted directory is mounted into a folder in /srv/ftp i can access it locally on the pc but cannot see it through vsftp.
my mount command was :
mount -t ntfs /dev/sdb1 /media/ext
mount --bind -o umask=0644 /media/ext /srv/ftp/drive

as an ftp client i am unable to view /srv/ftp/drive

ownership of /media/ext and /srv/ftp/drive are for root
but still all my other folders in /srv/ftp are owned by root and i can access read/write to them with no problems
Old 02-23-2008, 10:44 AM   #5
LQ Newbie
Registered: Jan 2008
Posts: 7

Original Poster
Rep: Reputation: 0
making the drive ext3 or fat 32 solves the problem.. but why doesnt ntfs work?
Old 02-28-2008, 05:16 AM   #6
Registered: Sep 2007
Location: Australia
Distribution: Arch Linux
Posts: 489

Rep: Reputation: 39
because ntfs is not currently fully supported, there are glitches in the modules and your ftp software developers probably decided that in the interest of keeping their software stable, not to support it


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
External Hard Drive is mounted but I can't access - pls help! (newbee) esspy4 Linux - Hardware 13 07-12-2007 04:51 AM
ext3 partition on external USB hard drive mounted, but only root access allowed leontini Linux - Hardware 4 02-17-2006 01:54 AM
vsftpd only can access for internal but not external bbmak Linux - Software 9 04-29-2005 08:36 PM
vsftpd, router and external access; Oh my! Imyrryr Linux - Networking 14 09-07-2003 09:22 AM
External Drive Mounted, Can't access as a user thewaker Linux - Hardware 4 08-14-2003 03:26 PM

All times are GMT -5. The time now is 02:03 PM.

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