>I have created a user registration script to create a new email account.
>The script is written in perl and call vadduser, I have added a sudo entry
>to allow the webserver user to execute vadduser as root. The script has
>worked well for sometime but now receives the following error. This error
>is not raised when running vadduser from the command line.
>Error: Unable to chdir to vpopmail/domains directory 64256
>Thanks in advance
Here is how I resolved this.
Run visudo as root and add the following line.
apache ALL = NOPASSWD: /home/vpopmail/bin/vadduser
Now execute vadduser using the sudo command.
print system('sudo /home/vpopmail/bin/vadduser [EMAIL PROTECTED]