On Wed, 14 Feb 2001, Binand Raj S. wrote:

> > Never got to read the Pam docs, but you can do what you ask for with a bit
> > of c. Use getpw_nam() to locate the passwd string as stored in the
> > /etc/passwd. Take the 1st 2 chars and save that as a string. Lets call
> > this salt[2].

> <rest snipped>

> That is all old news. Linux distributions use shadowed passwords - and
> MD5 hashing, in the case of RedHat at least. This technique will not
> work there.

yeah I know that, just refreshing some old memories acquired through a
stupid string processing application i wrote. 

But seriously....PAM is the way to go.

-- sreangsu 


----------------------------------------------
LIH is all for free speech.  But it was created
for a purpose.  Violations of the rules of
this list will result in stern action.

Reply via email to