in reply to Re^3: Can't create file
in thread Can't create file

Hey Insaniac, I know it will work if I change the ownership of the directory /var/named to root.nobody but I don't want to change the ownership. Is there any way I can run the script itself as root.named or as a root user instead of 'nobody'? Thanks for the help till now.

Replies are listed 'Best First'.
Re^5: Can't create file
by Anonymous Monk on Oct 05, 2009 at 16:31 UTC
    Back away from the keyboard and unplug that computer from the internet, you're a menace!!
Re^5: Can't create file
by ikegami (Patriarch) on Oct 05, 2009 at 16:37 UTC
    Yes. Refer to web server's documentation.
Re^5: Can't create file
by insaniac (Friar) on Oct 05, 2009 at 16:33 UTC
    have you tried suEXEC already? http://httpd.apache.org/docs/1.3/suexec.html

    although, for this particular situation, i would not advise it. I would store the files you want to create in a temporary directory (e.g.: /tmp/new_domains) and then have cronjob check that directory and perform the necessary actions ( checking the file for correct syntax, existing files, ...)

    to ask a question is a moment of shame
    to remain ignorant is a lifelong shame