delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/05/31/20:34:20

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
From: Chris Faylor <cgf AT cygnus DOT com>
Date: Wed, 31 May 2000 20:32:55 -0400
To: Cygwin Mailing List <cygwin AT sourceware DOT cygnus DOT com>
Subject: Re: inetutils questions
Message-ID: <20000531203255.A31570@cygnus.com>
Reply-To: cygwin AT sourceware DOT cygnus DOT com
Mail-Followup-To: Cygwin Mailing List <cygwin AT sourceware DOT cygnus DOT com>
References: <000201bfcb60$0d614280$524b2080 AT berkeley DOT edu>
Mime-Version: 1.0
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 AT sourceware DOT cygnus DOT com

- Raw text -


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