On Wed, 4 Apr 2001, Diogo Saad wrote:

> What kind of encryption is used in the /etc/shadow file ??

MD5

> Is there a function in php that encrypts a string the same way the shadow
> files does?

Probably, though you might be better off exec'ing passwd.

> What I wanna make is a php page that changes my PASSWORD via web ....

Be very careful. Your webserver will need to run as root to be able to
modify /etc/shadow. You might be better off with suexec and a setuid root
cgi. Be very careful.

thornton



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to