Bacula-users

[Bacula-users] permission denied on tapedrive nst0 after upgrade from debian sarge to debian etch

2008-05-21 09:46:11
Subject: [Bacula-users] permission denied on tapedrive nst0 after upgrade from debian sarge to debian etch
From: Marc Cuypers <m.cuypers AT mgvd DOT be>
To: bacula-users AT lists.sourceforge DOT net
Date: Wed, 21 May 2008 15:45:59 +0200
Hi,

I ran into a 'permission denied' error for the tape drive after 
upgrading from debian sarge to debian etch.

I'm running bacula 1.38.5.

I get the following message when doing a restore:
<paste>
21-May 15:14 u2-fd: RestoreFiles.2008-05-21_15.14.28 Fatal error: 
job.c:1602 Bad response to Read Data command. Wanted 3000 OK data
, got 3000 error
21-May 15:14 u2-sd: RestoreFiles.2008-05-21_15.14.28 Fatal error: 
dev.c:362 dev.c:356 Unable to open device "LTO-2" (/dev/nst0): 
ERR=Permission denied
21-May 15:14 u2-sd: RestoreFiles.2008-05-21_15.14.28 Fatal error: 
acquire.c:195 Open device "LTO-2" (/dev/nst0) Volume "DI0101L2" failed: 
ERR=dev.c:356 Unable to open device "LTO-2" (/dev/nst0): ERR=Permission 
denied
</paste>

It used to work under sarge.  I did a recompile of the source on etch 
and installed the programs.

The permissions on /dev/nst0 were:
<paste>
/dev# ls -ld nst0
crw-rw---- 1 root tape 9, 128 2008-05-21 14:05 nst0
</paste>

When adding permissions on nst0 for world:
<paste>
/dev# ls -ld nst0
crw-rw-rw- 1 root tape 9, 128 2008-05-21 14:05 nst0
</paste>

Everything seems to work.

bacula-sd runs as bacula
<paste>
/dev# ps -ef | grep bacula
bacula   24379     1  0 15:24 ?        00:00:02 
/home/bacula/bin/bacula-sd -u bacula -g bacula -v -c 
/home/bacula/etc/bacula-sd.conf
root     24384     1  0 15:24 ?        00:00:00 
/home/bacula/bin/bacula-fd -u root -g root -v -c 
/home/bacula/etc/bacula-fd.conf
bacula   24389     1  3 15:24 ?        00:00:31 
/home/bacula/bin/bacula-dir -u bacula -g bacula -v -c 
/home/bacula/etc/bacula-dir.conf
</paste>

The user bacula is in the group tape.
<paste>
/dev# id bacula
uid=1001(bacula) gid=1001(bacula) groups=1001(bacula),26(tape)
</paste

What am i doing wrong?

-- 
Best regards,

Marc

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users