LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-05-2007, 05:18 AM   #1
nitro_punk85
LQ Newbie
 
Registered: Jul 2007
Posts: 6

Rep: Reputation: 0
Vsftpd login incorrect


I've seen a lot of posts about vsftpd not allowing local users to log in. I have tried all the stuff mentioned in the threads but to no avail. When I try to connect using a local user mvoltz I get incorrect login and I know that the password is correct. The users are listed in the /etc/passwd file and they have a shell assigned to them. They are not listed in /etc/vsftpd.user_list or /etc/vsftpd.ftpusers. Here is my config file located in /etc/vsftpd:

anonymous_enable=YES
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
pam_service_name=vsftpd
userlist_enable=YES
listen=YES
tcp_wrappers=YES
check_shell=NO

I do not believe I have pam or tcpwrappers installed. I am running centos 4.4 and the version of vsftpd is vsftpd-2.0.1-5.EL4.5 that I installed using yum. Any suggestions would be greatly appreciated.

Thank You
 
Old 08-05-2007, 06:25 AM   #2
DIGITAL39
Member
 
Registered: Sep 2003
Location: Virginia
Distribution: Slackware, CentOS, Red Hat
Posts: 48

Rep: Reputation: 15
If you have SELinux enabled it will cause problems with FTP out of the box.

I believe this might fix it, run 'setsebool -P ftp_home_dir 1' from the console then retry
 
Old 08-05-2007, 07:18 AM   #3
nitro_punk85
LQ Newbie
 
Registered: Jul 2007
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for the suggestions Digital, but I figured it out and it is very weird. Somehow the /bin/bash entry in /etc/shells had a : added to the end. So pam was comparing /bin/bash: from /etc/shells to /bin/bash listed in my passwd file and they weren't the same. I don't know how this happened, but that solved it.

Another thing, I was using the custom home directory of /home/ftp-docs that I saw in a tutorial somewhere, but apparently vsftpd doesn't like that so I switched to /var/ftp/pub. Otherwise I get the 500 OOOPS: can't change directory error.

I hope this information will help someone else out that is going through these issues.

Thanks.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
vsftpd 530 login incorrect pocon Slackware 11 07-31-2015 03:56 PM
linux login: incorrect login poweroff Linux - General 4 03-02-2004 03:03 PM
vsftpd and "incorrect login" herc Linux - Networking 11 02-03-2004 01:41 PM
vsftpd 1.1.2 on redhat 7.1 -- 530 incorrect login issue triggerfish Linux - Software 4 08-17-2003 07:58 PM
Login incorrect?? BrianG Linux - Networking 2 04-10-2001 08:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration