Sorry if this has been answered before. I can't find anything on it.
I have a script that creates files which are then inaccessible to everyone else because the owner is "www", who technically doesn't exist.
I tried exec("su anna"); exec("password");
which is what I would do at the command prompt, but it returned absolutely nothing, and the user was still www.
I also tried created the file and then running the chown function on it so that the proper user owned it, but no go. And then of course, I can't edit it from the web.
Aargh! Please help, someone.
Thanks for reading.
Anna