VSFTPD, cannot login | Unix Linux Forums | Linux

  Go Back    


Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

VSFTPD, cannot login

Linux


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 01-11-2006
panggou panggou is offline
Registered User
 
Join Date: Jan 2006
Last Activity: 27 February 2006, 2:11 AM EST
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
VSFTPD, cannot login

I setup vsftpd.conf as follows and tried to login using root and normal user 'winston' but failed authentication. Any idea what's wrong?

========================
CONTENTS OF /etc/vsftpd/vsftpd.conf
anonymous_enable=NO
local_enable=YES
dirmessage_enable=YES
connect_from_port_20=YES
xferlog_enable=YES
xferlog_file=/var/log/vsftpd/vsftpd.log
nopriv_user=nobody
chroot_list_enable=YES
chroot_local_user=YES
background=YES
listen=YES


RESTARTED VSFTPD
[root@panggou vsftpd]# service vsftpd restart
Shutting down vsftpd: [ OK ]
Starting vsftpd for vsftpd: [ OK ]
[root@panggou vsftpd]# service vsftpd status
vsftpd (pid 3432) is running...


STILL CAN'T LOGIN WITH ROOT OR NORMAL USER WINSTON
[root@panggou vsftpd]# ftp panggou
Connected to panggou.homeunix.org.
220 (vsFTPd 2.0.3)
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (panggou:root): root
331 Please specify the password.
Password:
530 Login incorrect.
Login failed.
ftp> by
221 Goodbye.
[root@panggou vsftpd]# ftp panggou
Connected to panggou.homeunix.org.
220 (vsFTPd 2.0.3)
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (panggou:root): winston
331 Please specify the password.
Password:
530 Login incorrect.
Login failed.
ftp>
========================

Any ideas?
Sponsored Links
    #2  
Old 01-11-2006
Karma's Avatar
Karma Karma is offline
Registered User
 
Join Date: Jun 2003
Last Activity: 9 May 2008, 12:16 AM EDT
Location: Canada
Posts: 142
Thanks: 0
Thanked 0 Times in 0 Posts
IIRC, vsftpd does not allow one to log in as root period; this is a non-configurable feature implimented to force those misguided enough to try sending their root password unencrypted into adhering to universally accepted minimal security practices. As for the normal user account, try commenting out these lines and restarting the daemon:

chroot_list_enable=YES
chroot_local_user=YES

If that solves your problem, the issue is likely with your chroot_list file (the default location, as you have not specified another, is /etc/vsftpd/chroot_list).
Sponsored Links
    #3  
Old 01-11-2006
panggou panggou is offline
Registered User
 
Join Date: Jan 2006
Last Activity: 27 February 2006, 2:11 AM EST
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
I managed to configure using root login to vsftp by using the "userlist-enable=YES" and "userlist_deny=NO" options.

The reason for me not being able to log in via ftp with either root or winston is due to the missing option for pam_service_name in vsftpd.conf

"pam_service_name=vsftpd"

Adding this to vsftpd.conf solved my problem.

Note: Understand the risk of allowing "root" to access its home folder via vsftp, will remove root from user_list.

Thanks for the advise and suggestions.
    #4  
Old 01-12-2006
Karma's Avatar
Karma Karma is offline
Registered User
 
Join Date: Jun 2003
Last Activity: 9 May 2008, 12:16 AM EDT
Location: Canada
Posts: 142
Thanks: 0
Thanked 0 Times in 0 Posts
*jawdrops* really? i could have sworn it was disabled by default but it's been a long while since I had to re-configure my server. I've somehow managed to keep myself from logging in as root on my server which has basically the same configuration as you're using, not like I'm complaining because it's in good practice but I wonder what I did... Glad to hear you got it working; PAM hadn't even crossed my mind >.<
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
vsftpd with SSL andriusman UNIX for Dummies Questions & Answers 1 01-26-2011 06:04 PM
VSFTPD mojoman UNIX for Dummies Questions & Answers 1 11-10-2009 11:12 AM
Problem using VSFTPD mojoman UNIX for Dummies Questions & Answers 2 11-06-2009 11:16 PM
Redhat Ent 3... vsftpd... B14speedfreak Red Hat 1 06-12-2006 10:25 AM
Service + vsftpd HSN UNIX for Dummies Questions & Answers 1 05-05-2005 06:38 AM



All times are GMT -4. The time now is 03:46 AM.