Hi Turbo,

The easiest way to do this is have the bacula user on the client set up to 
allow a login shell of a specific script. You also will need to give the bacula 
user a home directory (maybee /var/backups).

do something like this in /etc/passwd on the client

bacula:x:<UID_NUMBER>:65534::/bar/backup:/usr/local/sbin/bacula_client_runbefore.sh

then set up ssh key based authentication by generating ssh keys for the bacula 
user on the client and the server, then adding the public key of the bacula 
user on the server to the ~/.ssh/authorized_keys file for the bacula user on 
the client.

Then on the server your RunBefore script is simply:

#!/bin/bash
ssh <client>


Cheers,
Silas Bennett

=0)

btw, Turbo thanks for the Debian LDAP Kerberos how to. I have found it useful 
even though it is a bit dated.


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Turbo
Fredriksson
Sent: Friday, April 21, 2006 2:34 AM
To: bacula-users@lists.sourceforge.net
Subject: [Bacula-users] RunBeforeJob && Hosts (Was: <job> is waiting for
its start time)


>>>>> "Turbo" == Turbo Fredriksson <[EMAIL PROTECTED]> writes:

    Turbo> This is weird... I've been fiddling with running multiple
    Turbo> jobs simultaneous (which seems to work). But this morning
    Turbo> (first time ALL run/start at the same time), I have a
    Turbo> couple of jobs that ISN'T started!

I discovered when I checked the log file (it was scrolling past so fast
that I didn't see it before) that it's because the RunBeforeJob
wasn't found. This script doesn't (and SHOULDN'T) exist on the DIR, only
on the FD.

That is, I'd like a script be executed on the _client_ prior to start
feeding data to the FD... Is this possible? I thought the 'RunBeforeJob'
was supposed to do just that.


-------------------------------------------------------
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&kid0709&bid&3057&dat1642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to