Result after setting log_ftp_protocol=YES in vsftpd.conf file.
Code:
Mon Mar 17 13:31:08 2008 [pid 31824] CONNECT: Client "10.4.10.21"
Mon Mar 17 13:31:08 2008 [pid 31824] FTP response: Client "10.4.10.21", "220-Test Banner"
Mon Mar 17 13:31:08 2008 [pid 31824] FTP response: Client "10.4.10.21", "220 "
Mon Mar 17 13:31:08 2008 [pid 31824] FTP command: Client "10.4.10.21", "AUTH TLS"
Mon Mar 17 13:31:08 2008 [pid 31824] FTP response: Client "10.4.10.21", "234 Proceed with negotiation."
Mon Mar 17 13:31:08 2008 [pid 31824] FTP command: Client "10.4.10.21", "USER testuser"
Mon Mar 17 13:31:08 2008 [pid 31824] [testuser] FTP response: Client "10.4.10.21", "331 Please specify the password."
Mon Mar 17 13:31:08 2008 [pid 31824] [testuser] FTP command: Client "10.4.10.21", "PASS <password>"
Mon Mar 17 13:31:08 2008 [pid 31823] [testuser] OK LOGIN: Client "10.4.10.21"
After Disabling the following
Code:
local_root=/home/vsftpd/$USER
user_sub_token=$USER
virtual_use_local_privs=YES
This is the result of the ftp log
Code:
Mon Mar 17 13:34:17 2008 [pid 31835] CONNECT: Client "10.4.10.21"
Mon Mar 17 13:34:17 2008 [pid 31835] FTP response: Client "10.4.10.21", "220-Test Banner"
Mon Mar 17 13:34:17 2008 [pid 31835] FTP response: Client "10.4.10.21", "220 "
Mon Mar 17 13:34:17 2008 [pid 31835] FTP command: Client "10.4.10.21", "AUTH TLS"
Mon Mar 17 13:34:17 2008 [pid 31835] FTP response: Client "10.4.10.21", "234 Proceed with negotiation."
Mon Mar 17 13:34:17 2008 [pid 31835] FTP command: Client "10.4.10.21", "USER richinsc"
Mon Mar 17 13:34:17 2008 [pid 31835] [richinsc] FTP response: Client "10.4.10.21", "331 Please specify the password."
Mon Mar 17 13:34:17 2008 [pid 31835] [richinsc] FTP command: Client "10.4.10.21", "PASS <password>"
Mon Mar 17 13:34:17 2008 [pid 31834] [richinsc] FAIL LOGIN: Client "10.4.10.21"
Mon Mar 17 13:34:18 2008 [pid 31835] [richinsc] FTP response: Client "10.4.10.21", "530 Login incorrect."
I did notice however that after doing this, in my /var/log/auth.log I had message that said
Code:
vsftpd: pam_mysql - SELECT returned no result
Of course this is because I am still telling it to read from mysql database via /etc/pam.d/vsftpd
There is nothing in mysql logs. Logs are blank as if no activity has occurred. To give you and idea how i started this I followed directions from
http://www.howtoforge.com/vsftpd_mysql_debian_etch.
Apparently many people have followed this and gotten it to work but without encryption. So this is the setup I have followed. I might have to setup yet another test system and try walking through setup again and see if I can get it to work. It worked after following steps but broke after I went to put ssl over it.
Code:
SHOW GRANTS for 'vsftpd'@'localhost'
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP ON 'vsftpd'.* TO 'vsftpd'@'localhost'