On Sat, 17  Dec  2005,  09:54:28PM +0100ยจ, Arno Lehmann said:
> >17-Dec 20:26 tux-dir: RunAfter: root
> >17-Dec 20:26 tux-dir: RunAfter: + /etc/bacula/delete_catalog_backup
> >17-Dec 20:26 tux-dir: RunAfter: + mt rewind
> >17-Dec 20:26 tux-dir: RunAfter: mt: /dev/tape: Permission denied
> >17-Dec 20:26 tux-dir: RunAfter: + mt eject
> >17-Dec 20:26 tux-dir: RunAfter: mt: /dev/tape: Permission denied
> >17-Dec 20:26 tux-dir: RunAfter: + exit 0
> 
> Hmm. Are you using a debian linux system? I think I remember something...

yes, debian stable but bacula from sources.

The problem is (well, for me in this case) that the jobs run as user
bacula (this is good, do not get me wrong). The user bacula in debian
systems (I used first the *.debs but then compiled) get a /bin/false
shell. I changed that to /bin/bash. Then I edited the sudoers file and
granted bacula access to /bin/mt as root without password. That did it.
It is not beautiful but it works, and this machine is not a safety
problem anyway.
-- 
Groeten,
J.I.Asenjo


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to