diff -Nur smeserver-git-1.1.0.old/root/etc/e-smith/events/actions/git-repository-create-modify smeserver-git-1.1.0/root/etc/e-smith/events/actions/git-repository-create-modify --- smeserver-git-1.1.0.old/root/etc/e-smith/events/actions/git-repository-create-modify 2014-05-27 01:47:30.000000000 -0400 +++ smeserver-git-1.1.0/root/etc/e-smith/events/actions/git-repository-create-modify 2016-06-22 13:27:00.316000000 -0400 @@ -162,9 +162,9 @@ chmod 02770, "."; # Ensure that the git repository database is readable by the web server. -system("/bin/chmod", "644", "/home/e-smith/db/git") == 0 +system("/bin/chmod", "640", "/home/e-smith/db/git") == 0 or die "Could not change permissions on /home/e-smith/db/git"; -# Ensure that the networks database is readable by the web server. -system("/bin/chmod", "644", "/home/e-smith/db/networks") == 0 - or die "Could not change permissions on /home/e-smith/db/networks"; +system("/bin/chown", "root:www", "/home/e-smith/db/git") == 0 + or die "Could not change ownership on /home/e-smith/db/git"; + diff -Nur smeserver-git-1.1.0.old/root/etc/e-smith/events/actions/git-repository-delete smeserver-git-1.1.0/root/etc/e-smith/events/actions/git-repository-delete --- smeserver-git-1.1.0.old/root/etc/e-smith/events/actions/git-repository-delete 2013-04-21 12:28:06.000000000 -0400 +++ smeserver-git-1.1.0/root/etc/e-smith/events/actions/git-repository-delete 2016-06-22 13:25:42.667000000 -0400 @@ -84,10 +84,9 @@ #------------------------------------------------------------ # Ensure that the git repository database is readable by the web server. -system("/bin/chmod", "644", "/home/e-smith/db/git") == 0 +system("/bin/chmod", "640", "/home/e-smith/db/git") == 0 or die "Could not change permissions on /home/e-smith/db/git"; -# Ensure that the networks database is readable by the web server. -system("/bin/chmod", "644", "/home/e-smith/db/networks") == 0 - or die "Could not change permissions on /home/e-smith/db/networks"; +system("/bin/chown", "root:www", "/home/e-smith/db/git") == 0 + or die "Could not change ownership on /home/e-smith/db/git";