On Friday 30 September 2005 18:07, Doug Sampson wrote: > I've configured Bacula (ver 1.36.3) on a FreeBSD 5.4 machine to write to a > file on /backup but I'm getting the following error message each time I > attempt a job: > > 30-Sep 14:50 aries-sd: Aries.2005-09-30_14.50.25 Fatal error: device.c:317 > Unable to open device /backup. ERR=dev.c:340 Could not open: > /backup/Backup-2005-09-30, ERR=Permission denied > > When I change the file to /tmp in bacula-sd.conf, it executes without an > error. Dir/File permissions for /tmp is as follows:
On FreeBSD the bacula storage daemon usually runs as the user "bacula" which is in group "bacula". Try (as root): chmod bacula:bacula /backup And re-run your test. > drwxrwxr-x 4 root wheel 512 Sep 30 14:14 backup This directory can only be written to by root and members of the "wheel" group, which bacula certainly shouldn't be. > drwxrwxrwt 30 root wheel 1024 Sep 30 14:50 tmp This directory can be written to by any local user, which is why bacula can write to /tmp just fine. Brian -- Brian McDonald Never confuse being nice with being a tool. ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users