From the manual: > You need to ensure that your Storage daemon (if not running as root) has > access permissions to both the tape drive and the control device.
My bacula user is also a member of the disk group. The disk group has rw access to bacula-sd.conf. It also completes the full group permissions required in bacula. While I've tested using disk backups, I am exclusively using tape media for my backups. Also, my SD runs as the bacula user and while you did not indicate what user you were when calling the init.d/ script, I will presume it was the root user. Systemd does not use the init.d/ scripts unless the systemd script has been modified to do so (bad idea). For future reference, if you are going to ask for help on permissions, provide your current permission settings on the relevant files. Patti Clark Sr. Linux System Administrator Oak Ridge National Laboratory On 10/9/18, 8:30 AM, "krashoverr...@free.fr" <krashoverr...@free.fr> wrote: Hey there, I'm having a problem on a virtualized Debian 9 server where i want to install bacula (7.4.4) I'm not able to start the SD, while FD and DIR are OK When I try to start it with _systemd start bacula-sd_, i'm getting the following Oct 9 14:11:29 bacula-sd[6539]: Config error: Cannot open config file "/etc/bacula/bacula-sd.conf": Permission denied Oct 9 14:11:29 bacula-sd[6539]: 09-Oct 14:11 bacula-sd: ERROR TERMINATION at parse_conf.c:919 Oct 9 14:11:29 bacula-sd[6539]: Config error: Cannot open config file "/etc/bacula/bacula-sd.conf": Permission denied Oct 9 14:11:29 systemd[1]: bacula-sd.service: Main process exited, code=exited, status=1/FAILURE I thought permissions issues, but it seems not. I've tried to - apt-get install --reinstall bacula-sd, same problem (so with default permissions) - remove bacula-sd.conf : same problem (weird, i guess i should have a "no such file or directory" ?) - start with /etc/init.d/bacula-sd : same problem - check permissions in /etc/bacula + /var/lib/bacula + /run/bacula : same problem - set an unix password to my bacula user (that belongs to the "tape" group of course) to try to ssh login and go|see /etc/bacula/bacula-sd.conf, worked perfectly - start it with -- sh -x /etc/init.d/bacula-sd start -- but am not able to see any problem The only thing that works is if I manually start the SD from CLI -- /usr/sbin/bacula-sd -f -c /etc/bacula/bacula-sd.conf -- that confirms me it neither related to a typo mistake from bacula-sd.conf nor an LTO problem (communication problem). Once started this way, i'm able to "status sd" in bconsole. .... any hint appreciated ! Thibault _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users