Subject: FTP Login refused (was: Re[2]: Re[2]: Re: Please help...)

From: Mad Vinnie <[email-masked]>
Date: Thu, 27 May 1999 16:02:59 +0200

Hi,

The problem with Login dissapears when I have a normal shell.

When I check the log it says:

May 27 15:52:16 homepages ftpd[728]: FTP LOGIN REFUSED (bad shell or
username in /etc/ftpusers) FROM localhost [127.0.0.1], mort

I think this mean that ftpd check for a working shell, in this case the
sollution from Ian Guthrie about the .profile (just exit) works fine
except that when I telnet and I'm 'fast enough' with the ^C the .profile
is not executed. Then I thought, well, lets just put in the passwd file
a working shell but with exit (/bin/bash exit) so it will execute a
working shell and still exit without the ability to bypass the
.profile's exit
Is this a Suse problem or is this a ftpd problem? I'm still not sure
about that...

Greetz Vincent...

:-))

---

From: Gregory A Lundberg <[email-masked]>
Date: Thu, 27 May 1999 10:18:40 -0400 (EDT)

On Thu, 27 May 1999, Mad Vinnie wrote:

> I think this mean that ftpd check for a working shell, in this case
> the sollution from Ian Guthrie about the .profile (just exit) works
> fine except that when I telnet and I'm 'fast enough' with the ^C the
> .profile is not executed. Then I thought, well, lets just put in the
> passwd file a working shell but with exit (/bin/bash exit) so it will
> execute a working shell and still exit without the ability to bypass
> the .profile's exit Is this a Suse problem or is this a ftpd problem?
> I'm still not sure about that...

1) The shell does not even need to exist.  Just be listed in /etc/shells.
   At least as far as the daemon is concerned.  The daemon users the
   OS-provided getusershell() function.  On Linux, this simply reads
   /etc/shells and does NOT check for the existance or usability of the
   shell.

2) The problem is NOT with SuSe or the dameon code.

3) The problem IS almost certainly a typographical error or some other
   configuration-file problem.  Most likely you've omitted or mis-typed
   the line in /etc/shells so that is does not exactly match the name of
   the shell you've created.

The location of the latest version of wu-ftpd can be found in the 
directory
 
      ftp://ftp.wu-ftpd.org/pub/wu-ftpd/
 
wu-ftpd Resource Center:  http://www.landfield.com/wu-ftpd/
wu-ftpd FAQ:              http://www.cetis.hvu.nl/~koos/wu-ftpd-faq.html
wu-ftpd list archive:     http://www.landfield.com/wu-ftpd/mail-archive/

-- 

Gregory A Lundberg              Senior Partner, VRnet Company
1441 Elmdale Drive              [email-masked]
Kettering, OH 45409-1615 USA    1-800-809-2195

---

From: Rainer Schoepf <[email-masked]>
Date: Thu, 27 May 1999 16:43:58 +0200 (MEST)

> username in /etc/ftpusers) FROM localhost [127.0.0.1], mort

Try adding /bin/true to /etc/shells and using it as your shell.

Rainer