Re: [Bacula-users] backup size prediction?

2006-07-07 Thread Ludovic Strappazon




Hello Kern,

Is it correctly attached now ?

Ludovic.

Kern Sibbald wrote:

  Hello Ludovic,

Could you send the script as an attachment.  As it came, it was line 
wrapped ...

Regards,

Kern

On Thursday 06 July 2006 20:22, Ludovic Strappazon wrote:
  
  
Hello Arno,

This is the script :

#! /bin/sh
# Author : Ludovic Strappazon. [EMAIL PROTECTED]
# Copyright : Kern Sibbald
# Any comment, advice or enhancement are welcome :-)

PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
MYSQL="/usr/bin/mysql -u bacula --password=X"
TMP=/tmp
BACULA=/usr/local/bacula

PROGNAME=`basename $0`
PROGPATH=`echo $0 | sed -e 's,[\\/][^\\/][^\\/]*$,,'`
STATUS=""

. $PROGPATH/utils.sh

print_usage() {
echo "Usage: $PROGNAME -P pool -M media-type -w warning
threshold -c critical threshold [-S]"
}

print_help() {
echo ""
print_usage
echo ""
echo "This plugin checks the space available in the pool against
the space required for the next scheduled backups"
echo "Example : $PROGNAME -P default -M LTO -w 20 -c 10 will
check the default pool, return OK if (available space)  1,20*(required
space), WARNING if 1,20*(required space)  (available space) 
1,10*(required space), and CRITICAL else."
echo ""
echo "With the -S option, it will check the pool named Scratch and
return WARNING instead of CRITICAL if the Scratch pool can save the
situation."
echo "Example : $PROGNAME -P default -M LTO -w 20 -c 10 -S will
check the default pool, return OK if (available space)  1,20*(required
space), WARNING if 1,20*(required space)  (available space) 
1,10*(required space) or if (available space in default and Scratch) 
1,10*(required space)  (available space in default), and CRITICAL else."
echo ""
echo "The evaluation of the space required is done by adding the
biggest backups of the same level than the scheduled jobs"
echo "The available space is evaluated by the number of out of
retention tapes and the average VolBytes of these Full tapes"
echo ""
echo "The Information Status are : \"Required, Available, Volume
Errors\" and \"Will use Scratch pool\" if necessary."
echo ""
echo "I think this plugin should be used in passive mode, and ran by
a RunAfterJob"
exit 3
}

NB_ARGS=$#
SCRATCH=0
while getopts :P:M:w:c:hS OPTION
do
  case $OPTION in
P) POOL="$OPTARG"
   ;;
M) MEDIA_TYPE="$OPTARG"
   ;;
S) SCRATCH=1
   ;;
w) WARNING="$OPTARG"
   ;;
c) CRITICAL="$OPTARG"
   ;;
h) print_help
   exit 3
   ;;
*) print_usage
   exit 3
   ;;
  esac
done
shift $(($OPTIND - 1))

if [ "$NB_ARGS" -ne 8 -a "$NB_ARGS" -ne 9 ]; then
print_revision $PROGNAME 13/06/2006
print_usage
exit 3
fi

LAST_CHECK=`ps -ef | grep check_ba[Cc]ula_pools.sh | awk {'print $5'} |
uniq | wc -l`
if [ "$LAST_CHECK" -gt 1 ]; then
echo "The last check was not complete, you should increase the
check_period."
exit 3
fi

NB_VOLUMES=`$MYSQL  EOF
USE bacula
SELECT COUNT(MediaId) from Media, Pool where Media.PoolId=Pool.PoolId
and Pool.Name="$POOL" AND Inchanger = "1";
EOF`

NB_VOLUMES=`echo $NB_VOLUMES | cut -f 2 -d ' '`

echo "st
1
q" | $BACULA/etc/bconsole | sed -n /Scheduled/,/Running/p | grep Backup

| tr -s [:blank:] | tr '[:blank:]' '@'  ${TMP}/Scheduled.txt

CAPA_REQUIRED=0
for LINE in `cat ${TMP}/Scheduled.txt`
do
  SCHEDULED_JOB=`echo $LINE | awk -F@ '{print $6}'`
  LEVEL=`echo $LINE | awk -F@ '{print $1}' | cut -c 1`

MAX_VOLUME_JOB_FOR_LEVEL=`$MYSQL  EOF
USE bacula
SELECT MAX(JobBytes) from Job, Pool where Level="$LEVEL" AND
Job.Name="$SCHEDULED_JOB" AND Job.PoolId=Pool.PoolId AND Pool.Name="$POOL";
EOF
`
MAX_VOLUME_JOB_FOR_LEVEL=`echo $MAX_VOLUME_JOB_FOR_LEVEL | cut -f 2 -d ' '
`

CAPA_REQUIRED=$[CAPA_REQUIRED+MAX_VOLUME_JOB_FOR_LEVEL]
done

rm ${TMP}/Scheduled.txt


if [ $NB_VOLUMES -gt 0 ]
then

  NB_VOLUMES_OUT_OF_RETENTION=`$MYSQL  EOF
USE bacula
SELECT COUNT(MediaId) from Media, Pool where Media.PoolId=Pool.PoolId
and Pool.Name="$POOL" AND LastWritten  "-00-00 00:00:00" AND
UNIX_TIMESTAMP()-UNIX_TIMESTAMP(LastWritten)Media.VolRetention AND
Inchanger = "1";
EOF
`
  NB_VOLUMES_OUT_OF_RETENTION=`echo $NB_VOLUMES_OUT_OF_RETENTION | cut
-f 2 -d ' '`

NB_VOLUMES_ERROR=`$MYSQL  EOF
USE bacula
SELECT COUNT(MediaId) from Media, Pool where Media.PoolId=Pool.PoolId
and Pool.Name="$POOL" AND VolStatus="Error" AND Inchanger = "1";
EOF
`
NB_VOLUMES_ERROR=`echo $NB_VOLUMES_ERROR | cut -f 2 -d ' '`

AVERAGE_CAPA_VOLUME=`$MYSQL  EOF
USE bacula
SELECT SUM(VolBytes)/COUNT(MediaId) FROM Media where VolStatus="Full"
AND MediaType="$MEDIA_TYPE";
EOF
`
AVERAGE_CAPA_VOLUME=`echo $AVERAGE_CAPA_VOLUME | cut -f 2 -d ' ' | cut
-f 1 -d '.'`

