]> git.sur5r.net Git - bacula/bacula/commitdiff
kes Add a security warning to src/cats/make_catalog_backup.in indicating
authorKern Sibbald <kern@sibbald.com>
Mon, 22 Oct 2007 21:47:58 +0000 (21:47 +0000)
committerKern Sibbald <kern@sibbald.com>
Mon, 22 Oct 2007 21:47:58 +0000 (21:47 +0000)
     that passing the password via the command line (arg 3) is insecure.
     This responds to bug #990 (it doesn't fix it).

git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/branches/Branch-2.2@5779 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/cats/make_catalog_backup.in
bacula/technotes-2.1

index 18c28216083324d340729d3ffa6e6cd79170c1d4..98b1ae33876361dbb42a35c67379ee4fffef5d05 100755 (executable)
@@ -8,7 +8,11 @@
 #  $2 is the user name with which to access the database
 #     (default = bacula).
 #  $3 is the password with which to access the database or "" if no password
-#     (default "")
+#     (default ""). WARNING!!! Passing the password via the command line is 
+#     insecure and should not be used since any user can display the command 
+#     line arguments and the environment using ps.  Please consult your
+#     MySQL or PostgreSQL manual for secure methods of specifying the
+#     password.
 #  $4 is the host on which the database is located
 #     (default "")
 #
@@ -31,7 +35,7 @@ else
     else
       MYSQLHOST=""
     fi
-    ${BINDIR}/mysqldump -u $2$MYSQLPASSWORD$MYSQLHOST -f --opt $1 >$1.sql
+    ${BINDIR}/mysqldump -u ${2}${MYSQLPASSWORD}${MYSQLHOST} -f --opt $1 >$1.sql
   else                       
     if test xpostgresql = x@DB_TYPE@ ; then
       if test $# -gt 2; then
index bde12ccc321e9c9d16c0a4c7d2c56832d42fcc49..6f1ef247f5a161e4790d54b85f68867c81cafa6a 100644 (file)
@@ -2,6 +2,9 @@
 
 General:
 22Oct07
+kes  Add a security warning to src/cats/make_catalog_backup.in indicating
+     that passing the password via the command line (arg 3) is insecure.
+     This responds to bug #990 (it doesn't fix it).
 kes  Apply 2.2.5-postgresql-errors.patch
 kes  Remove unneeded File table index on JobId, which is already
      present as the first index of another multi-index.