Linode.com Forum Forum Index Linode.com Forum
Linode Community Forums
 


FTP - Not accepting good passwords

Click here to go to the original topic

 
       Linode.com Forum Forum Index -> Linux, Apache, Mysql and PHP (LAMP) Forum
Author Message
dishkuvek



Joined: 23 Dec 2004
Posts: 8
Location: Richmond, VA

Posted: Sun Jan 23, 2005 9:45 pm    Post subject: FTP - Not accepting good passwords  

I've never seen this before. I setup my ftp daemon, I've tried a few at this point, all of them result in the same. When I try to log in as a local user, using the correct password, it gives me a 530 password is incorrect. This happens everytime, with every user.

Any ideas?
Back to top  
dishkuvek



Joined: 23 Dec 2004
Posts: 8
Location: Richmond, VA

Posted: Sun Jan 23, 2005 9:55 pm    Post subject:  

Ok, seconds later I've figured it out. :oops:

When adding users with "useradd" I was not specifying login shell, so in /etc/passwd the shell area was blank. Because of this, the ftp daemon was not letting me log in.

I am going to fire my bbgun now.
Back to top  
Ciaran



Joined: 13 Feb 2004
Posts: 140
Location: England, UK

Posted: Mon Jan 24, 2005 10:02 am    Post subject:  

Good going for working it out. :)

If that hadn't worked, I would have suggested looking in /etc/ftpusers to see if it was listed there. Counterintuitively, anyone listed in /etc/ftpusers will not be able to use FTP or SSH, etc. I'm not quite sure why the file's called that myself, but, yeah.

By the way, the other thing to watch out for is that if you specify a login shell that's not listed in /etc/shells, most FTP servers will do the same as you described and not let the user log in - so just putting /bin/false as a login shell won't help unless it's also listed in /etc/shells.
Back to top  
 
       Linode.com Forum Forum Index -> Linux, Apache, Mysql and PHP (LAMP) Forum
Page 1 of 1