On 4/2/2012 3:08 PM, Murray Davis wrote: > Thank you, Josh, for your response. I ended up doing two things... > > 1) I changed the permissions on /mnt/sdb1 using I chmod 777 so > everyone has read/write/execute privilege. This seemed like overkill > since I thought that my problem was related to my labels and pools not > being defined properly. So, I did step 2. > > 2) I used the conf files for bacula-dir.conf and bacula-sd.conf as > described in Automated Disk Backup from the bacula manual to define my > pools. > > I ran a test full backup for job, backupclient1, my default job, and > it ran successfully. What I found interesting is the permissions on > the backup file. Take a look... > > root@cablemon sdb1/backups# ls -la > total 16736 > drwxrwxrwx 2 root bacula 4096 Apr 2 10:39 . > drwxrwxrwx 5 root bacula 4096 Apr 2 10:38 .. > -rw-r----- 1 bacula tape 17127387 Apr 2 10:39 Full-0001 > root@cablemon sdb1/backups# > > I didn't even know that I had a group called tape. Here is that > group...note it has one member...bacula! > > root@cablemon sdb1/backups# cat /etc/group | grep tape > tape:x:26:bacula > > Thinking that permissions 777 were too open, I changed them back to > 775 and re-ran my backup job. It failed again. I checked the groups > again and saw that there was also a "disk" group with no members. I > added bacula to that group and re-ran my job. It failed. I then set my > permissions back to 777 and ran my job. It succeeded.
It looks like the bacula-sd daemon is configured to run as bacula:tape, therefore it creates files owned by bacula:tape. Simply change the owner and permissions of sdb1/backups to allow the user bacula-sd runs as (bacula:tape) to write to it. # chown -R bacula:tape /mnt/sdb1/backups # chmod 750 /mnt/sdb1/backups ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users