BackupPC-users

Re: [BackupPC-users] userid mismatch error...though uid's are not wrong

2008-08-06 19:45:07
Subject: Re: [BackupPC-users] userid mismatch error...though uid's are not wrong
From: Holger Parplies <wbppc AT parplies DOT de>
To: James Kyle <jameskyle AT ucla DOT edu>
Date: Thu, 7 Aug 2008 01:44:09 +0200
Hi,

James Kyle wrote on 2008-08-06 12:19:38 -0700 [[BackupPC-users] userid mismatch 
error...though uid's are not wrong]:
> I'm getting a userid mismatch error using mod_perl and a specialized  
> httpd daemon run as the backppc user.

your error message seems to indicate that it is not related to the web server.

> If my backuppc user has uid 300, the error reads as follows:
> 
> /usr/local/BackupPC/bin/BackupPC_dump: Wrong user: my userid is 300,  
> instead of  (backuppc)
> 
> As I mentioned, the backuppc uid *is* 300.

First of all, what version of BackupPC are you running?

The 3.1.0 sources indicate that there *should* be a user id before the
"(backuppc)" in the error message. It is empty, so "getpwnam ('backuppc')"
failed - which is strange, to say the least.

What do the relevant lines of nsswitch.conf look like
("egrep 'passwd|shadow' /etc/nsswitch.conf")?

Could you give us some more information on your OS environment?

> So I'm a bit confused at  
> what is going on. In addition, I can restart the BackupPC daemon and  
> initialize a backup and it completes without error...then after a  
> while, this error arises and will not go away.

Are you using some strange ulimits? SElinux? Can you tell if the time until it
reappears is "about the same" or very random (actually, the count of processes
started by the BackupPC daemon - assuming they all "use Lib;" - would be the
interesting figure, but that's hard to count)?

You might try setting DumpPostUserCmd to '/usr/bin/id -a' (unless you're
already using it; DumpPostShareCmd will do just as well or either of the Pre
commands, though Post would be better). Does 'id' start having the same
problems at the same time? Are there better diagnostics from 'id' as to the
cause?

Regards,
Holger

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

<Prev in Thread] Current Thread [Next in Thread>