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

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: <20000519215342.20497.qmail@web206.mail.yahoo.com>
Date: Fri, 19 May 2000 14:53:42 -0700 (PDT)
From: Ken Coleman <kcoleman AT yahoo DOT com>
Subject: Re: All-clear: ssh/sshd/inetutils work on W9X
To: cygwin <cygwin AT sourceware DOT cygnus DOT com>
MIME-Version: 1.0

No problem.  It's pretty cheesy, but it works for me. 
No login - just a password is required.  Put this as
/usr/bin/login and you're all set:

------------------------------

#!/bin/bash
echo -n "Password: "
stty -echo
read PASSWORD
stty echo
case $PASSWORD in
  PWGoesHere) exec bash;;
  *) echo "Invalid password";;
esac

------------------------------

Obviously you'll want to replace PWGoesHere with a
password of your own.  I have been intending to write
a more complex script that greps for the login name in
the /etc/passwd file and then accepts a password,
calls crypt.exe, and compares.  I just haven't gotten
around to it, though.  Maybe this weekend.

Hope that helps!

- Ken.
ken_coleman AT iname DOT com

> 
> Ken, would you mind to publish your version of the
> `login'
> script as another example?
> 
> Hope, that helps,
> Corinna



__________________________________________________
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.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