Using chpasswd in php scritp
Posted on 2004-08-26
I wrote a php script that runs chpasswd command on my linux server. The problem is when i run the script via http, the error_log shows this:
[Thu Aug 26 08:42:35 2004] [error] [client 126.96.36.199] (13)Permission denied: file permissions deny server access: /home/web/chpass.html
I know i have to use sudo to let this work, but i don't know how to do this.
Can somebody explain me how?..
I'm using two files: chpass.html that contains a form with user and password, and chpass.php that executes chpasswd command.