Re: [BackupPC-users] Wrong user: my userid is 0, instead of 105 (backuppc)
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] Wrong user: my userid is 0, instead of 105 (backuppc)
dan wrote: did you create the user backuppc? if so, does backuppc have a home directory and does it have a default shell of /bin/bash? http://backuppc.sourceforge.net/faq/BackupPC.html#item_backuppc_user says: For security purposes you might choose to configure the BackupPC user with the shell set to /bin/false. Since you might need to run some BackupPC programs as the BackupPC user for testing purposes, you can use the -s option to su to explicitly run a shell, eg: su -s /bin/bash __BACKUPPCUSER__ Nils Breunese. - 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] Wrong user: my userid is 0, instead of 105 (backuppc)
On Mon, Apr 21, 2008 at 08:53:27PM -0600, dan wrote: just for fun, try to suid backuppc the init script. SUID doesn't work for shell scripts for security reasons (I don't remember the exact reason, though). Tino. -- „What we resist, persists.” (Zen saying) www.craniosacralzentrum.de www.forteego.de - 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] Wrong user: my userid is 0, instead of 105 (backuppc)
On Tue, Apr 22, 2008 at 12:22:44AM +0200, shacky wrote: Everything in bin/ is owned by user backuppc and has rights -r-xr-xr-x. Yes, I have the same permissions. The strange thing is that I get the same error even if I try to run BackupPC directly as backuppc user: server:/usr/local/backuppc/bin # su - backuppc [EMAIL PROTECTED]:~ /usr/local/backuppc/bin/BackupPC -d /usr/local/backuppc/bin/BackupPC: Wrong user: my userid is 0, instead of 105 (backuppc) Please su backuppc first BackupPC::Lib-new failed I don't understand why. What's that suidperl you talked about? Why did you ask me for it? What is the first line of your bin/BackupPC? Bye, Tino. -- „What we resist, persists.” (Zen saying) www.craniosacralzentrum.de www.forteego.de - 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] Wrong user: my userid is 0, instead of 105 (backuppc)
try su backuppc -c id what is your output? server:/ # su backuppc -c id uid=105(backuppc) gid=105(backuppc) gruppi=16(dialout),33(video),105(backuppc) did you create the user backuppc? if so, does backuppc have a home directory and does it have a default shell of /bin/bash? Yes: server:/ # grep backuppc /etc/passwd backuppc:x:105:105:BackupPC,,,:/var/lib/backuppc:/bin/sh what is the output of su backuppc -c /usr/local/backuppc/bin /BackupPC -d The same output: server:/ # su backuppc -c /usr/local/backuppc/bin/BackupPC -d /usr/local/backuppc/bin/BackupPC: Wrong user: my userid is 0, instead of 105 (backuppc) Please su backuppc first BackupPC::Lib-new failed - 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] Wrong user: my userid is 0, instead of 105 (backuppc)
do you have a correct Apache2 configuration with the perl module (/etc/sys config/apache = APACHE_MODULES ) ? It can't be these, as my problem happens with the start of the BackupPC daemon, and not in the Apache configuration... - 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] Wrong user: my userid is 0, instead of 105 (backuppc)
What's that suidperl you talked about? Why did you ask me for it? What is the first line of your bin/BackupPC? Sorry, I was wrong. The first line of my bin/BackupPC is #!/usr/bin/perl - 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] Wrong user: my userid is 0, instead of 105 (backuppc)
On Tue, Apr 22, 2008 at 12:10:27PM +0200, shacky wrote: What's that suidperl you talked about? Why did you ask me for it? What is the first line of your bin/BackupPC? Sorry, I was wrong. The first line of my bin/BackupPC is #!/usr/bin/perl Is that suid? Try the following perl program, run it as user backuppc: #!/usr/bin/perl # system (id); HTH, Tino. -- „What we resist, persists.” (Zen saying) www.craniosacralzentrum.de www.forteego.de - 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] Wrong user: my userid is 0, instead of 105 (backuppc)
On Tue, Apr 22, 2008 at 12:22:05PM +0200, Tino Schwarze wrote: On Tue, Apr 22, 2008 at 12:10:27PM +0200, shacky wrote: What's that suidperl you talked about? Why did you ask me for it? What is the first line of your bin/BackupPC? Sorry, I was wrong. The first line of my bin/BackupPC is #!/usr/bin/perl Maybe /usr/bin/perl is suid? Try the following perl program, run it as user backuppc: #!/usr/bin/perl # system (id); # also add this: print my effective uid: , $; print my real uid: , $; Tino. -- „What we resist, persists.” (Zen saying) www.craniosacralzentrum.de www.forteego.de - 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] Wrong user: my userid is 0, instead of 105 (backuppc)
Maybe /usr/bin/perl is suid? Yes! Perl is suid: server:/usr/local/bin # ls -l /usr/bin/perl -rwsr-xr-x 3 root root 1334016 2007-11-08 18:49 /usr/bin/perl How permissions I have to set to /usr/bin/perl? On another server I have it setted to 755, is it right? Try the following perl program, run it as user backuppc: server:/usr/local/bin # su -c test.pl backuppc Insecure $ENV{PATH} while running setuid at /usr/local/bin/test.pl line 3. - 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] Wrong user: my userid is 0, instead of 105 (backuppc)
shacky wrote: Maybe /usr/bin/perl is suid? Yes! Perl is suid: server:/usr/local/bin # ls -l /usr/bin/perl -rwsr-xr-x 3 root root 1334016 2007-11-08 18:49 /usr/bin/perl How permissions I have to set to /usr/bin/perl? On another server I have it setted to 755, is it right? I don't run SuSE, but on my CentOS machines /usr/bin/perl is 0755. What does 'rpm --verify perl' say? (No output is good.) Nils. - 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] Wrong user: my userid is 0, instead of 105 (backuppc)
Thank you very much to everybody! I solved all my problems... :-) - 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/
[BackupPC-users] Wrong user: my userid is 0, instead of 105 (backuppc)
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. Could you help me, please? Thank you very much! Bye. - 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] Wrong user: my userid is 0, instead of 105 (backuppc)
On Mon, Apr 21, 2008 at 08:01:19PM +0200, 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. I just looked at my init script here and it's got the same line and works. What happens if you try su - backuppc? Maybe the backuppc user doesn't have a home directory, login shell or something similar? HTH, Tino. -- „What we resist, persists.” (Zen saying) www.craniosacralzentrum.de www.forteego.de - 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] Wrong user: my userid is 0, instead of 105 (backuppc)
What happens if you try su - backuppc? Nothing special. I get the normal shell for the backuppc user. Could you past me the output of the following commands on your working system, please? ls -laR /usr/local/backuppc (or whatever directory where you installed BackupPC) ls -l /usr/bin/suidperl Thank you very very much! - 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] Wrong user: my userid is 0, instead of 105 (backuppc)
On Mon, Apr 21, 2008 at 08:17:46PM +0200, shacky wrote: What happens if you try su - backuppc? Nothing special. I get the normal shell for the backuppc user. Could you past me the output of the following commands on your working system, please? BTW: It's an openSUSE 10.2 (X86-64) ls -laR /usr/local/backuppc (or whatever directory where you installed BackupPC) Everything in bin/ is owned by user backuppc and has rights -r-xr-xr-x. ls -l /usr/bin/suidperl -rwxr-xr-x 3 root root 1286192 2007-11-09 02:05 /usr/bin/suidperl What do you need suidperl for? It should not be used. I've got #!/usr/bin/perl at the top of bin/BackupPC HTH, Tino. -- „What we resist, persists.” (Zen saying) www.craniosacralzentrum.de www.forteego.de - 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] Wrong user: my userid is 0, instead of 105 (backuppc)
Everything in bin/ is owned by user backuppc and has rights -r-xr-xr-x. Yes, I have the same permissions. The strange thing is that I get the same error even if I try to run BackupPC directly as backuppc user: server:/usr/local/backuppc/bin # su - backuppc [EMAIL PROTECTED]:~ /usr/local/backuppc/bin/BackupPC -d /usr/local/backuppc/bin/BackupPC: Wrong user: my userid is 0, instead of 105 (backuppc) Please su backuppc first BackupPC::Lib-new failed I don't understand why. - 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] Wrong user: my userid is 0, instead of 105 (backuppc)
shacky wrote: Everything in bin/ is owned by user backuppc and has rights -r-xr-xr-x. Yes, I have the same permissions. The strange thing is that I get the same error even if I try to run BackupPC directly as backuppc user: server:/usr/local/backuppc/bin # su - backuppc [EMAIL PROTECTED]:~ /usr/local/backuppc/bin/BackupPC -d /usr/local/backuppc/bin/BackupPC: Wrong user: my userid is 0, instead of 105 (backuppc) Please su backuppc first BackupPC::Lib-new failed I don't understand why. What do you get if you execute 'id' as user backuppc? -- Les Mikesell [EMAIL PROTECTED] - 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] Wrong user: my userid is 0, instead of 105 (backuppc)
try su backuppc -c id what is your output? did you create the user backuppc? if so, does backuppc have a home directory and does it have a default shell of /bin/bash? what is the output of su backuppc -c /usr/local/backuppc/bin/BackupPC -d just for fun, try to suid backuppc the init script. On Mon, Apr 21, 2008 at 4:36 PM, Les Mikesell [EMAIL PROTECTED] wrote: shacky wrote: Everything in bin/ is owned by user backuppc and has rights -r-xr-xr-x. Yes, I have the same permissions. The strange thing is that I get the same error even if I try to run BackupPC directly as backuppc user: server:/usr/local/backuppc/bin # su - backuppc [EMAIL PROTECTED]:~ /usr/local/backuppc/bin/BackupPC -d /usr/local/backuppc/bin/BackupPC: Wrong user: my userid is 0, instead of 105 (backuppc) Please su backuppc first BackupPC::Lib-new failed I don't understand why. What do you get if you execute 'id' as user backuppc? -- Les Mikesell [EMAIL PROTECTED] - 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/ - 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/