|
From: Matías M. <mat...@gm...> - 2011-10-12 16:55:03
|
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? Thank you for any advice -- Matias |
|
From: Matías M. <mat...@gm...> - 2011-10-20 12:28:05
|
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 > > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense. > http://p.sf.net/sfu/splunk-d2d-oct > - > Forwarded by the Webmin mailing list at > web...@li... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-list > > -- Matias |
|
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. |
|
From: Csere M. <cs...@gm...> - 2011-10-20 12:57:47
|
You could try adding /bin/false to /etc/shells to make it a valid login shell. This should solve the ftp problem, and still dissallow shell access. > ---- > 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. > |
|
From: Matías M. <mat...@gm...> - 2011-10-20 16:54:23
|
I think i solved, Thank you all, you gave me a clue. My solution was: http://help.directadmin.com/item.php?id=375 To uncomment RequireValidShell and turn it to off. It' s working for the users I'm using to test. Thank you very much 2011/10/20 Csere Mátyás <cs...@gm...> > You could try adding /bin/false to /etc/shells to make it a valid login > shell. > This should solve the ftp problem, and still dissallow shell access. > > > ---- > > 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. > > > > > ------------------------------------------------------------------------------ > The demand for IT networking professionals continues to grow, and the > demand for specialized networking skills is growing even more rapidly. > Take a complimentary Learning@Ciosco Self-Assessment and learn > about Cisco certifications, training, and career opportunities. > http://p.sf.net/sfu/cisco-dev2dev > - > Forwarded by the Webmin mailing list at > web...@li... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-list > -- Matias |