On Tue, 18 May 1999, Peter Janett wrote:

> Thanks for the reply.  I tried exactly what you suggested:
> system("/var/qmail/bin/qmail-newu");
> 
> But this fails, appearing to be a permission problem.  If I telnet in as the
> user that the script runs as, I get "Permission denied".  So, I changed
> permissions, and then get:
> "qmail-newu: fatal: unable to open users/cdb.tmp"
<snip>
>
> Since this is for web based email, I need to do a "qmail=newu" each time
> someone signs up (each time the Perl script is run.)  For this reason,
> setting up a shell script to run at certain intervals doesn't seem to be the
> correct solution.  I'd like to see how you are running the command with your
> Perl script, or hear other suggestions

 I get the feeling that you need to run the perl script as root (or
whomever else has permissions to those files/directories)  Everything
you've mentioned seems to be permissions problems.  You might be able to
get away with one of the qmail* uids, but you might end up having to run
the script as root.

 That being said, I've never mucked around with scripting it.

.Shawn

Reply via email to