|
From: Craig W. <cra...@az...> - 2011-10-20 12:40:39
|
On Thu, 2011-10-20 at 09:27 -0300, Matías Montenegro wrote: > Ok, I just can't solve this problem, > > My /var/log/auth.log during a log in attempt. > > Oct 20 12:28:07 debian proftpd: pam_unix(proftpd:session): session > opened for user prueba.expandirse by (uid=0) > Oct 20 12:28:07 debian proftpd: pam_unix(proftpd:session): session > closed for user prueba.expandirse > > My /var/log/proftpd/proftpd.log > > Oct 20 12:30:16 debian proftpd[7100] debian > (mail1.nemogroup.net[200.68.95.49]): FTP session opened. > Oct 20 12:30:16 debian proftpd[7100] debian > (mail1.nemogroup.net[200.68.95.49]): USER prueba.expandirse (Login > failed): Invalid shell: '/bin/false' > Oct 20 12:30:19 debian proftpd[7100] debian > (mail1.nemogroup.net[200.68.95.49]): FTP session closed. > > Any sugestions? > Thanks > > 2011/10/12 Jamie Cameron <jca...@we...> > On 12/Oct/2011 09:54 Matías Montenegro > <mat...@gm...> wrote .. > > Hello!! > > > > I am using virtualmin, and i can't get the FTP service > > working. When i create a new FTP user from "Create FTP and > > mail User" everything looks ok. But when i try to login, my > > FTP client says "login incorrect". > > How can i debug this problem? > > > Check the log file /var/log/secure or /var/log/auth.log to see > why the login is being rejected. Also, make sure you are > logging in with the full username, like joe.domain instead of > just joe. > > - Jamie ---- the message in your logs should make it obvious but a user whose shell is set to /bin/false can authenticate, but is immediately disconnected. Edit the user. Set the user's shell to /bin/sh or /bin/bash. Recognize that once the user has a valid shell (not /bin/false) it means that this user can also use connection methods other than ftp (i.e. ssh) too. Craig -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. |