On Thursday 28 January 2010 13:16:41 Sorin Srbu wrote:
> >-----Original Message-----
> >From: Tony Molloy [mailto:tony.molloy@...]
> >Sent: Thursday, January 28, 2010 1:56 PM
> >To: sorin.srbu@...; General list for user discussion, questions
> > and support
> >Subject: Re: [BackupPC-users] Testing the mail function from BackupPC
> >On Thursday 28 January 2010 11:20:05 Sorin Srbu wrote:
> >> >-----Original Message-----
> >> >From: Pascal Bourdais [mailto:pbourdais@...]
> >> >Sent: Thursday, January 28, 2010 12:04 PM
> >> >To: backuppc-users@...
> >> >Subject: Re: [BackupPC-users] Testing the mail function from BackupPC
> >> >
> >> >su - backuppc
> >> Already tried that, same thing happens:
> >> root@... ~/ # su - backuppc
> >> root@... ~/ # /usr/bin/BackupPC_sendEmail -u
> >You're still root!!
> >> sorin.srbu@... /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
> >> root@... ~/ #
> >On my machine
> >[root@... ~]#
> >[root@... ~]# su - backuppc
> >[backuppc@... ~]$
> >see changed user to backuppc
> >[backuppc@... ~]$ /usr/local/BackupPC/bin/BackupPC_sendEmail -u
> >Sending test email using /usr/sbin/sendmail -t -f backuppc
> >[backuppc@... ~]$ grep root /etc/passwd
> >[backuppc@... ~]$ 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
> The BackupPC installer sets the backuppc account up with nologin (no GUI
> login). In /etc/passwd the shell is /bin/false, so no GUI login allowed,
> but it should allow one to su in as backuppc. I solved that by adding the
> "-s /bin/bash", as per the previous post. Now I can su properly to
> The problem *now* is that /bin/mail doesn't understand the "-t" switch. As
> I mentioned, I can't find anything about this t parameter in man mail, but
> in the /usr/bin/BackupPC_SendEmail script the t parameter is mentioned as
> something that " -t display the emails that would be sent, without
> sending them".
> To me this is rather cryptic, and I don't quite understand the why's,
> what's and where's of this alluring "-t" and how I fix this.
> Grateful for any help! Thanks.
Ok I run backuppc on CentOS and man mail says
Add the given names to the direct recipient list.
So I'd just remove the -t and see what happens.
Hope this helps,
Chief Technical Officer. Tel: +353 061-202778
Dept. of Comp. Sci.
University of Limerick.