[SunHELP] Password validation

Edward Chase echase at studentweb.providence.edu
Mon Jan 13 20:48:20 CST 2003


Not 100% part of standard unix...  However I've done something similar 
using Perl and the libnet module (I think).  Perl did come with Solaris 8...

I wrote a password change program, but part of it needs to determine if I 
had the true user by validation of their current password.  This was done 
by having the script open an FTP session to the machine itself.  I you got 
a connection, you must have the proper username / password combination.  My 
program is a web based interface, the users aren't allowed shell 
access.  The machine is a POP mail server.



At 10:21 AM 1/13/2003 -0500, Sheldon T. Hall wrote:
>Is there a simple way to check someone's password from a shell script?  I.e.
>have them enter their system password and be sure that's actually their
>password on a pass/fail basis?  I expect I could use `expect` but I'd prefer
>something that would be a standard part of UNIX.
>
>Thanks.
>
>-Shel
>--
>Sheldon T. Hall
>shel at cmhc.com
>206-780-7971 (CMHC)
>206-842-2858 (Home)
>_______________________________________________
>SunHELP maillist  -  SunHELP at sunhelp.org
>http://www.sunhelp.org/mailman/listinfo/sunhelp


More information about the SunHELP mailing list