Bacula-users

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

2008-05-21 10:38:58
Subject: Re: [Bacula-users] permission denied on tapedrive nst0 after upgrade from debian sarge to debian etch
From: Thomas Mueller <thomas AT chaschperli DOT ch>
To: bacula-users AT lists.sourceforge DOT net
Date: Wed, 21 May 2008 16:38:34 +0200
Hi Marc

Marc Cuypers schrieb:
> 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.

and why not updateing to 2.2.8 ? available from debian backports 
(www.backports.org) for debian etch.

> 
> 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 

from original debian package bacula runs as "-u bacula -g tape". did you 
try this?

- Thomas


-------------------------------------------------------------------------
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