On Aug 2, 2006, at 12:27 PM, Ryan Novosielski wrote: >> Investigating show something odd -- some of these files are owned and >> writable only by root. That's confusing -- how does bacula-dir >> (which is invoked as user 'bacula') write out a file owned by root? >> >> -rw-r----- 1 bacula bacula 206 Jul 7 18:34 backup0-dir.backup0- >> dir.135128472.mail >> -rw-r----- 1 bacula bacula 206 Jul 13 17:49 backup0-dir.backup0- >> dir.135129240.mail >> -rw-r----- 1 root bacula 138 Jul 13 17:53 backup0-dir.backup0- >> dir.135133336.mail >> -rw-r----- 1 root bacula 138 Jul 13 18:20 backup0-dir.backup0- >> dir.135133464.mail >> -rw-r----- 1 root bacula 0 Jul 13 17:38 backup0-dir.backup0- >> dir.135141272.mail >> -rw-r----- 1 bacula bacula 206 Jul 5 14:59 backup0-dir.backup0- >> dir.135168088.mail >> >> I'm guessing that somehow the file was pre-created by a root owned >> process, and then you tried to append or rewrite it as bacula? > > More likely I'd think is that you accidentally ran Bacula as root once > or twice by mistake. How do you exec bacula's processes normally? > Who do > your daemons run as? How did you install -- from source?
From the FreeBSD port, which runs all of these daemons as bacula except for the FD. I have only ever started and stopped the daemons using the rc.d/z-bacula.sh script. > I'm also > somewhat perplexed by the file permission problem -- it should have > failed if you didn't fix your permissions. As you no-doubt know, these > things don't tend to change by themselves. What are the permissions of > /var/db/bacula? I'd clear that directory out, in any case, with bacula > stopped -- after you've made a note of what was in there. If the > problem > recurs, we'll have something. /var/db/bacula is 0755 bacula bacula Given that it works with dozens of other systems, and only failed with the SIGPIPE failure, I'm guessing that this problem only occurs when a backup terminates due to SIGPIPE. At this time, that won't be re-createable. (unless you know how to recreate that without putting a known bad network card into a production server...) -- Jo Rhett senior geek Silicon Valley Colocation ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users