Solved

vsftpd configuration to make external ntfs drive available via ftp

Posted on 2004-09-08
8
2,072 Views
Last Modified: 2013-12-16
I have installed vsftpd.. my config file is as follows..
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
xferlog_enable=YES
xferlog_file=/var/log/vsftpd.log
xferlog_std_format=YES
ascii_upload_enable=YES
ascii_download_enable=YES
ls_recurse_enable=YES
connect_from_port_20=YES
chroot_local_user=YES
userlist_enable=YES
userlist_file=/etc/chrootUsers
userlist_deny=NO
pam_service_name=vsftpd

I have created a user.... i can ssh into the box as that user..but if I
#ftp localhost
and pass the username and password.. i get a login failure message..what do i need to do to get this username and passd to work ?


my bigger question is that I have an external ntfs volume mounted as /var/external... i want to have ftp users see that external volume and upload files from it ... how do i setup to have local users view this external drive via ftp..

I have tried mounting as
/var/ftp   ..no help


0
Comment
Question by:regenbauma
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 

Author Comment

by:regenbauma
ID: 12017830
some more info .... the goal here is to mount the external drive so that it can be seen by any type of ftp user.... chrooted or otherwise ....

to give you max info on the drive

tail -f messages on insert gives

Sep  9 16:46:49 localhost kernel: hub.c: USB new device connect on bus1/2, assigned device number 4
Sep  9 16:46:49 localhost kernel: scsi2 : SCSI emulation for USB Mass Storage devices
Sep  9 16:46:49 localhost kernel:   Vendor: Maxtor 6  Model: Y160L0            Rev:  0 0
Sep  9 16:46:49 localhost kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
Sep  9 16:46:49 localhost kernel: Attached scsi disk sdc at scsi2, channel 0, id 0, lun 0
Sep  9 16:46:49 localhost kernel: SCSI device sdc: 320173056 512-byte hdwr sectors (163929 MB)
Sep  9 16:46:49 localhost kernel:  sdc: sdc1


then i

#mount -t ntfs /dev/sdc1 /mnt/external
#[root@localhost etc]# ls /mnt/external
e00009.mpg
# ls -dl /mnt/external
dr-x------    1 root     root         4096 Apr  9  2002 /mnt/external


regarding vsftpd  .. i have managed to configure login from local users .... so would ideally like to mount this drive so that its contents were aavailable to the local user home directory /home/sealynx

I have tried to mount the volume as /home/sealynx

 mount -t ntfs /dev/sdc1 /home/sealynx
[root@localhost etc]# ls /home/sealynx
e00009.mpg
[root@localhost etc]# ftp localhost
Connected to localhost (127.0.0.1).
220 (vsFTPd 2.0.1)
Name (localhost:root): sealynx
331 Please specify the password.
Password:
500 OOPS: cannot change directory:/home/sealynx
Login failed.
421 Service not available, remote server has closed connection
ftp>


i also tried bind

[root@localhost etc]# mount -t ntfs /dev/sdc1 /mnt/external
mount --bind /mnt/external /home/sealynx
[root@localhost etc]# ls /home/sealynx
e00009.mpg
[root@localhost etc]# ftp localhost
Connected to localhost (127.0.0.1).
220 (vsFTPd 2.0.1)
Name (localhost:root): sealynx
331 Please specify the password.
Password:
500 OOPS: cannot change directory:/home/sealynx
Login failed.
421 Service not available, remote server has closed connection


help is appreciated
0
 

Expert Comment

by:aadilfahad
ID: 12021519
go to this site

www.linuxjalali.com

make forum registration.    here admin reply you directly in minuts.

www.linuxjalali.com/forum

The great Linux Related Tools Are Also In This Website free downloads.
0
 

Author Comment

by:regenbauma
ID: 12021844
I have answered thsi question ... it was related to umask on the mount command
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
LVL 5

Expert Comment

by:paranoidcookie
ID: 12026685
You have set up userlist enable = yes so vsftp will be looking for a list of users that are allowed to log in.

Hope that helps
0
 

Author Comment

by:regenbauma
ID: 12027601
please "close" this question... i have answered it myself ...
the ftp server is fine...
what was required was to ensure that the external drive had a correct umask on mounting
0
 
LVL 6

Expert Comment

by:knollbert
ID: 12028801
To close post a 0 point question in the CS (customer service/Community support) TA
with Remove in the question title and the question number
0
 

Accepted Solution

by:
CetusMOD earned 0 total points
ID: 12058084
Closed, 50 points refunded.
CetusMOD
Community Support Moderator
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Upgrade BIOS / EUFI at Scale 4 72
RHEL installation problems on HP Proliant DL 360 G6 server 20 131
rsyslog raw message 4 38
Ubuntu don’t allow SU command in terminal 7 70
Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Fine Tune your automatic Updates for Ubuntu / Debian
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

697 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question