complicated issue. There is lots of authentication sub system that may be in use(PAM, LDAP, Kerberos, /etc/shadow etc.). Each has a different way. If it is linux, I think you should shoot for PAM, for other unix system I have no idea. /etc/passwd is a one way hash, you need the user submit the plain text equivalent(better use SSL) then compute and compare.
However, if this is web page, I believe it would be better to use the apache2 module which has relatively good integration with the authentication system. [EMAIL PROTECTED] wrote: > hi > i created a login page that authenticate the user and his/her password > to the unix ssystem. what modules can i used to compare the unix > password with what the user typed in the cgi form? the password is > encrypted (shadowed) so i need to > decrypt it first before comparing to what the user typed. or this > cannot be done at all? > thanks -- http://mail.python.org/mailman/listinfo/python-list