Re: [BackupPC-users] Wrong user: my userid is 0, instead of 105 (backuppc)

2008-04-22 Thread Kai Grunau
Hello,

shacky wrote:
 I'm installing BackupPC 3.1.0 on a SuSE 10.0 system.
 After I installed it I copied the init.d/suse-backuppc script from the
 BackupPC sources directory to /etc/init.d/backuppc and I chmodded it
 to 755.
 Now if I start it with /etc/init.d/backuppc start I get this error:

 server:/usr/local/src/BackupPC-3.1.0/init.d # /etc/init.d/backuppc start
 Starting backuppc: /usr/local/backuppc/bin/BackupPC: Wrong user: my
 userid is 0, instead of 105 (backuppc)
 Please su backuppc first
 BackupPC::Lib-new failed
 startproc:  exit status of parent of /usr/local/backuppc/bin/BackupPC: 2

 Why this happens?
 I checked the init.d script and the parameters seems to be correct.
 The command that starts BackupPC in the start) stanza of the init.d
 script is startproc -f  -p $LOGDIR/BackupPC.pid -u $USER
 $BINDIR/$DAEMON -d, which should be correct.
 If I try to manually execute the command startproc -f  -p
 /var/log/BackupPC/BackupPC.pid -u backuppc
 /usr/local/backuppc/bin/BackupPC -d (please note the -u backuppc
 parameter to start BackupPC as backuppc user) I get the same error, so
 I don't think the problem is the init.d script.
   
do you have a correct Apache2 configuration with the perl module (/etc/sys
config/apache = APACHE_MODULES ) ?

regards, Kai


-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupPC: Wrong user

2008-03-10 Thread Kai Grunau
Kai Grunau wrote:
 Nils Breunese (Lemonbit) wrote:
   
 Kai Grunau wrote:

   
 
 is there someone who could send me a /etc/init.d/backuppc script  
 file for
 OpenSuse 10.3 2.6.22.17-0.1-default i686

 When I try to start backuppc I get the error :
 ---
 
   
 /etc/init.d/backuppc  start
   
 
 Starting backuppc: ok.
 /home/backuppc/bin/BackupPC: Wrong user: my userid is 0, instead of  
 1000
 (backuppc)
 Please su backuppc first
 BackupPC::Lib-new failed
 ---
 
   
 Your init.d script tries to start BackupPC as root, while it should  
 run as the backuppc user. It is started in my init.d script (on CentOS  
 4) as follows in the start() function:

  daemon --user backuppc /opt/backuppc/bin/BackupPC -d

 Did you create this init.d script yourself? If you installed using the  
 source distribution then configure.pl should have created an init.d  
 script for you as init.d/linux-backuppc. I copied that script to /etc/ 
 init.d/backuppc and ran chmod 755 on it. Worked just fine.
   
 
 I copied the  suse-backuppc from the installation source to 
 /etc/init.d/backuppc

 When I try to start the backuppc software  manual with  su backuppc -c 
 /usr/local/BackupPC/bin/BackupPC -d
 I got the error :
 --
 /home/backuppc/bin/BackupPC: Wrong user: my userid is 0, instead of 1000 
 (backuppc)
 Please su backuppc first
 BackupPC::Lib-new failed
 ---
   
maybe I found a solution :

After  chmod   4550   $HOME/bin/* it was possible to run the 
/etc/init.d/backuppc script without an error.
The processes :
-
backuppc 18665  0.0  0.7  10532  7500 ?S13:57   0:00 
/usr/bin/perl /home/backuppc/bin/BackupPC -d
backuppc 18666  3.6  0.4   6920  4784 ?S13:57   0:00 
/usr/bin/perl /home/backuppc/bin/BackupPC_trashClean
-
are owend by backuppc.

I remember on friday I changed the ownership from the /usr/bin/suidperl 
binary
(https://secure-support.novell.com/KanisaPlatform/Publishing/980/3436932_f.SAL_Public.html)
to solve another problem.

I don't know if this is all correct but now I will try to run some 
backup jobs .

regards  thanx, Kai



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


[BackupPC-users] BackupPC: Wrong user

2008-03-07 Thread Kai Grunau
hallo,

is there someone who could send me a /etc/init.d/backuppc script file for
OpenSuse 10.3 2.6.22.17-0.1-default i686

When I try to start backuppc I get the error :
---
   /etc/init.d/backuppc  start

Starting backuppc: ok.
/home/backuppc/bin/BackupPC: Wrong user: my userid is 0, instead of 1000 
(backuppc)
Please su backuppc first
BackupPC::Lib-new failed
---

best regards, Kai


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupPC: Wrong user

2008-03-07 Thread Kai Grunau
Nils Breunese (Lemonbit) wrote:
 Kai Grunau wrote:

   
 is there someone who could send me a /etc/init.d/backuppc script  
 file for
 OpenSuse 10.3 2.6.22.17-0.1-default i686

 When I try to start backuppc I get the error :
 ---
 
 /etc/init.d/backuppc  start
   
 Starting backuppc: ok.
 /home/backuppc/bin/BackupPC: Wrong user: my userid is 0, instead of  
 1000
 (backuppc)
 Please su backuppc first
 BackupPC::Lib-new failed
 ---
 

 Your init.d script tries to start BackupPC as root, while it should  
 run as the backuppc user. It is started in my init.d script (on CentOS  
 4) as follows in the start() function:

   daemon --user backuppc /opt/backuppc/bin/BackupPC -d

 Did you create this init.d script yourself? If you installed using the  
 source distribution then configure.pl should have created an init.d  
 script for you as init.d/linux-backuppc. I copied that script to /etc/ 
 init.d/backuppc and ran chmod 755 on it. Worked just fine.
   
I copied the  suse-backuppc from the installation source to 
/etc/init.d/backuppc

When I try to start the backuppc software  manual with  su backuppc -c 
/usr/local/BackupPC/bin/BackupPC -d
I got the error :
--
/home/backuppc/bin/BackupPC: Wrong user: my userid is 0, instead of 1000 
(backuppc)
Please su backuppc first
BackupPC::Lib-new failed
---

regards , Kai


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] Got remote protocol 757955594

2006-07-11 Thread Kai Grunau
Craig Barratt wrote:
 The decimal value 757955594 is the first four bytes of the unexpected
 text or error from the remote machine.  In hex it is 2D2D7C0A or
 --|\r.  Does your .cshrc or ssh login sequence emit this string?

 This text should appear in ascii after bad version.  I'm surprised
 to see the rest of that message is empty.
   
that's it :-)

I searched on the clients for the files which are modified at the time 
and looked for --| :
-
 find . -mtime -4 -type f -xdev | xargs  egrep \-\-
-
The file /etc/issue was found. After moving the file to /etc/issue.SAVE the
BackupPC jobs are running 

thanks a lot !
Kai



-
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
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/