Question : Something keeps changing the default permissions of my settings.php file for a web site on Linux

I keep changing the file permissions for the file /var/www/html/websitename/settings.php to 775 and within 15 minutes or so it automatically changes back 555.

The owner of the file is "apache" and the group ownership is for our Linux Developers just like all of the other files which are not having this issue.

Obviously there must be some sort of process running that is automatically changing the file permissions (apache maybe?) but I haven't been able to figure out.

Any help would be greatly appreciated.

Answer : Something keeps changing the default permissions of my settings.php file for a web site on Linux

Investigating more, it does appear Drupal sets those file permissions.  I looked for an easy solution to the problem, but was only able to find some somewhat incomplete patches.  You may be able to find the chmod call inside Drupal and just comment it out.
Random Solutions  
 
programming4us programming4us