[PLUG] linux uses md5 for password encryption

Anant Narayanan anant at kix.in
Thu Jan 25 11:00:48 PST 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.

--
Anant



More information about the plug-mail mailing list