CAPA_VOLUMES_APPEND=`$MYSQL  EOF
USE bacula
SELECT SUM("$AVERAGE_CAPA_VOLUME"-VolBytes) from Media, Pool where
Media.PoolId=Pool.PoolId and Pool.Name="$POOL" AND (VolStatus = "Append"
OR VolStatus = "Recycle" OR VolStatus = "Purge") AND Inchanger = "1" AND

Re: [Bacula-users] backup size prediction?

2006-07-07 Thread Kern Sibbald
On Friday 07 July 2006 08:17, Ludovic Strappazon wrote:
 Hello Kern,

 Is it correctly attached now ?

Yes, thanks.  I put it in the 1.39 source in examples/database ...

Thanks.


 Ludovic.

 Kern Sibbald wrote:
  Hello Ludovic,
 
  Could you send the script as an attachment.  As it came, it was line
  wrapped ...
 
  Regards,
 
  Kern
 
  On Thursday 06 July 2006 20:22, Ludovic Strappazon wrote:
  Hello Arno,
 
  This is the script :
 
  #! /bin/sh
  # Author : Ludovic Strappazon. [EMAIL PROTECTED]
  # Copyright : Kern Sibbald
  # Any comment, advice or enhancement are welcome :-)
 
  PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
  MYSQL=/usr/bin/mysql -u bacula --password=X
  TMP=/tmp
  BACULA=/usr/local/bacula
 
  PROGNAME=`basename $0`
  PROGPATH=`echo $0 | sed -e 's,[\\/][^\\/][^\\/]*$,,'`
  STATUS=
 
  . $PROGPATH/utils.sh
 
  print_usage() {
  echo Usage: $PROGNAME -P pool -M media-type -w warning
  threshold -c critical threshold [-S]
  }
 
  print_help() {
  echo 
  print_usage
  echo 
  echo This plugin checks the space available in the pool against
  the space required for the next scheduled backups
  echo Example : $PROGNAME -P default -M LTO -w 20 -c 10 will
  check the default pool, return OK if (available space)  1,20*(required
  space), WARNING if 1,20*(required space)  (available space) 
  1,10*(required space), and CRITICAL else.
  echo 
  echo With the -S option, it will check the pool named Scratch and
  return WARNING instead of CRITICAL if the Scratch pool can save the
  situation.
  echo Example : $PROGNAME -P default -M LTO -w 20 -c 10 -S will
  check the default pool, return OK if (available space)  1,20*(required
  space), WARNING if 1,20*(required space)  (available space) 
  1,10*(required space) or if (available space in default and Scratch) 
  1,10*(required space)  (available space in default), and CRITICAL
  else. echo 
  echo The evaluation of the space required is done by adding the
  biggest backups of the same level than the scheduled jobs
  echo The available space is evaluated by the number of out of
  retention tapes and the average VolBytes of these Full tapes
  echo 
  echo The Information Status are : \Required, Available, Volume
  Errors\ and \Will use Scratch pool\ if necessary.
  echo 
  echo I think this plugin should be used in passive mode, and ran by
  a RunAfterJob
  exit 3
  }
 
  NB_ARGS=$#
  SCRATCH=0
  while getopts :P:M:w:c:hS OPTION
  do
case $OPTION in
  P) POOL=$OPTARG
 ;;
  M) MEDIA_TYPE=$OPTARG
 ;;
  S) SCRATCH=1
 ;;
  w) WARNING=$OPTARG
 ;;
  c) CRITICAL=$OPTARG
 ;;
  h) print_help
 exit 3
 ;;
  *) print_usage
 exit 3
 ;;
esac
  done
  shift $(($OPTIND - 1))
 
  if [ $NB_ARGS -ne 8 -a $NB_ARGS -ne 9 ]; then
  print_revision $PROGNAME 13/06/2006
  print_usage
  exit 3
  fi
 
  LAST_CHECK=`ps -ef | grep check_ba[Cc]ula_pools.sh | awk {'print $5'} |
  uniq | wc -l`
  if [ $LAST_CHECK -gt 1 ]; then
  echo The last check was not complete, you should increase the
  check_period.
  exit 3
  fi
 
  NB_VOLUMES=`$MYSQL  EOF
  USE bacula
  SELECT COUNT(MediaId) from Media, Pool where Media.PoolId=Pool.PoolId
  and Pool.Name=$POOL AND Inchanger = 1;
  EOF`
 
  NB_VOLUMES=`echo $NB_VOLUMES | cut -f 2 -d ' '`
 
  echo st
  1
  q | $BACULA/etc/bconsole | sed -n /Scheduled/,/Running/p | grep Backup
 
  | tr -s [:blank:] | tr '[:blank:]' '@'  ${TMP}/Scheduled.txt
 
  CAPA_REQUIRED=0
  for LINE in `cat ${TMP}/Scheduled.txt`
  do
SCHEDULED_JOB=`echo $LINE | awk -F@ '{print $6}'`
LEVEL=`echo $LINE | awk -F@ '{print $1}' | cut -c 1`
 
  MAX_VOLUME_JOB_FOR_LEVEL=`$MYSQL  EOF
  USE bacula
  SELECT MAX(JobBytes) from Job, Pool where Level=$LEVEL AND
  Job.Name=$SCHEDULED_JOB AND Job.PoolId=Pool.PoolId AND
  Pool.Name=$POOL; EOF
  `
  MAX_VOLUME_JOB_FOR_LEVEL=`echo $MAX_VOLUME_JOB_FOR_LEVEL | cut -f 2 -d '
  ' `
 
  CAPA_REQUIRED=$[CAPA_REQUIRED+MAX_VOLUME_JOB_FOR_LEVEL]
  done
 
  rm ${TMP}/Scheduled.txt
 
 
  if [ $NB_VOLUMES -gt 0 ]
  then
 
NB_VOLUMES_OUT_OF_RETENTION=`$MYSQL  EOF
  USE bacula
  SELECT COUNT(MediaId) from Media, Pool where Media.PoolId=Pool.PoolId
  and Pool.Name=$POOL AND LastWritten  -00-00 00:00:00 AND
  UNIX_TIMESTAMP()-UNIX_TIMESTAMP(LastWritten)Media.VolRetention AND
  Inchanger = 1;
  EOF
  `
NB_VOLUMES_OUT_OF_RETENTION=`echo $NB_VOLUMES_OUT_OF_RETENTION | cut
  -f 2 -d ' '`
 
  NB_VOLUMES_ERROR=`$MYSQL  EOF
  USE bacula
  SELECT COUNT(MediaId) from Media, Pool where Media.PoolId=Pool.PoolId
  and Pool.Name=$POOL AND VolStatus=Error AND Inchanger = 1;
  EOF
  `
  NB_VOLUMES_ERROR=`echo $NB_VOLUMES_ERROR | cut -f 2 -d ' '`
 
  AVERAGE_CAPA_VOLUME=`$MYSQL  EOF
  USE bacula
  SELECT SUM(VolBytes)/COUNT(MediaId) FROM Media where VolStatus=Full
  AND MediaType=$MEDIA_TYPE;
  EOF
  `
  

Re: [Bacula-users] remote tapes

2006-07-07 Thread Bart Schelstraete
Hi,

I always thought that only the FD was working on HP-UX.
I tried to compile the SD on HP-UX, and indeed this works!
(even the director)


Bart



On 7/5/06, Ryan Novosielski [EMAIL PROTECTED] wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 It isn't? News to me... does it not compile?

 Bart Schelstraete wrote:
  Hi,
 
  We have some tape (DDS) devices connected to HP-UX machines.
  Because the SD is not supported on HP-UX, we cannot configure a SD on that.
  Is there another way so that we can also store backups to the tapes
  connected to an HP-UX box?
 
 
 
  B
 
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.2.2 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iD4DBQFEqzrDmb+gadEcsb4RAnX1AJME6vWDEEisnp+WXVbc8q9T3vmtAKCMbh15
 QxGkjO6CLV/TSqDeXw552Q==
 =Zmhx
 -END PGP SIGNATURE-



-- 
Schelstraete Bart
http://www.schelstraete.org
[EMAIL PROTECTED]

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=lnkkid=120709bid=263057dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] backup size prediction?

2006-07-07 Thread Ludovic Strappazon




We also use this one to summarily check (with nagios) the backups.
If it can be of any use to someone else...

Ludovic. 

Kern Sibbald a crit:

  On Friday 07 July 2006 08:17, Ludovic Strappazon wrote:
  
  
Hello Kern,

Is it correctly attached now ?

  
  
Yes, thanks.  I put it in the 1.39 source in examples/database ...

Thanks.

  
  
Ludovic.

Kern Sibbald wrote:


  Hello Ludovic,

Could you send the script as an attachment.  As it came, it was line
wrapped ...

Regards,

Kern

On Thursday 06 July 2006 20:22, Ludovic Strappazon wrote:
  
  
Hello Arno,

This is the script :

#! /bin/sh
# Author : Ludovic Strappazon. [EMAIL PROTECTED]
# Copyright : Kern Sibbald
# Any comment, advice or enhancement are welcome :-)

PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
MYSQL="/usr/bin/mysql -u bacula --password=X"
TMP=/tmp
BACULA=/usr/local/bacula

PROGNAME=`basename $0`
PROGPATH=`echo $0 | sed -e 's,[\\/][^\\/][^\\/]*$,,'`
STATUS=""

. $PROGPATH/utils.sh

print_usage() {
echo "Usage: $PROGNAME -P pool -M media-type -w warning
threshold -c critical threshold [-S]"
}

print_help() {
echo ""
print_usage
echo ""
echo "This plugin checks the space available in the pool against
the space required for the next scheduled backups"
echo "Example : $PROGNAME -P default -M LTO -w 20 -c 10 will
check the default pool, return OK if (available space)  1,20*(required
space), WARNING if 1,20*(required space)  (available space) 
1,10*(required space), and CRITICAL else."
echo ""
echo "With the -S option, it will check the pool named Scratch and
return WARNING instead of CRITICAL if the Scratch pool can save the
situation."
echo "Example : $PROGNAME -P default -M LTO -w 20 -c 10 -S will
check the default pool, return OK if (available space)  1,20*(required
space), WARNING if 1,20*(required space)  (available space) 
1,10*(required space) or if (available space in default and Scratch) 
1,10*(required space)  (available space in default), and CRITICAL
else." echo ""
echo "The evaluation of the space required is done by adding the
biggest backups of the same level than the scheduled jobs"
echo "The available space is evaluated by the number of out of
retention tapes and the average VolBytes of these Full tapes"
echo ""
echo "The Information Status are : \"Required, Available, Volume
Errors\" and \"Will use Scratch pool\" if necessary."
echo ""
echo "I think this plugin should be used in passive mode, and ran by
a RunAfterJob"
exit 3
}

NB_ARGS=$#
SCRATCH=0
while getopts :P:M:w:c:hS OPTION
do
  case $OPTION in
P) POOL="$OPTARG"
   ;;
M) MEDIA_TYPE="$OPTARG"
   ;;
S) SCRATCH=1
   ;;
w) WARNING="$OPTARG"
   ;;
c) CRITICAL="$OPTARG"
   ;;
h) print_help
   exit 3
   ;;
