in reply to How do I encrypt an Unix password?

Note that it would be very insecure to do this! You would have to give the script enough priviliges to change the passwd file. Either you would have to suid that script or you would have to let the script be run as a user that has that privilege (root)

This is how to do it, but don't!

--HolyGrail