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 ?        S    13:57   0:00 
/usr/bin/perl /home/backuppc/bin/BackupPC -d
backuppc 18666  3.6  0.4   6920  4784 ?        S    13: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/vse0120000070mrt/direct/01/
_______________________________________________
BackupPC-users mailing list
[email protected]
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Reply via email to