Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sourceware.cygnus.com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin@sourceware.cygnus.com>
List-Help: <mailto:cygwin-help@sourceware.cygnus.com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner@sourceware.cygnus.com
Delivered-To: mailing list cygwin@sourceware.cygnus.com
From: Chris Faylor <cgf@cygnus.com>
Date: Wed, 31 May 2000 20:32:55 -0400
To: Cygwin Mailing List <cygwin@sourceware.cygnus.com>
Subject: Re: inetutils questions
Message-ID: <20000531203255.A31570@cygnus.com>
Reply-To: cygwin@sourceware.cygnus.com
Mail-Followup-To: Cygwin Mailing List <cygwin@sourceware.cygnus.com>
References: <000201bfcb60$0d614280$524b2080@berkeley.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2i
In-Reply-To: <000201bfcb60$0d614280$524b2080@berkeley.edu>; from stanton@Haas.Berkeley.EDU on Wed, May 31, 2000 at 05:26:39PM -0700

On Wed, May 31, 2000 at 05:26:39PM -0700, Richard Stanton wrote:
>I just installed the latest inetutils, and they seem mainly to be running.
>Just a couple of questions:
>
>1) telnetd: This works using sh as the shell. However, I'd like to use 4nt
>as the shell, rather than /bin/sh. I edited passwd, and replaced "/bin/sh"
>with "/cygdrive/c/4nt/4nt.exe". Now, however, when I telnet to my machine,
>I'm immediately logged off, as in:
>
>You are successfully logged in to this ftp server!!!
>Connection closed by foreign host.
>
>How can I get 4nt.exe to be used as the login shell?

I don't think it can be done.  I believe that 4nt.exe will be very confused
by Cygwin's handling of ptys -- which are really just Windows pipes.

>Followon - after manually editing passwd again using EMACS, putting /bin/sh
>back again, it still doesn't work until I run mkpasswd again. What's going
>on here?

Just as a wild guess, and given the fact that this seems to be the answer
to every other problem reported on this mailing list -- EMACS is probably
adding a ^M (or \r) before the end of the lines in /etc/passwd.  mkpasswd
is probably not doing this.

cgf

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

