RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 651780 - bacula / wrong argument in /usr/libexec/bacula/make_catalog_backup.pl
Summary: bacula / wrong argument in /usr/libexec/bacula/make_catalog_backup.pl
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: bacula
Version: 6.0
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: rc
: ---
Assignee: Jan Görig
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
: 745017 911574 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-11-10 09:36 UTC by Leon Fauster
Modified: 2013-02-18 09:46 UTC (History)
5 users (show)

Fixed In Version: bacula-5.0.0-8.el6
Doc Type: Bug Fix
Doc Text:
Prior to this update, the make_catalog_backup.pl script created a MySQL configuration file, which had the file permissions set to world-writeable and world-readable so that MySQL did not accept the configuration file with these permissions and the MySQL database login configuration was not used. As a result, it was not possible to complete a MySQL database dump. With this update, the configuration file is now created with correct permissions, and the MySQL database login configuration is used by MySQL so that it is now possible to complete the MySQL database dump as expected.
Clone Of:
Environment:
Last Closed: 2011-08-31 09:16:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:1232 0 normal SHIPPED_LIVE bacula bug fix update 2011-08-31 09:16:01 UTC

Description Leon Fauster 2010-11-10 09:36:21 UTC
==========================================
Description of problem:

the release 5.0.0 has a bug in /usr/libexec/bacula/make_catalog_backup.pl
the umask argument in line 92 in wrong - this is correct in the upstream version (5.0.3)


==========================================
How reproducible:

executing make_catalog_backup.pl will generate .my.cnf in /var/spool/bacula
with wrong permissions which leads to fail in trying to reading it.

==========================================
Version-Release number of selected component (if applicable):

5.0.0-7.el6

Comment 4 Suzanne Logcher 2011-02-15 21:44:54 UTC
This issue was proposed for RHEL 6.1 FasTrack but did not get resolved in time.
It has been moved to RHEL 6.2 FasTrack.

Comment 7 Jan Görig 2011-06-08 16:23:21 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Cause
- make_catalog_backup.pl creates MySQL configuration file world-writeable and readable
- MySQL doesn't accept config with these permissions and database login configuration isn't used
Consequence
- database dump isn't completed
Fix
- file is created with correct permissions
Result
- login configuration is used by MySQL and dump is completed

Comment 9 Petr Kovar 2011-06-15 16:05:45 UTC
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1,9 +1 @@
-Cause
+Prior to this update, the make_catalog_backup.pl script created a MySQL configuration file, which had the file permissions set to world-writeable and world-readable so that MySQL did not accept the configuration file with these permissions and the MySQL database login configuration was not used. As a result, it was not possible to complete a MySQL database dump. With this update, the configuration file is now created with correct permissions, and the MySQL database login configuration is used by MySQL so that it is now possible to complete the MySQL database dump as expected.-- make_catalog_backup.pl creates MySQL configuration file world-writeable and readable
-- MySQL doesn't accept config with these permissions and database login configuration isn't used
-Consequence
-- database dump isn't completed
-Fix
-- file is created with correct permissions
-Result
-- login configuration is used by MySQL and dump is completed

Comment 12 errata-xmlrpc 2011-08-31 09:16:49 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-1232.html

Comment 13 Lukáš Nykrýn 2011-10-13 08:07:52 UTC
*** Bug 745017 has been marked as a duplicate of this bug. ***

Comment 14 Petr Hracek 2013-02-18 09:46:28 UTC
*** Bug 911574 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.