LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

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

Rep: Reputation: 0
Vsftpd access to mounted external drive


hi all,

I am using Fedora Core 8. 2.6.23.1-42

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:
Code:
#
# Allow anonymous FTP?
anonymous_enable=NO
#
# Uncomment this to allow local users to log in.
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES
#
# 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)
local_umask=022
#

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

#
# 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.
#deny_email_enable=YES
# (default follows)
#banned_email_file=/etc/vsftpd.banned_emails
#
# 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().
chroot_list_enable=YES
# (default follows)
chroot_list_file=/etc/vsftpd.chroot_list
#
# 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.
#ls_recurse_enable=YES

pam_service_name=vsftpd
userlist_enable=NO
#enable for standalone mode
listen=YES
#tcp wrappers is for browser connection
tcp_wrappers=YES
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
Tuttle
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
Person_1873
Member
 
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
HDWorx
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
HDWorx
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
Person_1873
Member
 
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
 
  


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
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 01:20 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration