On Wednesday 28 June 2006 10:04, Timo Neuvonen wrote:
> > > So, is anyone running autochanger with storage daemon as non-root
> > > (bacula:disk)?
> >
> > I am, on a Debian/sid system with the 1.36.3 packages still:
> >
> > 0 [EMAIL PROTECTED]:~$ ps -ef | grep bacula-sd
> > bacula    9101     1  0 Mar12 ?
> > 00:00:00 /usr/sbin/bacula-sd -c /etc/bacula/bacula-sd.conf -u bacula -g
>
> tape
>
> Ok, this roughly corresponds to the setting bacula:disk used in Fedora,
> although a better choice (no disk access, tape only). But non-root anyway.
>
> > 0 [EMAIL PROTECTED]:~$ ls -l /dev/sg0 /dev/nst0
> > crw-rw----  1 root tape  9, 128 2002-03-14 22:51 /dev/nst0
> > crw-rw----  1 root tape 21,   0 2002-03-14 22:51 /dev/sg0
> > 0 [EMAIL PROTECTED]:~$ ls -ld /var/lib/bacula
> > drwx------  3 bacula bacula 4096 2006-06-28 02:08 /var/lib/bacula

The problem here is that the permissions of the directory (/var/lib/bacula 
or /var/bacula depending on your OS) really should be 770
or possibly 760.  As long as the permissions are 770 and the user bacula is in 
the group bacula, then the file can be owned by root.

>
> Bingo!
> You have owner:group bacula:bacula (NOT root:bacula) for this directory,
> the same I yesterday also changed it into.
>
> Actually, this isn't a proof yet, that root:bacula couldn't work. But
> that's something I still believe in...

root:bacula can and does work as I stated in a previous email, and as I state 
above -- providing you have the other items setup correctly (permissions, 
group memberships, ...).

There should also be no problem if the directory is owned by bacula:bacula.

-- 
Best regards,

Kern

  (">
  /\
  V_V

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to