*) print_usage
   exit 3
   ;;
  esac
done
shift $(($OPTIND - 1))

if [ "$NB_ARGS" -ne 8 -a "$NB_ARGS" -ne 9 ]; then
print_revision $PROGNAME 13/06/2006
print_usage
exit 3
fi

LAST_CHECK=`ps -ef | grep check_ba[Cc]ula_pools.sh | awk {'print $5'} |
uniq | wc -l`
if [ "$LAST_CHECK" -gt 1 ]; then
echo "The last check was not complete, you should increase the
check_period."
exit 3
fi

NB_VOLUMES=`$MYSQL  EOF
USE bacula
SELECT COUNT(MediaId) from Media, Pool where Media.PoolId=Pool.PoolId
and Pool.Name="$POOL" AND Inchanger = "1";
EOF`

NB_VOLUMES=`echo $NB_VOLUMES | cut -f 2 -d ' '`

echo "st
1
q" | $BACULA/etc/bconsole | sed -n /Scheduled/,/Running/p | grep Backup

| tr -s [:blank:] | tr '[:blank:]' '@'  ${TMP}/Scheduled.txt

CAPA_REQUIRED=0
for LINE in `cat ${TMP}/Scheduled.txt`
do
  SCHEDULED_JOB=`echo $LINE | awk -F@ '{print $6}'`
  LEVEL=`echo $LINE | awk -F@ '{print $1}' | cut -c 1`

MAX_VOLUME_JOB_FOR_LEVEL=`$MYSQL  EOF
USE bacula
SELECT MAX(JobBytes) from Job, Pool where Level="$LEVEL" AND
Job.Name="$SCHEDULED_JOB" AND Job.PoolId=Pool.PoolId AND
Pool.Name="$POOL"; EOF
`
MAX_VOLUME_JOB_FOR_LEVEL=`echo $MAX_VOLUME_JOB_FOR_LEVEL | cut -f 2 -d '
' `

CAPA_REQUIRED=$[CAPA_REQUIRED+MAX_VOLUME_JOB_FOR_LEVEL]
done

rm ${TMP}/Scheduled.txt


if [ $NB_VOLUMES -gt 0 ]
then

  NB_VOLUMES_OUT_OF_RETENTION=`$MYSQL  EOF
USE bacula
SELECT COUNT(MediaId) from Media, Pool where Media.PoolId=Pool.PoolId
and Pool.Name="$POOL" AND LastWritten  "-00-00 00:00:00" AND
UNIX_TIMESTAMP()-UNIX_TIMESTAMP(LastWritten)Media.VolRetention AND
Inchanger = "1";
EOF
`
  NB_VOLUMES_OUT_OF_RETENTION=`echo $NB_VOLUMES_OUT_OF_RETENTION | cut
-f 2 -d ' '`

NB_VOLUMES_ERROR=`$MYSQL  EOF
USE bacula
SELECT COUNT(MediaId) from Media, Pool where Media.PoolId=Pool.PoolId
and Pool.Name="$POOL" AND VolStatus="Error" AND Inchanger = "1";
EOF
`
NB_VOLUMES_ERROR=`echo $NB_VOLUMES_ERROR | cut -f 2 -d ' '`

AVERAGE_CAPA_VOLUME=`$MYSQL  EOF
USE bacula
SELECT SUM(VolBytes)/COUNT(MediaId) FROM Media where VolStatus="Full"
AND MediaType="$MEDIA_TYPE";
EOF
`

Re: [Bacula-users] bacula TLS

2006-07-07 Thread David Rodriguez Demelos

A bacula user called Dave wrote me the following message:


Hi,
   Do you have a procedure for setting up those tls keys? I'm trying to
find a tutorial on that subject.
   As for your tls issue what OS are you running on and what version of
bacula? The tls error required, but not configured in bacula, suggests
to me that when you compiled and installed bacula or did it from a
distribution package it didn't pull in the tls dependencies. Here's a
way to find out:

ldd `which bacula-dir`

amoung that output you should see the following libs:

libssl.so.4
libcrypto.so.4
libcrypt.so.3

If you don't have those that's at least the first part of the problem.
As for the other errors about config file errors with tls require that
might fix them as well, but i am not sure.
   Please keep me up to date on this issue as i am trying to get tls
going here as well.
Thanks.
Dave.



And my answer is the following:


Hi Dave,

I have used the bacula manual information
http://bacula.org/rel-manual/Bacula_TLS.html
and the following web information
http://www.calivia.com/blog/mike/bacula-with-support-for-tls-encryption

My bacula director machine has installed a Red Hat Enterprise 4 and I use
bacula version
1.38.9.

I have solved some errors putting the next lines in all places that use TLS:

  TLS Key = /etc/bacula/cert.pem
  TLS CA Certificate File = /etc/bacula/cert.pem

(I use the same certificate that I used with TLS Certificate).

Now, when I start bacula, the errors only are:

[EMAIL PROTECTED] bacula]# ./bacula start
Starting the Bacula Storage daemon
07-Jul 11:14 bacula-sd:  Fatal error: TLS required but not configured in
Bacula.Starting
the Bacula File daemon
07-Jul 11:14 bacula-fd:  Fatal error: TLS required but not configured in
Bacula.07-Jul
11:14 bacula-fd: ERROR in filed.c:188 Please correct configuration file:
/etc/bacula/bacula-fd.conf
Starting the Bacula Director daemon
07-Jul 11:14 bacula-dir:  Fatal error: Failed to initialize TLS context for
Director
bacula-dir in /etc/bacula/bacula-dir.conf.
07-Jul 11:14 bacula-dir:  Fatal error: TLS required but not configured in
Bacula.
07-Jul 11:14 bacula-dir:  Fatal error: TLS required but not configured in
Bacula.
07-Jul 11:14 bacula-dir:  Fatal error: TLS required but not configured in
Bacula.
07-Jul 11:14 bacula-dir:  Fatal error: TLS required but not configured in
Bacula.
07-Jul 11:14 bacula-dir ERROR TERMINATION
Please correct configuration file: /etc/bacula/bacula-dir.conf


Furthermore, I tryed   ldd `which bacula-dir`   comand, and the output is
the following:

[EMAIL PROTECTED] ~]# ldd `which bacula-dir`
libmysqlclient_r.so.10 = /usr/lib/mysql/libmysqlclient_r.so.10
(0x00a7e000)
libz.so.1 = /usr/lib/libz.so.1 (0x00a64000)
libpthread.so.0 = /lib/tls/libpthread.so.0 (0x00a5)
libssl.so.4 = /lib/libssl.so.4 (0x0028c000)
libcrypto.so.4 = /lib/libcrypto.so.4 (0x00124000)
libstdc++.so.5 = /usr/lib/libstdc++.so.5 (0x00c01000)
libm.so.6 = /lib/tls/libm.so.6 (0x00a25000)
libgcc_s.so.1 = /lib/libgcc_s.so.1 (0x00b88000)
libc.so.6 = /lib/tls/libc.so.6 (0x008f9000)
libcrypt.so.1 = /lib/libcrypt.so.1 (0x003a2000)
libnsl.so.1 = /lib/libnsl.so.1 (0x00438000)
/lib/ld-linux.so.2 (0x008e)
libgssapi_krb5.so.2 = /usr/lib/libgssapi_krb5.so.2 (0x00de8000)
libkrb5.so.3 = /usr/lib/libkrb5.so.3 (0x00d69000)
libcom_err.so.2 = /lib/libcom_err.so.2 (0x00d64000)
libk5crypto.so.3 = /usr/lib/libk5crypto.so.3 (0x00101000)
libresolv.so.2 = /lib/libresolv.so.2 (0x00b73000)
libdl.so.2 = /lib/libdl.so.2 (0x00a4a000)


The libcrypt.so.3 lib don't appear! :)

Then, how I can solve this problem? Anybody can help me?

Thanks.

David.
-- 
View this message in context: 
http://www.nabble.com/bacula-TLS-tf1785382.html#a5214386
Sent from the Bacula - Users forum at Nabble.com.


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=lnkkid=120709bid=263057dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Bacula privilege beta test patch

2006-07-07 Thread Kern Sibbald
Hello,

As you know, users running Bacula under restricted privileges (i.e. 
user=bacula, group=bacula or disk) have had a number of problems accessing 
the necessary files.  After looking at the source code and several patches 
that were submitted by Dimitri Puzin, it appears that the documentation of 
setgroups() is really quite deficient, which means that the current code does 
not properly initialize all the groups associated with the userid. 

I've now reworked the original code in a way that I think it should now work 
correctly -- correctly setup all the groups associated with the userid 
specified, and add any additional group that may be specified.

