CHmod and chgrp changing
« on: July 13, 2018, 02:36:58 PM »
Sitemap Generator seems to have run successfully this morning, writing 15 xml files.

HOWEVER, it changed the ownership of those cml files to "root" and the permissions to "0644."
So nobody can read the sitemap except root.
:-(
Sitemap Generator is ownerd by user mswoods and group mswoods.

Now when I log in to the Sitemap Generator dashboard, I'm greeted by an error: "Sitemap file is not writable: /home/mswoods/public_html/sitemap.xml."

Any ideas what would cause these issues?
Re: CHmod and chgrp changing
« Reply #1 on: July 14, 2018, 04:55:25 AM »
Hello,

0644 means that file can read any user, but not write to it.
Also, you need to run it using the regular user account, not when logged in as root.
Re: CHmod and chgrp changing
« Reply #2 on: July 14, 2018, 04:30:24 PM »
I know what 644 means.
I'm not logged in as root.
Re: CHmod and chgrp changing
« Reply #3 on: July 15, 2018, 10:32:13 AM »
The script running as a user wouldn't be able to change ownership to "root".
Re: CHmod and chgrp changing
« Reply #4 on: July 15, 2018, 02:05:46 PM »
I wouldn't think so either. But the cron is set using cpanel for user mswoods and generator is set to chown -R mswoods.

Maybe out sysadmin can shine some light on this.
Re: CHmod and chgrp changing
« Reply #5 on: July 17, 2018, 05:44:07 PM »
As it turns out, an Old copy of Google Sitemap Generator, which was supposed to have been completely disabled and removed from the server, was still running and interfering.
:-(