More restrictive permissions
« on: July 03, 2012, 11:34:17 PM »
Dear Community,

For quite some time I've restricted my files permissions to 644 and my folders permission to 755 running under suExec and implementing php5.cgi.

Unfortunately your script doesn't work properly unless I make a number of files at least 646 if not 666.

Is there anything you could do to your script so that the files it generated both under:
/generator/data/

as well as under:
/

Would be owned by the "userhere users" (default user on the server), than the "nobody www" one it currently uses?

That way I could keep all the files, including the ones used/generated by your script set to 644.

Many thanks,
Phil
Re: More restrictive permissions
« Reply #1 on: July 04, 2012, 05:16:08 PM »
Hello,

you would nee to change the file owner for data/ folder and sitemap files in domain root to the same user id that is running the generator process (either web process or the user running the cron task) to keep 644.