delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/05/22/17:37:25

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <3929A724.51A95FFC@dothill.com>
Date: Mon, 22 May 2000 17:31:16 -0400
From: Jason Tishler <Jason DOT Tishler AT dothill DOT com>
Organization: Dot Hill Systems Corporation
X-Mailer: Mozilla 4.72 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
To: tomcw AT localnet DOT com
CC: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: inetutils-1.3.2-2 on Cygwin 1.1.1
References: <3928B8F7 DOT 19581 DOT 1AFD69D AT localhost>

Tom Weichmann wrote:
> > 3) ftp - does not work. After the prompt for the username, it
> > fails  with a "User xxxx access denied", even before the prompt
> > for the  password appears.
> 
> I have noticed this behavior as well.  I have noted that if you
> change all of the user account shells in the /etc/passwd file to
> /bin/sh instead of /bin/bash, then the ftpd works correctly.  I
> don't know why, but this is sort of a workaround.

From the ftpd man page we have:
  
    Ftpd authenticates users according to three rules.
        ...
        3. The user must have a standard shell returned by
           getusershell(3).

From the getusershell man page (on Solaris) we have:

    getusershell() returns a pointer to a legal  user  shell  as
    defined  by  the system manager in the file /etc/shells.  If
    /etc/shells does not exist, a list of the ten  locations  of
    the  standard  system  shells:   /usr/bin/sh,  /usr/bin/csh,
    /usr/bin/ksh,  /usr/bin/jsh,  /bin/sh,  /bin/csh,  /bin/ksh,
    /bin/jsh, /sbin/sh, /sbin/jsh, are used instead of the file.

Hence, another way to fix the problem is to create an /etc/shells file
contains:

    /bin/bash
    /bin/sh
    /usr/bin/bash
    /usr/bin/sh

Jason

-- 
Jason Tishler
Director, Software Engineering       Phone: +1 (732) 264-8770 x235
Dot Hill Systems Corporation         Fax:   +1 (732) 264-8798
82 Bethany Road, Suite 7             Email: Jason DOT Tishler AT dothill DOT com
Hazlet, NJ 07730 USA                 WWW:   http://www.dothill.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019