Note:  to change the group (-g xxx), you *must* specify the user (i.e. -u 
yyy).  Another way of saying this is that a -g option without the -u option 
will be ignored (I suppose I should make it ABORT). This should cause no 
problem because normally one uses a command line something like 

  bacula-sd -c ... -u bacula -g disk

Since the code now initializes all the groups associated with the user 
specified, the -g disk should no longer be necessary providing that the 
user bacula is configured to be in the disk group.

I would appreciate it if one or more of you could try the patch that I have 
attached to this email (instructions at the top of the patch) and let me know 
if it corrects the problems.  

Best regards,

Kern

  This patch will hopefully solve the problem of the group not
  being correctly initialized when a Bacula daemon does a to
  a new userid or a new groupid.

  It can be applied to most all versions of 1.38.x but in particular
  1.38.11 with the following:

  cd bacula-source
  patch -p0 1.38.11-drop.patch
  make
  make install
  ...

Index: src/lib/bsys.c
===
RCS file: /cvsroot/bacula/bacula/src/lib/bsys.c,v
retrieving revision 1.42.2.4
diff -u -u -b -r1.42.2.4 bsys.c
--- src/lib/bsys.c	22 Dec 2005 21:35:24 -	1.42.2.4
+++ src/lib/bsys.c	7 Jul 2006 08:54:45 -
@@ -8,7 +8,7 @@
  *   Version $Id: bsys.c,v 1.42.2.4 2005/12/22 21:35:24 kerns Exp $
  */
 /*
-   Copyright (C) 2000-2005 Kern Sibbald
+   Copyright (C) 2000-2006 Kern Sibbald
 
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
@@ -602,10 +602,25 @@
  */
 void drop(char *uid, char *gid)
 {
-#ifdef HAVE_GRP_H
-   if (gid) {
+#if   defined(HAVE_PWD_H)
+   struct passwd *passw;
+   if (uid) {
+  if ((passw = getpwnam(uid)) == NULL) {
+ Emsg1(M_ERROR_TERM, 0, _(Could not find specified userid: %s\n), uid);
+  }
+  if (setuid(passw-pw_uid)) {
+ Emsg1(M_ERROR_TERM, 0, _(Could not set specified userid: %s\n), uid);
+  }
+  if (initgroups(passw-pw_name, passw-pw_gid)) {
+ Emsg2(M_ERROR_TERM, 0, _(Could set group=%s for userid=%s\n), 
+passw-pw_gid, uid);
+  }
+   }
+#endif
+
+#if   defined(HAVE_PWD_H)  defined(HAVE_GRP_H)
+   if (uid  gid) {
   struct group *group;
-  gid_t gr_list[1];
 
   if ((group = getgrnam(gid)) == NULL) {
  Emsg1(M_ERROR_TERM, 0, _(Could not find specified group: %s\n), gid);
@@ -613,25 +628,12 @@
   if (setgid(group-gr_gid)) {
  Emsg1(M_ERROR_TERM, 0, _(Could not set specified group: %s\n), gid);
   }
-  gr_list[0] = group-gr_gid;
-  if (setgroups(1, gr_list)) {
- Emsg1(M_ERROR_TERM, 0, _(Could not set specified group: %s\n), gid);
+  if (initgroups(passw-pw_name, group-gr_gid)) {
+ Emsg2(M_ERROR_TERM, 0, _(Could set group=%s for userid=%s\n), 
+group-gr_gid, uid);
   }
}
 #endif
-
-#ifdef HAVE_PWD_H
-   if (uid) {
-  struct passwd *passw;
-  if ((passw = getpwnam(uid)) == NULL) {
- Emsg1(M_ERROR_TERM, 0, _(Could not find specified userid: %s\n), uid);
-  }
-  if (setuid(passw-pw_uid)) {
- Emsg1(M_ERROR_TERM, 0, _(Could not set specified userid: %s\n), uid);
-  }
-   }
-#endif
-
 }
 
 
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=lnkkid=120709bid=263057dat=121642___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Volume Location Management

2006-07-07 Thread Kern Sibbald
Hello Arno,

Nice work.  Your screen shots look really nice.  It think this will be a 
popular feature.  My comments are below:

On Thursday 06 July 2006 23:51, Arno Lehmann wrote:
 Hi,

 as promised, but later than I wanted, I have some sort of a preview of
 the Volume Location Management I'm implementing.

 Basic outline:
 - Tag each volume with a Location.
 - The Location assigned to a volume can be changed in a web interface.
 - A volume can be (temporarily) disabled. This is intended for loading /
 unloading operations, so you can have a catalog representing the actual
 autochanger inventory and still swap volumes without Bacula stumbling.
 - Bacula, as of version 1.40 (or the current development version) will
 respect the Volume disabling AFAIK.
 - Bacula does *not* respect Location tags, for example it will requests
 volumes tagges as off-site storage.

The above is correct, but I would reword it a bit.  Bacula simply does not 
interprete the location tags because the meaning of those tags is defined by 
the user and, as a consequence, Bacula has no idea what is off-site, damaged, 
with currier, in Europe, or any other such tag that you could define.

As long as the volume is disabled or marked archived, Bacula will not use 
those volumes (not totally tested yet, but this is the plan ...).

 - A very basic configuration page is implemented, but it's still lacking
 lots of features.
 - User authentication is implemented through LDAP, different roles can
 be defined. Currently, the user setup itself can only be done manually.
 - Locations can be defined in the web frontend, but needs work.
 - Volume locations can be modified, and the Enabled/Disabled status can
 be set.
 - The appearance of the web front-end could be improved.

 Some screenshots are attached.

 Two questions regarding interaction with Bacula itself:

 I intended the volume disabling / enabling as a temporary setting for
 use during changing the volumes in an autochanger. As such, I intended
 to automatically enable volumes when changing locations, and would have
 suggested to have the Bacula-internal 'update slots' command to
 automatically enable the volumes it finds, too. So, whenever a volume
 status is changed, it would be enabled.

 Does this sound right to you all, or should volume enabling / disabling
 be done purely manually?

No, not entirely.  I don't think that Bacula should automatically enable a 
volume that it finds in the autochanger.  This would mean that the user would 
have no way to disable the volume, then do other operations.

However, I could easily imagine an option to update slots that says 
enable=yes|no that would automatically enable or disable all the Volumes 
found in the autochanger.  This will permit the user to optionally mark all 
the Volumes in the magazine disabled prior to taking them offsite, and mark 
them all enabled when bringing them back on site.   Coupled with the options 
to the slots keyword, you can apply the enable/disable to any or all volumes.


 Then, I implemented a logging function so each volumes life-cycle can be
 tracked. This would be most useful if Bacula itself, when finding a
 volume during 'update slots', logged this event, too.

 This would obviously require a new feature in Bacula, but I would
 suggest to handle it by always writing the log entries to the
 corresponding catalog table, but simply ignoring errors. Thus, if you
 don't want the log, simply don't create the table. If the table exists,
 the log will be written.

 Does this sound reasonable?

Yes, but it is getting a bit late in the development cycle to add significant 
new features such as this.  In what I show below, the new Log table would be 
required, and it would only be used if the user directs specific messages to 
it.  This feature would be simply a new message destination (catalog) and one 
or more new message classes (such as INFO, FATAL, ERROR, ...)

Also, it brings up the question about what logging means in your above 
paragraphs.  If we are talking about the current messaging system, then we 
would probably need a new message class, or it could simply be INFO, then 
since we are talking about logging info to the database, why not allow the 
user to direct any message/messages with the current mechanism to the 
database.  This means that the full Job Report as now produced could be 
written to the database -- something users have requested in the past.  Since 
Job Reports are tied to a JobId, the log could easily be pruned when the File 
records are pruned for the job.

To be more specific, here is the current list of message classes:

   M_ABORT = 1,   /* MUST abort immediately */
   M_DEBUG,   /* debug message */
   M_FATAL,   /* Fatal error, stopping job */
   M_ERROR,   /* Error, but recoverable */
   M_WARNING, /* Warning message */
   M_INFO,/* 

[Bacula-users] New French speaking Bacula-users list

2006-07-07 Thread Kern Sibbald
Hello,

I am pleased to announce that there is now a new Bacula French speaking email 
list equivalent to the bacula-users list.  It is called bacula-users-fr, and 
can now be subscribed to at:

  http://lists.sourceforge.net/mailman/listinfo/bacula-users-fr

Also, Alexandre Baron alexandre.baron at dalibo dot com
has begun an effort to translate the Bacula Website into French.  When it is 
completed, it will be posted on our official web site.  In the mean time, 
anyone who would like to see his work in progress can see:
 
  http://balex.homeip.net/bacula/fr/

Also, Eric Bollengier is working on translating the Bacula messages into 
French.
 
Finally, Ludovic Strappazon has made nice progress in the monster task of 
translating the manual in to French, and I have now posted it to the Bacula 
web site on the same page as the rest of the documentation.  When the 
official French Bacula site is put into place, the current links will be 
moved into the French pages ...

Thank you very much to everyone in the French community for their support of 
Bacula, and I hope to see all these works come to fruition and a growing 
community of French speakers using the new list, who may have previously had 
some difficulties with English.

Best regards,

Kern

PS: The new list is not yet mentioned in the Home Page email lists, but I will 
get to that in the near future ...

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=lnkkid=120709bid=263057dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Run waiting job now.

2006-07-07 Thread Dave .

Hi,

Newbie question, so apologies in advance.  I need to push the director's job 
queue and run the scheduled backup now (ie. xx is waiting for its start 
time).  Is it (a) possible to do this and (b) also update the director's 
schedule so that the backup isn't run later at the scheduled time?


Only just started using bacula, but am really impressed with it, execellent 
software IMHO.


Thanks,

Dave

_
Windows Live™ Messenger has arrived. Click here to download it for free! 
http://imagine-msn.com/messenger/launch80/?locale=en-gb



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=lnkkid=120709bid=263057dat=121642___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Usability with multiple catalogs

2006-07-07 Thread Daniel Bloemer
Hi,

I am planning to use multiple catalogs for different pools. While
creating the needed databases, I realised three points, what would be a
real pushup in usability.

1. I have to start three scripts to create a catalog. Every script
itself starts another script, depending on the DBMS I use. I usually
skip the first script, and start directly the scripts for my DBMS. But
it would be much easier to have one script, maybe called
create_catalog.sh, which checks for the used DMBS and then starts the
three scripts in a row.

2. The databasename bacula is hardcoded in the scripts for creating
the database. It is useful to have a default, but when want to I create
another database for a different catalog, I have to change the scripts.
Giving the database name as parameter is IMHO more useful.

3. Making backups of the database. I can give the database-name as
parameter to the delivered make_catalog_backup.sh-script. To create a
generic way of backing up a catalog, it would be useful to extract the
parameters databasename, databaseuser, etc from the given catalog for
the backupjob. In that case I don't have to worry about keeping the
credentials up to date in two places.

Any comments?

Regards Daniel
-- 
Daniel Bloemer - BusinessCoDe GmbH
Systemadministration and Support
Phone: +49 (0)228 / 28925-43
http://www.business-code.de

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=lnkkid=120709bid=263057dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] remote tapes

2006-07-07 Thread Ryan Novosielski
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

As far as I know, it runs on most systems (with the possible exception
of Windows, at the moment, but I know that some good progress was made
on that rather recently).

I have told Kern that I can offer an HP-UX test environment to him, I
just so far have not gotten back to him to set up anything more
specific. slaps own hand

Good to hear that it's working though -- there's a lot of HP-UX laying
around my workplace (though we use HP Data Storage protector on it thus
far).

Bart Schelstraete wrote:
 Hi,
 
 I always thought that only the FD was working on HP-UX.
 I tried to compile the SD on HP-UX, and indeed this works!
 (even the director)
 
 
 Bart
 
 
 
 On 7/5/06, Ryan Novosielski [EMAIL PROTECTED] wrote:
 It isn't? News to me... does it not compile?
 
 Bart Schelstraete wrote:
 Hi,
 
 We have some tape (DDS) devices connected to HP-UX machines.
 Because the SD is not supported on HP-UX, we cannot configure a SD
 on that.
 Is there another way so that we can also store backups to the tapes
 connected to an HP-UX box?
 
 
 
 B
 


- --
  _  _ _  _ ___  _  _  _
 |Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Systems Programmer III
 |$| |__| |  | |__/ | \| _| |[EMAIL PROTECTED] - 973/972.0922 (2-0922)
 \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFErmH1mb+gadEcsb4RAnXbAJ0eYJGGwAW/VM9BwFXwJZ5fEee7KACg1DWW
ldCgRCBGKNfyTpMdOMlUPN4=
=Bc9f
-END PGP SIGNATURE-

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=lnkkid=120709bid=263057dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Autochanger: Unloading/Reloading tape for follow-up job - Bad autochanger loaded drive 0 command: ???

2006-07-07 Thread Christoff Buch

Hi Arno

This has taken a while but here come
mtx and bacula-sd.conf:





As to the btape test results:
I can't find my files with the results
at the moment (oops...), but I have the print-outs here:
I reviewed them again (as I already
did when I started with the autochanger) and there is really not a single
error whatsoever.
I did the normal test for the drive
as such and the test for the autochanger. Both succeded fine.

If you can find anything, answers would
be very appreciated!

Thanks again + Best Regards,

Christoff Buch

[EMAIL PROTECTED] wrote on
29.06.2006 23:06:27:

 Hello,
 
 On 6/28/2006 11:23 AM, Christoff Buch wrote:
  
  Hello Users!
  
  I hope someone with autochanger expierience can help me with
my 
  concerns
  First of all my environment:
  
  - bacula 1.38.9 (from source)
  - mtx 1.2.18rel (from rpm)
  - SuSE 9.0 Kernel 2.4.21-99
  - Exabyte 221L TapeLibrary (21 slots in 3 Magazines, Barcodereader,
1 
  IBM Ultrium LTO-2 drive)
 
 First question: btape tests?
 
  I don't think problem is in configure-options nor in bacula-xxx.confs

  since backups succeed. So none of them here.
  I just get those strange statements in log over and over again,
and I'm 
  not sure wether someday this may lead to a crash.
  Concerning the Bad autochanger loaded drive 0 command
I guess it 
  might be a timing problem, but can't decide wether it's the mtx-changer

  or bacula itself. Do you know anything?
  (I'll add my mtx-changer)
 
 I can't read it as it claims to be a .doc file and I'm too lazy to
read 
 list mail in other formats than ASCII ;-)
 
 I think two things are most likely the reason for your problems: 
 Configuration (use btape and post the SD config) and mtx-changer,

 especially concerning timing of autoloader operations.
 
 Arno
 
  Concerning the Unloading / Reloading tape for follow-up
job: Just 
  why??? It's just sometimes happening, not each time!
  
  Today both happened in once, so here is the part of my log:
  
   JobId:   
 155
   Job:   
  Job1_.2006-06-27_22.12.15
   Backup Level:  Full
   Client:   
 Client1 Windows Server 2003,MVS,NT 5.2.3790
   FileSet:   
FileSet1 2006-06-13 20:16:29
   Pool:   
  Daily
   Storage:   
TapeLibrary
   Scheduled time: 27-Jun-2006
22:12:10
   Start time:  
27-Jun-2006 22:12:20
   End time:   
28-Jun-2006 00:55:04
   Elapsed time:  2 hours
42 mins 44 secs
   Priority:   
10
   FD Files Written:3,903
   SD Files Written:3,903
   FD Bytes Written:122,954,473,051
(122.9 GB)
   SD Bytes Written:122,955,147,172
(122.9 GB)
   Rate:   
  12592.6 KB/s
   Software Compression:  None
   Volume name(s): TUE001L2
   Volume Session Id:   1
   Volume Session Time:  1151424310
   Last Volume Bytes:   123,046,455,465
(123.0 GB)
   Non-fatal FD errors:  0
   SD Errors:   0
   FD termination status: OK
   SD termination status: OK
   Termination:  Backup
OK
  
  28-Jun 00:55 heem-dir: Begin pruning Jobs.
  28-Jun 00:55 heem-dir: No Jobs found to prune.
  28-Jun 00:55 heem-dir: Begin pruning Files.
  28-Jun 00:55 heem-dir: No Files found to prune.
  28-Jun 00:55 heem-dir: End auto prune.
  
  28-Jun 00:55 heem-dir: Start Backup JobId 156, 
  Job2_.2006-06-27_23.00.00
  *28-Jun 00:55 heem-sd: 3301 Issuing autochanger loaded
drive 0 command.*
  *28-Jun 00:55 heem-sd: 3991 Bad autochanger loaded drive
0 command: 
  ERR=Operation not permitted.*
  28-Jun 00:55 heem-sd: 3301 Issuing autochanger loaded drive
0 command.
  28-Jun 00:55 heem-sd: 3302 Autochanger loaded drive 0,
result is Slot 3.
  *28-Jun 00:55 heem-sd: 3307 Issuing autochanger unload
slot 3, drive 0 
  command.*
  *28-Jun 00:55 heem-sd: 3304 Issuing autochanger load slot
3, drive 0 
  command.*
  28-Jun 00:56 heem-sd: 3305 Autochanger load slot 3, drive
0, status is 
  OK.
  28-Jun 00:56 heem-sd: 3301 Issuing autochanger loaded drive
0 command.
  28-Jun 00:56 heem-sd: 3302 Autochanger loaded drive 0,
result is Slot 3.
  28-Jun 00:56 heem-sd: Volume TUE001L2 previously
written, moving to 
  end of data.
  28-Jun 00:56 heem-sd: Ready to append to end of Volume TUE001L2
at 
  file=124.
  28-Jun 01:52 heem-dir: Bacula 1.38.9 (02May06): 28-Jun-2006 01:52:29
   JobId:   
 156
   Job:   
  Job2_.2006-06-27_23.00.00
   Backup Level:  Full
   Client:   
 Client2 i686-pc-linux-gnu,suse,9.0
   FileSet:   
FileSet2 2006-06-15 00:45:31
   Pool:   
  Daily
   Storage:   
TapeLibrary
   Scheduled time: 27-Jun-2006
23:00:00
   Start time:  
28-Jun-2006 00:55:08
   End time:   
28-Jun-2006 01:52:29
   Elapsed time:  57 mins
21 secs
   Priority:   
10
   FD Files Written:110,844
  SD Files Written:110,844
   FD Bytes Written:28,747,087,799
(28.74 GB)
   SD Bytes Written:28,768,112,206
(28.76 GB)
   Rate:   
  8354.3 KB/s
   Software Compression:  None
   Volume name(s): TUE001L2
   Volume Session Id:   2
   Volume Session Time:  

[Bacula-users] Clear Terminated Jobs from client

2006-07-07 Thread Kessia Pinheiro
Hi all,

I'm redoing a instalation and when do in bconsole status client,
show me many Terminated Jobs from my client (when i do tests before).
So, i want clean that, but how?


***status client
Automatically selected Client: maragogipe-fd
Connecting to Client maragogipe-fd at 192.168.0.12:9102

maragogipe-fd Version: 1.38.10 (08 June 2006)  i686-redhat-linux-gnu
redhat (Heidelberg)
Daemon started 07-Jul-06 12:04, 0 Jobs run since started.

Terminated Jobs:
 JobId  Level Files Bytes  Status   FinishedName
==
17  Full  4,047 53,308,508 OK   05-Jul-06 12:01 maragogipe
18  Full  1,197 64,780,152 OK   05-Jul-06 12:40 maragogipe
19  Sinc  0  0 Error06-Jul-06 10:44 maragogipe
20  Full  0  0 Cancel   06-Jul-06 14:46 maragogipe
21  Full  1,197 64,780,152 OK   06-Jul-06 15:29 maragogipe
22  Sinc  1  0 OK   06-Jul-06 15:30 maragogipe
23  Sinc  2  5,184,200 OK   06-Jul-06 15:34 maragogipe
24  Full103  8,950,913 OK   06-Jul-06 16:31 maragogipe
25  Full103  8,950,913 OK   06-Jul-06 16:39 maragogipe
 1  Full  0  0 Cancel   07-Jul-06 10:11 maragogipe

Running Jobs:
Director connected at: 07-Jul-06 12:39
No Jobs running.


-- 
Kessia Pinheiro
Gmail+GTalk/Email: kessiapinheiro [at] gmail [dot] com
Linux Counter User #389695 [http://counter.li.org]

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=lnkkid=120709bid=263057dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Clear Terminated Jobs from client

2006-07-07 Thread Ryan Novosielski
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Delete them if you don't want them to show up.

* delete jobid=...
  _  _ _  _ ___  _  _  _
 |Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Systems Programmer III
 |$| |__| |  | |__/ | \| _| |[EMAIL PROTECTED] - 973/972.0922 (2-0922)
 \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630


Kessia Pinheiro wrote:
 Hi all,

 I'm redoing a instalation and when do in bconsole status client,
 show me many Terminated Jobs from my client (when i do tests before).
 So, i want clean that, but how?


 ***status client
 Automatically selected Client: maragogipe-fd
 Connecting to Client maragogipe-fd at 192.168.0.12:9102

 maragogipe-fd Version: 1.38.10 (08 June 2006)  i686-redhat-linux-gnu
 redhat (Heidelberg)
 Daemon started 07-Jul-06 12:04, 0 Jobs run since started.

 Terminated Jobs:
  JobId  Level Files Bytes  Status   FinishedName
 ==
 17  Full  4,047 53,308,508 OK   05-Jul-06 12:01 maragogipe
 18  Full  1,197 64,780,152 OK   05-Jul-06 12:40 maragogipe
 19  Sinc  0  0 Error06-Jul-06 10:44 maragogipe
 20  Full  0  0 Cancel   06-Jul-06 14:46 maragogipe
 21  Full  1,197 64,780,152 OK   06-Jul-06 15:29 maragogipe
 22  Sinc  1  0 OK   06-Jul-06 15:30 maragogipe
 23  Sinc  2  5,184,200 OK   06-Jul-06 15:34 maragogipe
 24  Full103  8,950,913 OK   06-Jul-06 16:31 maragogipe
 25  Full103  8,950,913 OK   06-Jul-06 16:39 maragogipe
  1  Full  0  0 Cancel   07-Jul-06 10:11 maragogipe
 
 Running Jobs:
 Director connected at: 07-Jul-06 12:39
 No Jobs running.
 

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (MingW32)

iD8DBQFEroSjmb+gadEcsb4RAr97AJ9P4sYtFxaBvvvJN1wTpajvRMipfQCgyBp/
t7mdhIk0DVCiHSZu+pJVbsg=
=KsU+
-END PGP SIGNATURE-


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=lnkkid=120709bid=263057dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] gnome-console,DVD and Storage

2006-07-07 Thread jkiiru
Hi,

im new in term of using bacula;

i would kindly request for your help in ;

1. Configuring storage fd,
2. backing up on DVD
3. how to use gnome

Thank you;

James


This message was sent using IMP, the Internet Messaging Program.



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=lnkkid=120709bid=263057dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bacula.spec file and CentOS 4.3

2006-07-07 Thread Michael Nelson
On Thu, July 6, 2006 8:52 pm, Lance A. Brown said:
 Greetings,

 I just built this bacula-1.38.11-3.src.rpm on my CentOS 4.3 server the
 command below and have been running it for several days without a problem.

 rpmbuild -ba \
  --define build_centos4 1 \
  --define build_mysql4 1 \
  bacula.spec

 I didn't edit the spec file at all.  Perhaps you confused things in the
 spec file?

Apparently I did, because I just followed your example and it worked
perfectly.

Some people shouldn't have access to vi.

Thanks!
Michael


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=lnkkid=120709bid=263057dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Kern in Munich?

2006-07-07 Thread Kern Sibbald
On Thursday 06 July 2006 09:32, Ludovic Strappazon wrote:
 Hi,

  On 7/4/2006 10:03 PM, Kern Sibbald wrote:
  ...
 
  Bottom line: if you guys are still interested, my wife would be
  interested in making a trip to Munich in early December for the marché
  de Noël (Christmas shopping).  I would *very* much enjoy meeting as
  many German users as possible, but my German speaking abilities are
  rather poor at the moment ...

 Did your wife consider the marché de Noël de Strasbourg ? So you could
 speak French and learn German, and even Alsacian ! ;-)

Well, maybe in 2007.  99% of what I speak *is* French.   My wife says 
Alsacien n'est pas ce qui m'attire le plus, probably because she is 
currently being subjected to English, German, and Spanish ... :-)

We had planned to go to Munich in early December 2005, but it was postponed 
because of my second back operation, so that deserves a certain priority ...


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=lnkkid=120709bid=263057dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Problem with Autochanger on Bacula 1.38.11

2006-07-07 Thread Kern Sibbald
On Thursday 06 July 2006 12:55, Alan Brown wrote:
 On Thu, 6 Jul 2006, Arno Lehmann wrote:

 (re mtx-changer)

  Is the changer script still using a preferred timeout by default??
 
  The current cvs version, at least, uses a default timeout of 15 seconds
  and _not_ wait_for_drive.

 Kern, is there any compelling reason for not making wait_for_drive the
 default?

The problem is that it is system dependent, and so on some systems would 
likely cause it to go into an infinite loop.  If someone really wanted to 
work on it, and make the code test for systems where it is known to work, 
that would be a good solution.

By the way, as I mentioned, I my spam filter went kaboom a week ago, so I am 
getting a lot of spam, and worse, my ham (I dislike that term) is ending up 
in the spam folder, so until I get this all sorted out, if you want to be 
*sure* I see your email in a timely fashion, please copy me directly.

Regards,

Kern

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=lnkkid=120709bid=263057dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Upgrade from 1.36.3 to latest question

2006-07-07 Thread Kern Sibbald
On Thursday 06 July 2006 19:43, Martin Simmons wrote:
  On Thu, 06 Jul 2006 09:32:14 -0400, Michael Erdely said:
 
  Hi,
 
  I'm in the process of planning an upgrade from 1.36.3 on FC3 to 1.36.11
  on FC5 (will upgrade Fedora, then Bacula).
 
  I was wondering if the upgrade will cause any Incremental jobs to be
  upgraded to Full jobs.  Anyone?

 If the catalog survives the upgrade and you don't change the fileset
 definitions, then thee jobs will remain as Incremental.

If I remember right, there is a mandatory change of FileSet syntax between 
1.36.3 and 1.38?  However, my memory has been proven faultive lately ...


 Of course the old full backups of the OS partitions will be pretty stale,
 so doing a manual full backup is advisable.

 __Martin

 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=lnkkid=120709bid=263057dat=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=lnkkid=120709bid=263057dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Error in restore on Windows 2003 server client

2006-07-07 Thread BillieGDJoe
Hi,



I'm testing Bacula, so I done backup of my Windows2k3 Server and all works 
fine. When I try to restore some files/directories that I delete for tests 
purposes and I know that was in backup, I get this error:

07-Jul 15:47 webwin3-fd: webwin3-restore.2006-07-07_15.42.29 Error: 
c:\cygwin\home\kern\bacula\k\src\win32\findlib\../../findlib/create_file.c:340 
Could not open C:/Program Files/SWsoft/Install/: ERR=The process cannot access 
the file because it is being used by another process.

07-Jul 15:43 backupserver-dir: webwin3-restore.2006-07-07_15.42.29 Error: 
Bacula 1.38.10 (08Jun06): 07-Jul-2006 15:43:40





I'm almost sure that no one process is using thats files, but I'm still get 
this errors. Any ideas ?? Here is my configuration file (dir):


#
# DIRECTOR SECTION
#
Director {# define myself
  Name = backupserver-dir
  Description = Backup Server
  DIRport = 9101# where we listen for UA connections
  QueryFile = /etc/bacula/query.sql
  WorkingDirectory = /var/bacula/working
  PidDirectory = /var/run
  Maximum Concurrent Jobs = 1
  Password = asdasd # Console password
  Messages = Daemon
}
#
# CATALOG SECTION
#
Catalog {
  Name = Catalog
  dbname = bacula; user = bacula; password = 
}
#
# JOBS SECTION - BACKUP CATALOG
#
Job {
  Name = backupcatalog
  Enabled = yes
  Client = backupserver-fd
  Type = Backup
  Level = Full
  FileSet=Catalog
  Storage = backupserver-sd
  Schedule = WeeklyFull
  # This creates an ASCII copy of the catalog
  RunBeforeJob = /etc/bacula/make_catalog_backup bacula bacula
  # This deletes the copy of the catalog
  RunAfterJob  = /etc/bacula/delete_catalog_backup
  Write Bootstrap = /var/bacula/working/BackupCatalog.bsr
  Messages = Standard
  Pool = catalog
  Priority = 11   # run after main backup
}

FileSet {
  Name = Catalog
  Include {
Options {
  signature = MD5
  compression = GZIP5
}
File = /var/bacula/working/bacula.sql
  }
}
#
# JOBS SECTION - BACKUP WEBWIN3
#
Job {
  Name = webwin3
  Enabled = yes
  Client = webwin3-fd
  Type = Backup
  FileSet=webwin3
  Storage = backupserver-sd
  Schedule = WeeklyCicle
  Write Bootstrap = /var/bacula/working/webwin3.bsr
  Messages = Standard
  Pool = webwin3
  Priority = 11
}

FileSet {
  Name = webwin3
  Enable VSS = yes
  Include {
Options {
  signature = MD5
  compression = GZIP5
}
File = C:/Inetpub/vhosts
File = C:/Program Files/SWsoft/
File = C:/WINDOWS/system32/inetsrv/MetaBase.xml
  }
}

Job {
  Name = webwin3-restore
  Type = Restore
  Client = webwin3-fd
  FileSet = webwin3
  Storage = backupserver-sd
  Pool = webwin3
  Messages = Standard
}
#
# SCHEDULE SECTION
#
Schedule {
  Name = WeeklyCicle
  Run = Incremental mon-sat at 23:00
  Run = Full sat at 23:00
}

Schedule {
  Name = WeeklyFull
  Run = Full sun at 23:00
}
#
# CLIENT SECTION - LOCALHOST
#
Client {
  Name = backupserver-fd
  Address = backupserver
  FDPort = 9102
  Catalog = Catalog
  Password = asdasdasdasd  # password for FileDaemon
  File 

Re: [Bacula-users] remote tapes

2006-07-07 Thread Kern Sibbald
On Friday 07 July 2006 15:30, Ryan Novosielski wrote:
 As far as I know, it runs on most systems (with the possible exception
 of Windows, at the moment, but I know that some good progress was made
 on that rather recently).

 I have told Kern that I can offer an HP-UX test environment to him, I
 just so far have not gotten back to him to set up anything more
 specific. slaps own hand

Not getting back to me is definitely not the problem.  The real problem is 
that however much I enjoy working with new systems, I just no longer have the 
time to do it personally.  Many thanks for the offer though.


 Good to hear that it's working though -- there's a lot of HP-UX laying
 around my workplace (though we use HP Data Storage protector on it thus
 far).

 Bart Schelstraete wrote:
  Hi,
 
  I always thought that only the FD was working on HP-UX.
  I tried to compile the SD on HP-UX, and indeed this works!
  (even the director)
 
 
  Bart
 
 
 
  On 7/5/06, Ryan Novosielski [EMAIL PROTECTED] wrote:
  It isn't? News to me... does it not compile?
 
  Bart Schelstraete wrote:
  Hi,
 
  We have some tape (DDS) devices connected to HP-UX machines.
  Because the SD is not supported on HP-UX, we cannot configure a SD
 
  on that.
 
  Is there another way so that we can also store backups to the tapes
  connected to an HP-UX box?
 
 
 
  B

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=lnkkid=120709bid=263057dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] remote tapes

2006-07-07 Thread Ryan Novosielski
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Kern Sibbald wrote:
 On Friday 07 July 2006 15:30, Ryan Novosielski wrote:
 As far as I know, it runs on most systems (with the possible
 exception of Windows, at the moment, but I know that some good
 progress was made on that rather recently).
 
 I have told Kern that I can offer an HP-UX test environment to him,
 I just so far have not gotten back to him to set up anything more 
 specific. slaps own hand
 
 Not getting back to me is definitely not the problem.  The real
 problem is that however much I enjoy working with new systems, I just
 no longer have the time to do it personally.  Many thanks for the
 offer though.

It did sound like you were interested at the time:

 The machine I'm attempting to install it on could be used for testing
 by me or by you, if it was desireable. It is slow and old, but the
 software is current.

Thanks for the offer. Speed is not essential.  I would like to see
Bacula working on as many OSes (such as HP) as possible.

Have you tried turning off HAVE_IPV6 in the src/config.h file as I
suggested?

...at any rate, this reminds me that *I* never got it compiled, so I'm
curious if Bart ran into this problem. I'm guessing not?

=R

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (MingW32)

iD8DBQFErrvYmb+gadEcsb4RApE5AKC0Rn4OygzV1Xp+VxAvbJKh/V7/mQCgqs/9
yJQQ7ZPgqJKPMHmMbZpkSaI=
=KVME
-END PGP SIGNATURE-


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=lnkkid=120709bid=263057dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] [Bacula-devel] Bacula privilege beta test patch

2006-07-07 Thread Martin Simmons
 On Fri, 7 Jul 2006 11:41:22 +0200, Kern Sibbald said:
 
 As you know, users running Bacula under restricted privileges (i.e. 
 user=bacula, group=bacula or disk) have had a number of problems accessing 
 the necessary files.  After looking at the source code and several patches 
 that were submitted by Dimitri Puzin, it appears that the documentation of 
 setgroups() is really quite deficient, which means that the current code does 
 not properly initialize all the groups associated with the userid. 
 
 I've now reworked the original code in a way that I think it should now work 
 correctly -- correctly setup all the groups associated with the userid 
 specified, and add any additional group that may be specified.
 
 Note:  to change the group (-g xxx), you *must* specify the user (i.e. -u 
 yyy).  Another way of saying this is that a -g option without the -u option 
 will be ignored (I suppose I should make it ABORT). This should cause no 
 problem because normally one uses a command line something like 
 
   bacula-sd -c ... -u bacula -g disk
 
 Since the code now initializes all the groups associated with the user 
 specified, the -g disk should no longer be necessary providing that the 
 user bacula is configured to be in the disk group.
 
 I would appreciate it if one or more of you could try the patch that I have 
 attached to this email (instructions at the top of the patch) and let me know 
 if it corrects the problems.  

I think it won't work in the order you've written it.  All calls to
initgroups() must occur before setuid(), because otherwise it won't have
permission (unless uid is root).

Also, maybe the call to initgroups() should be inside #if HAVE_GRP_H?

__Martin

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=lnkkid=120709bid=263057dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Error in restore on Windows 2003 server client

2006-07-07 Thread BillieGDJoe
Hi,



I'm testing Bacula, so I done backup of my Windows2k3 Server and all works 
fine. When I try to restore some files/directories that I delete for tests 
purposes and I know that was in backup, I get this error:

07-Jul 15:47 webwin3-fd: webwin3-restore.2006-07-07_15.42.29 Error: 
c:\cygwin\home\kern\bacula\k\src\win32\findlib\../../findlib/create_file.c:340 
Could not open C:/Program Files/SWsoft/Install/: ERR=The process cannot access 
the file because it is being used by another process.

07-Jul 15:43 backupserver-dir: webwin3-restore.2006-07-07_15.42.29 Error: 
Bacula 1.38.10 (08Jun06): 07-Jul-2006 15:43:40





I'm almost sure that no one process is using thats files, but I'm still get 
this errors. Any ideas ?? Here is my configuration file (dir):


#
# DIRECTOR SECTION
#
Director {# define myself
  Name = backupserver-dir
  Description = Backup Server
  DIRport = 9101# where we listen for UA connections
  QueryFile = /etc/bacula/query.sql
  WorkingDirectory = /var/bacula/working
  PidDirectory = /var/run
  Maximum Concurrent Jobs = 1
  Password = asdasd # Console password
  Messages = Daemon
}
#
# CATALOG SECTION
#
Catalog {
  Name = Catalog
  dbname = bacula; user = bacula; password = 
}
#
# JOBS SECTION - BACKUP CATALOG
#
Job {
  Name = backupcatalog
  Enabled = yes
  Client = backupserver-fd
  Type = Backup
  Level = Full
  FileSet=Catalog
  Storage = backupserver-sd
  Schedule = WeeklyFull
  # This creates an ASCII copy of the catalog
  RunBeforeJob = /etc/bacula/make_catalog_backup bacula bacula
  # This deletes the copy of the catalog
  RunAfterJob  = /etc/bacula/delete_catalog_backup
  Write Bootstrap = /var/bacula/working/BackupCatalog.bsr
  Messages = Standard
  Pool = catalog
  Priority = 11   # run after main backup
}

FileSet {
  Name = Catalog
  Include {
Options {
  signature = MD5
  compression = GZIP5
}
File = /var/bacula/working/bacula.sql
  }
}
#
# JOBS SECTION - BACKUP WEBWIN3
#
Job {
  Name = webwin3
  Enabled = yes
  Client = webwin3-fd
  Type = Backup
  FileSet=webwin3
  Storage = backupserver-sd
  Schedule = WeeklyCicle
  Write Bootstrap = /var/bacula/working/webwin3.bsr
  Messages = Standard
  Pool = webwin3
  Priority = 11
}

FileSet {
  Name = webwin3
  Enable VSS = yes
  Include {
Options {
  signature = MD5
  compression = GZIP5
}
File = C:/Inetpub/vhosts
File = C:/Program Files/SWsoft/
File = C:/WINDOWS/system32/inetsrv/MetaBase.xml
  }
}

Job {
  Name = webwin3-restore
  Type = Restore
  Client = webwin3-fd
  FileSet = webwin3
  Storage = backupserver-sd
  Pool = webwin3
  Messages = Standard
}
#
# SCHEDULE SECTION
#
Schedule {
  Name = WeeklyCicle
  Run = Incremental mon-sat at 23:00
  Run = Full sat at 23:00
}

Schedule {
  Name = WeeklyFull
  Run = Full sun at 23:00
}
#
# CLIENT SECTION - LOCALHOST
#
Client {
  Name = backupserver-fd
  Address = backupserver
  FDPort = 9102
  Catalog = Catalog
  Password = asdasdasdasd  # password for FileDaemon
  File 

Re: [Bacula-users] remote tapes

2006-07-07 Thread Kern Sibbald
On Friday 07 July 2006 21:54, Ryan Novosielski wrote:
 Kern Sibbald wrote:
  On Friday 07 July 2006 15:30, Ryan Novosielski wrote:
  As far as I know, it runs on most systems (with the possible
  exception of Windows, at the moment, but I know that some good
  progress was made on that rather recently).
 
  I have told Kern that I can offer an HP-UX test environment to him,
  I just so far have not gotten back to him to set up anything more
  specific. slaps own hand
 
  Not getting back to me is definitely not the problem.  The real
  problem is that however much I enjoy working with new systems, I just
  no longer have the time to do it personally.  Many thanks for the
  offer though.

 It did sound like you were interested at the time:

I am always interested, but sometimes not very realistic about what I can do.

  The machine I'm attempting to install it on could be used for testing
  by me or by you, if it was desireable. It is slow and old, but the
  software is current.
 
 Thanks for the offer. Speed is not essential.  I would like to see
 Bacula working on as many OSes (such as HP) as possible.
 
 Have you tried turning off HAVE_IPV6 in the src/config.h file as I
 suggested?

 ...at any rate, this reminds me that *I* never got it compiled, so I'm
 curious if Bart ran into this problem. I'm guessing not?

 =R

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=lnkkid=120709bid=263057dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] [Bacula-devel] Bacula privilege beta test patch

2006-07-07 Thread Kern Sibbald
On Friday 07 July 2006 22:04, Martin Simmons wrote:
  On Fri, 7 Jul 2006 11:41:22 +0200, Kern Sibbald said:
 
  As you know, users running Bacula under restricted privileges (i.e.
  user=bacula, group=bacula or disk) have had a number of problems
  accessing the necessary files.  After looking at the source code and
  several patches that were submitted by Dimitri Puzin, it appears that the
  documentation of setgroups() is really quite deficient, which means that
  the current code does not properly initialize all the groups associated
  with the userid.
 
  I've now reworked the original code in a way that I think it should now
  work correctly -- correctly setup all the groups associated with the
  userid specified, and add any additional group that may be specified.
 
  Note:  to change the group (-g xxx), you *must* specify the user (i.e. -u
  yyy).  Another way of saying this is that a -g option without the -u
  option will be ignored (I suppose I should make it ABORT). This should
  cause no problem because normally one uses a command line something like
 
bacula-sd -c ... -u bacula -g disk
 
  Since the code now initializes all the groups associated with the user
  specified, the -g disk should no longer be necessary providing that the
  user bacula is configured to be in the disk group.
 
  I would appreciate it if one or more of you could try the patch that I
  have attached to this email (instructions at the top of the patch) and
  let me know if it corrects the problems.

 I think it won't work in the order you've written it.  All calls to
 initgroups() must occur before setuid(), because otherwise it won't have
 permission (unless uid is root).

Perhaps you are right, but then I would consider it an OS bug since any user 
should have the permission to put himself into all the groups to which he 
belongs.  As I mentioned above, in researching this, I looked carefully at 
the patch that Dimitri Puzin submitted, and he does it in the same order as I 
have (or probably more correctly stated, I did it in the same order that he 
did).


 Also, maybe the call to initgroups() should be inside #if HAVE_GRP_H?

Yes, this is a good idea.  I have put the whole thing in one big #ifdef.


 __Martin

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=lnkkid=120709bid=263057dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] [Bacula-devel] Bacula privilege beta test patch

2006-07-07 Thread Kern Sibbald
Well, I just took the time to test the patch (should have before), and it 
blows up in lots of ways.  Please for now ignore the patch ...

On Friday 07 July 2006 22:04, Martin Simmons wrote:
  On Fri, 7 Jul 2006 11:41:22 +0200, Kern Sibbald said:
 
  As you know, users running Bacula under restricted privileges (i.e.
  user=bacula, group=bacula or disk) have had a number of problems
  accessing the necessary files.  After looking at the source code and
  several patches that were submitted by Dimitri Puzin, it appears that the
  documentation of setgroups() is really quite deficient, which means that
  the current code does not properly initialize all the groups associated
  with the userid.
 
  I've now reworked the original code in a way that I think it should now
  work correctly -- correctly setup all the groups associated with the
  userid specified, and add any additional group that may be specified.
 
  Note:  to change the group (-g xxx), you *must* specify the user (i.e. -u
  yyy).  Another way of saying this is that a -g option without the -u
  option will be ignored (I suppose I should make it ABORT). This should
  cause no problem because normally one uses a command line something like
 
bacula-sd -c ... -u bacula -g disk
 
  Since the code now initializes all the groups associated with the user
  specified, the -g disk should no longer be necessary providing that the
  user bacula is configured to be in the disk group.
 
  I would appreciate it if one or more of you could try the patch that I
  have attached to this email (instructions at the top of the patch) and
  let me know if it corrects the problems.

 I think it won't work in the order you've written it.  All calls to
 initgroups() must occur before setuid(), because otherwise it won't have
 permission (unless uid is root).

 Also, maybe the call to initgroups() should be inside #if HAVE_GRP_H?

 __Martin

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=lnkkid=120709bid=263057dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users