LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Vsftpd access to mounted external drive (https://www.linuxquestions.org/questions/linux-software-2/vsftpd-access-to-mounted-external-drive-618788/)

HDWorx 02-05-2008 05:26 AM

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

Tuttle 02-05-2008 10:07 PM

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....

Person_1873 02-05-2008 11:08 PM

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

HDWorx 02-06-2008 09:32 AM

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

HDWorx 02-23-2008 10:44 AM

making the drive ext3 or fat 32 solves the problem.. but why doesnt ntfs work?

Person_1873 02-28-2008 05:16 AM

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


All times are GMT -5. The time now is 04:20 AM.