Hello,
On 3/10/2006 12:16 PM, david robert wrote:
i am sending here my bacula director,storage and tape drive permissions
bacula 1280 1 0 Mar08 ? 00:00:00 /usr/sbin/bacula-sd -c
/etc/bacula/bacula-sd.conf -u bacula -g tape
bacula 1281 1280 0 Mar08 ? 00:00:00 /usr/sbin/bacula-sd -c
/etc/bacula/bacula-sd.conf -u bacula -g tape
bacula 1283 1281 0 Mar08 ? 00:00:00 /usr/sbin/bacula-sd -c
/etc/bacula/bacula-sd.conf -u bacula -g tape
bacula 1412 1 0 Mar08 ? 00:00:00 /usr/sbin/bacula-dir -c
/etc/bacula/bacula-dir.conf -u bacula -g bacula
bacula 1413 1412 0 Mar08 ? 00:00:00 /usr/sbin/bacula-dir -c
/etc/bacula/bacula-dir.conf -u bacula -g bacula
bacula 1414 1413 0 Mar08 ? 00:00:00 /usr/sbin/bacula-dir -c
/etc/bacula/bacula-dir.conf -u bacula -g bacula
bacula 1415 1413 0 Mar08 ? 00:00:00 /usr/sbin/bacula-dir -c
/etc/bacula/bacula-dir.conf -u bacula -g bacula
nst0 permissions as follows
crw-rw---- 1 root tape 9, 128 2005-02-26 06:38 nst0
Ah. Depending on which user id your script is running under, it doesn't
have permission to access the tape device.
You should either change the device owner or permissions (which I
wouldn't recommend doing manually, but rather - but I don't know debian
- by configuring udev to do so) or let your script run mt as another
user. sudo is a good tool there.
You could also run the DIR as group tape, but that would be kind of
break your systems security.
Arno
thank you
*/Martin Simmons <[EMAIL PROTECTED]>/* wrote:
>>>>> On Fri, 10 Mar 2006 10:43:06 +0000 (GMT), david robert said:
>
> i am using debian 3.1
Well it will be interesting to see if "mt rewoffline" fixes the problem.
Anot her possible cause for the error: the uid/gid which runs the
Director
doesn't have permission to access the tape device (since this is
normally done
by the Storage daemon, which might be running as a different uid/gid).
__Martin
>
> Martin Simmons wrote: >>>>> On Fri, 10 Mar 2006 1=
> 1:12:50 +0100, Arno Lehmann said:
> >
> > Also, one thing I overlooked in my previous post: With a DLT
drive, you=
> =20
> > can't usually eject the cartridge after rewinding, you have to
offline=20
> > the drive, too. The combined command 'mt rewoffline' might thus
already=
> =20
> > solve your problem.
>
> Which OS is that? According to "man mt" on FC3, offline, rewoffl
and ejec=
> t
> are the same command.
>
> __Martin
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the live
webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users
Yahoo! Cars
<http://us.rd.yahoo.com/mail/uk/taglines/default/cars/*http://uk.cars.yahoo.com/>
NEW - sell your car and browse thousands of new and used cars online
search now
<http://us.rd.yahoo.com/mail/uk/taglines/default/cars/*http://uk.cars.yahoo.com/>
--
IT-Service Lehmann [EMAIL PROTECTED]
Arno Lehmann http://www.its-lehmann.de
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users