Don MacArthur schrieb:
> 
> I've been running bacula for like this for about a year (recently
> upgraded from 1.38.7).  I've always started the services manually, but
> now I have other admins working with the system also, and want it to
> autostart at boot.  
> 
> Symptoms:
> When I try to start the director via "bacula-ctl-dir start" I get the
> following error -
> "Starting the Bacula Director daemon
> 07-May 16:18 bacula-dir: ERROR TERMINATION at parse_conf.c:791
> Config error: Cannot open config file "/etc/bacula/bacula-dir.conf":
> Permission denied"

As which user did you start bacula-dir? The director doesn't have to
run as root user, but then you have to set the permissions correctly.
 
> My most extreme effort to solve this was to grant bacula ownership and
> to set the the permissions to 777.  But, it still fails.  

Only on the config file or on the whole path to the file?
 
> More Symptoms:
> When I ran the director as root I started the SD and FD via bacula-
> ctl-... and the backups failed because of permissions to the tape
> drive.  

If you start the sd as user bacula, the user must be in the tape
group (debian), and you should check if the tape group has access to
the tape device (I think 660 on /dev/nst0, or so). I had to create an
udev rule to get this right.
 
> So, do I need to change the bacula account (a group membership?), mod
> the objects it wants, or am I going in the wrong direction completely?

It's the right direction. Check the ownership/permissions of the tape
device and as which user your daemons run. The fd must run as root if
it should be able to backup all data on a system. The other daemons
can run as user bacula.

http://www.bacula.org/dev-manual/Bacula_Security_Issues.html#SECTION004630000000000000000

Ralf

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to