From e005e25e1af5fc951d4cbcffab73f0637bca2058 Mon Sep 17 00:00:00 2001
From: Micah Anderson <micah@riseup.net>
Date: Fri, 4 Nov 2005 23:35:29 +0000
Subject: [PATCH] Made ninjahelper create files in /etc/backup.d with mode 600
 instead of 000

---
 ChangeLog             | 1 +
 handlers/ldap.helper  | 2 +-
 handlers/mysql.helper | 2 +-
 handlers/pgsql.helper | 2 +-
 handlers/rdiff.helper | 2 +-
 handlers/sys.helper   | 2 +-
 6 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 78c2a1c..7252a35 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,7 @@ version 0.9.1 -- unreleased
 	rdiff handler does not require 'label' (for real this time?)
 	added makecd ninjahelper
 		(thanks to Stefani stefani@riseup.net)
+	made ninjahelper create files with mode 600 rather than 000
 
 version 0.9 -- October 19 2005
 	*** IMPORTANT CHANGE, UPGRADE AT ONCE ***
diff --git a/handlers/ldap.helper b/handlers/ldap.helper
index 7670817..838c731 100644
--- a/handlers/ldap.helper
+++ b/handlers/ldap.helper
@@ -44,7 +44,7 @@ $passwordfile
 # conf = /etc/ldap/slapd.conf
 # databases = all
 EOF
-     chmod 000 $next_filename
+     chmod 600 $next_filename
      return
 done
 }
diff --git a/handlers/mysql.helper b/handlers/mysql.helper
index 554464b..b7efe99 100644
--- a/handlers/mysql.helper
+++ b/handlers/mysql.helper
@@ -64,7 +64,7 @@ $compress
 # backupdir   = /var/backups/mysql
 # dbhost      = localhost
 EOF
-   chmod 000 $next_filename
+   chmod 600 $next_filename
 }
 
 mysql_wizard() {
diff --git a/handlers/pgsql.helper b/handlers/pgsql.helper
index 8f9a8d4..8baa39f 100644
--- a/handlers/pgsql.helper
+++ b/handlers/pgsql.helper
@@ -84,6 +84,6 @@ $pgsql_databases
 $pgsql_compress
 
 EOF
-   chmod 000 $next_filename
+   chmod 600 $next_filename
 
 }
diff --git a/handlers/rdiff.helper b/handlers/rdiff.helper
index 066d53a..b68a70e 100644
--- a/handlers/rdiff.helper
+++ b/handlers/rdiff.helper
@@ -141,7 +141,7 @@ directory = $rdiff_directory
 host = $rdiff_host
 user = $rdiff_user
 EOF
-   chmod 000 $next_filename
+   chmod 600 $next_filename
 }
 
 rdiff_main_menu() {
diff --git a/handlers/sys.helper b/handlers/sys.helper
index 060e96c..a984c05 100644
--- a/handlers/sys.helper
+++ b/handlers/sys.helper
@@ -27,6 +27,6 @@ $hardware
 # partitionsfile = /var/backups/partitions.__star__.txt
 # hardwarefile = /var/backups/hardware.txt
 EOF
-   chmod 000 $next_filename
+   chmod 600 $next_filename
 }
 
-- 
GitLab