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 18.104.22.168] (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.