[PLUG] linux uses md5 for password encryption

Anant Narayanan anant at kix.in
Fri Jan 26 00:30:48 IST 2007

> then i get an encryted password in a similar format but when i try n
> substitute this value for a particular user in /etc/shadow file and
> then try loggin in as the concerned user my login fails.
> Please do let me know if u have any clue as to why this is happening.
> am using rhel4

Modifying passwords isn't as easy as editing the shadow file. I
recommend you use the shell command `passwd' instead (it can be invoked
by your PHP script). You can provide secure access to that command to
your web server / PHP CLI using sudo.


More information about the Plug-mail mailing list