On Thursday 28 January 2010 11:20:05 Sorin Srbu wrote:
> >-----Original Message-----
> >From: Pascal Bourdais [mailto:pbourd...@infagri.fr]
> >Sent: Thursday, January 28, 2010 12:04 PM
> >To: backuppc-users@lists.sourceforge.net
> >Subject: Re: [BackupPC-users] Testing the mail function from BackupPC
> >
> >su - backuppc
> 
> Already tried that, same thing happens:
> 
> r...@mach012 ~/ [0]# su - backuppc
> r...@mach012 ~/ [0]# /usr/bin/BackupPC_sendEmail -u

You're still root!!

>  sorin.s...@orgfarm.uu.se /usr/bin/BackupPC_sendEmail: Wrong user: my
>  userid is 0, instead of 150 (backuppc)
    ^^^^^^

definately still root

> Please su backuppc first
> BackupPC::Lib->new failed
> r...@mach012 ~/ [0]#
> 

On my machine

[r...@shannon ~]# 
[r...@shannon ~]# su - backuppc
[backu...@shannon ~]$ 

see changed user to backuppc

[backu...@shannon ~]$ /usr/local/BackupPC/bin/BackupPC_sendEmail -u 
moll...@mail.x.y.z
Sending test email using /usr/sbin/sendmail -t -f backuppc

[backu...@shannon ~]$ grep root /etc/passwd
root:x:0:0:root:/root:/bin/bash

[backu...@shannon ~]$ grep backuppc /etc/passwd
backuppc:x:490:490: BackupPC User :/home/backuppc:/bin/bash

I suspect your backuppc user is not set up correctly. In my case it's got a 
uid of 490 and is a login account

Tony







-- 

Chief Technical Officer.                   Tel: +353 061-202778
Dept. of Comp. Sci.
University of Limerick.


------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
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/

Reply via email to