Bacula-users

Re: [Bacula-users] backup catalog script in Ubuntu.

2008-07-27 13:55:20
Subject: Re: [Bacula-users] backup catalog script in Ubuntu.
From: "Timo Neuvonen" <timo-news AT tee-en DOT net>
To: bacula-users AT lists.sourceforge DOT net
Date: Sun, 27 Jul 2008 20:54:31 +0300
"James Bowes" <james.bowes AT shaw DOT ca> kirjoitti viestissä 
news:1217175302.7580.4.camel@localhost...
> Hi.
>
> Bacula is producing an error on the RunBefore script which essentially
> says that it is not parsing the dbname, host and password. Other jobs
> and clients run fine. here is the error:
>
> BeforeJob: run command "/usr/bin/awk
> -f /etc/bacula/scripts/make_catalog_backup_awk -v
> cat1=MyCatalog /etc/bacula/bacula-dir.conf"
> 27-Jul 09:10 archive-dir JobId 385: BeforeJob: mysqldump: Got error:
> 1045: Access denied for user 'bacula'@'localhost' (using password: NO)
> when trying to connect
>
> I don't understand why it fails though... Is there someplace in the
> make_catalog_backup_awk script I need to add the credentials?
>

My *guess* (I'm not using Ubuntu) is that these credentials (especially the 
password) are, or are expected to be, inside the file
/etc/bacula/scripts/make_catalog_backup_awk

I think this is an Ubuntu-spesific detail to improve security. If they were 
given as script arguments, the password would appear to anyone running ps 
command at proper time. Actually, this is how the default is for original 
Bacula.

If you don't know the password, have a look at catalog directive in your 
bacula-dir.conf file. It's propably mentioned there.


My second guess is that this is a modification made by the Ubuntu 
developers, not Bacula developers. So, if you won't get help in this list, 
you'd better to ask this in some Ubuntu forum.


Regards,
Timo 



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users