You would have to interface with the shadow libraries if you are using them, because the [tt]passwd[/tt] program only accepts input from a terminal/psuedoterminal and you have to be the superuser to change other users passwords, which would mean that you would have to run your webserver as the superuser, which is a bad idea. //Daniel