On 30 Mar 2007 at 22:16, Kimi Ostro wrote: > On 30/03/07, Arno Lehmann <[EMAIL PROTECTED]> wrote: > > Hi, > > > > On 3/30/2007 10:38 PM, Jason King wrote: > > > I ran into the same problem. You have to check the startup script and > > > change the user that it starts as. It's wanting to start as a user other > > > than root. Here is the line you are looking for in the rc.d script. The > > > -u flag should be changed it root. > > > > Oh... I don't agree here. I mean, I'm running the DIR as root, but this > > is on a machine dedicated to running Bacula, no user access, no access > > from beyond my firewall, not even any user accounts that could log into it. > > > > Generally, for security reasons, it's a good idea to run all services as > > non-root user. > > > > In fact I do know for sure that Bacula can run as non-root user, both on > > linux and on FreeBSD. > > > > You should make sure the acount the DIR tries to run as exists, and can > > access all the vital locations the DIR needs to access. These include > > the working directory and configuration files, and it is possible I > > forgot others :-) > > > > > : ${bacula_dir_flags=" -u root -g wheel -v -c > > > /usr/local/etc/bacula-dir.conf"} > > > > > > Kimi Ostro wrote: > > >> Hi list, > > >> > > >> today I built bacula from FreeBSD ports. > > >> > > >> Now I can start both bacula-sd and bacula-fd on startup, yet I cant > > >> start bacula-dir on startup. The error message I get in my log is: > > >> Mar 30 21:13:16 freebsd /boot/generic/kernel: pid 42355 (bacula-dir), > > >> uid 910: exited on signal 6 > > >> > > >> I don't know why bacula-dir exits with Abort? > > >> > > >> I can start bacula-dir from the command line if I type this: > > >> # /usr/local/sbin/bacula-fd -vt -c /usr/local/etc/bacula-fd.conf > > > > The t options means a test of the configuration. It will not actually > > run the DIR as a daemon. > > > > sorry, was a typo error. > still, typing: > /usr/local/sbin/bacula-dir -fv -d99 -u bacula -g bacula -c > /usr/local/etc/bacula-dir.conf > > works fine. yet > > /usr/local/etc/rc.d/bacula-dir start > > does not work and leave a message in /var/log/message about sig 6/abort. > > A buggy rc.d script. I am going to re-write it and see if that fixes > the problem.
I'll be happy to see any solutions you find. -- Dan Langille : Software Developer looking for work my resume: http://www.freebsddiary.org/dan_langille.php PGCon - The PostgreSQL Conference - http://www.pgcon.org/ ------------------------------------------------------------------------- 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