Hello,

I think there was a permissionproblem (1.38.10.? - .src.rpm) with the
"mtx-changer" script itself (/etc/bacula/mtx-changer). When I´m not wrong
then changing the user in the sd-init-script does not help so good - but I
don´t know if this was 1.38.10.3 or 1.38.10.1 ...

Greetings,
user100



> -----Ursprüngliche Nachricht-----
> Von: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] Im 
> Auftrag von Timo Neuvonen
> Gesendet: Dienstag, 27. Juni 2006 21:49
> An: bacula-users@lists.sourceforge.net
> Betreff: Re: [Bacula-users] /var/bacula write problem (sd, 
> mtx-changer)
> 
> 
> > > For the idea of fixing this... My first guess: how about 
> changing the
> > > directory owner from root to bacula? That is, to bacula:bacula
> > > Is there spesific need it must be owned by root?
> >
> > You can change it to bacula:bacula and I don't think it 
> will cause any
> > problems.  However, as long as the user bacula is in the 
> group bacula and
> the
> > bacula group has write permission on /var/bacula, it should 
> all work fine.
> >
> 
> I don't know how groups stuff really _should_ work.
> But for me it very much looks things don't work that way.
> I guess since process is running with gid=disk, group 
> permissions for bacula
> seem not to be effective, although process uid=bacula.
> 
> I have a uncertain idea that you used to run SD as root?
> How is this working with someone else having an autochanger, 
> and SD is run
> as root?
> Or even without autochanger, does /var/bacula/bacula-sd.9103.state get
> updated, when SD is run as bacula:disk and the directory is owned by
> root:bacula?
> 
> 
> Below is my first experiment with owner setting bacula:bacula
> It looks this way may work.
> I suggest re-checking this issue, if you consider everything 
> was originally
> ok.
> 
> 
> At first, I removed an old item "bacula" from /etc/group line disk.
> Then, I removed world-writable rights from /var/bacula,
> ie. changed from 777 to 770:
> drwxrwx---   2 root    bacula   4096 Jun 27 22:22 bacula
> This is what happens:
> 
> *update
> Update choice:
>      1: Volume parameters
>      2: Pool from resource
>      3: Slots from autochanger
> Choose catalog item to update (1-3): 3
> The defined Storage resources are:
>      1: File
>      2: Exabyte Autoloader
> Select Storage resource (1-2): 2
> Connecting to Storage daemon Exabyte Autoloader at dogbert:9103 ...
> 3306 Issuing autochanger "slots" command.
> Device "Exabyte Autoloader" has 10 slots.
> Connecting to Storage daemon Exabyte Autoloader at dogbert:9103 ...
> 3301 Issuing autochanger "loaded drive 0" command.
> 3991 Bad autochanger "loaded drive 0" command: ERR=Child 
> exited with code 1.
> 3306 Issuing autochanger "list" command.
> Invalid Slot number: mktemp: cannot create temp file
> /var/bacula/mtx.siuLCw2358: Permission denied
> Invalid Slot number: /etc/bacula/mtx-changer: line 157:
> /var/bacula/mtx.2357: Permission denied
> Invalid Slot number: cat: /var/bacula/mtx.2357: Permission denied
> Invalid Slot number: cat: /var/bacula/mtx.2357: Permission denied
> Invalid Slot number: Autochanger error: ERR=Child exited with code 1
> No Volumes found to label, or no barcodes.
> *
> 
> Then, I changed owner of /var/bacula from root to bacula:
> drwxrwx---   2 bacula  bacula   4096 Jun 27 22:22 bacula
> 
> *upd
> Update choice:
>      1: Volume parameters
>      2: Pool from resource
>      3: Slots from autochanger
> Choose catalog item to update (1-3): 3
> The defined Storage resources are:
>      1: File
>      2: Exabyte Autoloader
> Select Storage resource (1-2): 2
> Connecting to Storage daemon Exabyte Autoloader at dogbert:9103 ...
> 3306 Issuing autochanger "slots" command.
> Device "Exabyte Autoloader" has 10 slots.
> Connecting to Storage daemon Exabyte Autoloader at dogbert:9103 ...
> 3301 Issuing autochanger "loaded drive 0" command.
> 3302 Autochanger "loaded drive 0", result: nothing loaded.
> 3306 Issuing autochanger "list" command.
> Catalog record for Volume "A0000001" updated to reference slot 1.
> Volume "A0000002" not found in catalog. Slot=2 InChanger set to zero.
> Catalog record for Volume "A0000003" updated to reference slot 3.
> Volume "A0000004" not found in catalog. Slot=4 InChanger set to zero.
> *
> 
> Regards,
> Timo
> 
> 
> 
> 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


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