From: Kai G. <kg...@if...> - 2008-03-10 09:05:02
|
Nils Breunese (Lemonbit) wrote: > Kai Grunau wrote: > > >> I copied the suse-backuppc from the installation source to >> /etc/init.d/backuppc >> > > Did you run configure.pl on that source before copying that init.d > script? I believe the configure.pl script modifies the init.d script > as it injects the username you specify. > yes, I run configure.pl before copying the init script to /etc/init.d The name of the BackupPC user is "backuppc" (uid = 1000 , gid = 501) When I set the "$Conf{BackupPCUserVerify} = 1" the BackupPC Software started, but the owner of the processes is root :-( Here the "verbose" output of an attempt to start BackupPC: ----- > sh -x /etc/init.d/backuppc start + set -e + BINDIR=/home/backuppc/bin + DATADIR=/data/BackupPC + LOGDIR=/var/log/BackupPC + USER=backuppc + NAME=backuppc + DAEMON=BackupPC + test -x /home/backuppc/bin/BackupPC + case "$1" in + echo -n 'Starting backuppc: ' Starting backuppc: + startproc -v -f -p /var/log/BackupPC/BackupPC.pid -u backuppc -g www /home/backuppc/bin/BackupPC -d 17688 + echo ok. ok. + exit 0 /home/backuppc/bin/BackupPC: Wrong user: my userid is 0, instead of 1000 (backuppc) Please su backuppc first BackupPC::Lib->new failed --------------- When starting the software with "start-stop-daemon --start --user ${USER} --chuid ${USER} --pidfile $LOGDIR/BackupPC.pid --exec $BINDIR/$DAEMON" I get the message "start-stop-daemon: unrecognized option `--chuid'" Without --chuid : /home/backuppc/bin/BackupPC/home/backuppc/bin/BackupPC: Wrong user: my userid is 0, instead of 1000 (backuppc) Please su backuppc first BackupPC::Lib->new failed maybe a problem with perl on the machine ? any idea ? regards , Kai |