Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vsFTPD Authentication Options

Status
Not open for further replies.

StarTAC

ISP
Jun 23, 2000
424
GH
hi all..

does anyone know whether vsFTPD supports authentication of usernames and passwords from a separate file other than /etc/passwd...?.. or better still whether usernames and passwords can be stored in a MySQL database, and auth'ed from there..?.. can vsFTPD support this..?..

all help appreciated....
 
I googled for "vsftpd authentication options" and found this document, which implies that since it uses PAM, that you could potentially add your favorite PAM module to enable auth by any means available to PAM



Surfinbox.com Business Internet Services - National Dialup, DSL, T-1 and more.
 
yeah, i found this too.. i was juz hoping someone had already done it with MySQL..

thx nonetheless, i'll go thru it one more time...

all help appreciated..
 
i managed to find a way, use of the pam_mysql auth module.. problem is, it doesn't have a field for home dir

anyone know how this can be added into the functionality.?..


all help appreciated...
 

I have configured vsftp server in Redhat 9.0 it works great locally, but when I try to connect from client which is the same network

from client

C:\>ftp 10.10.7.133
> ftp: connect :Connection reset by peer
ftp>

where as in the server

[root@testsftp init.d]# ftp 10.10.7.133
Connected to 10.10.100.133 (10.10.7.133).
220 (vsFTPd 1.1.3)
Name (10.10.7.133:root): sysadmin
331 Please specify the password.
Password:
230 Login successful. Have fun.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> bin
200 Switching to Binary mode.
ftp> ls
227 Entering Passive Mode (10,10,100,133,131,158)
150 Here comes the directory listing.
drwxr-xr-x 2 0 0 4096 Feb 06 16:32 bin
drwxr-xr-x 2 0 0 4096 Feb 06 16:32 etc
drwxr-xr-x 3 0 0 4096 Feb 06 16:32 lib
drwxr-xr-x 4 0 0 4096 Feb 06 16:32 usr
226 Directory send OK.

[root@testsftp /]# more /etc/vsftpd/vsftpd.conf
# Example config file /etc/vsftpd.conf

# Allow anonymous FTP?
#anonymous_enable=YES
#
# Uncomment this to allow local users to log in.
local_enable=YES
write_enable=YES
local_umask=022
#anon_upload_enable=YES
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
#chown_uploads=YES
#chown_username=whoever
xferlog_file=/var/log/vsftpd.log
xferlog_std_format=YES
#idle_session_timeout=600
#data_connection_timeout=120
#nopriv_user=ftpsecure
#async_abor_enable=YES
#ascii_upload_enable=YES
#ascii_download_enable=YES
#ftpd_banner=Welcome to blah FTP service.
#banned_email_file=/etc/vsftpd.banned_emails
#deny_email_enable=YES
#chroot_list_enable=YES
# (default follows)
#chroot_list_file=/etc/vsftpd.chroot_list
#ls_recurse_enable=YES

pam_service_name=vsftpd
#userlist_enable=YES
#enable for standalone mode
listen=YES
tcp_wrappers=YES
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top