Mail Archives: cygwin/2000/05/19/17:56:37
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 -