[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: minor (major) fetchmail problem



But that's just it.  Running fetchmail as root is a security risk.
There's no reason to run it as root, since it works well from
a user account.

On Sun, 2006-04-09 at 12:49 +1000, Lloyd Bayley - Berowra PC Services
wrote:
> Ron,
> 
> Thanks for your input!
> Yes, that's how I have it....both accounts in one rc file.
> 
> I am ok with it running as root but was wanting to stop it reporting in my
> mail about the warning as running as root...
> 
> I shall give what you have sent me below a try and see how I fare!
> 
> Kind Regards,
>  
> 
> Lloyd Bayley
> Berowra PC Services
> P.O. Box 270
> Berowra Heights NSW 2082 
>  
> Ph:     (02) 9456-0292
> Mob:    0411-541-007
> Email:  lloyd@berowrapc.com
> Web:    www.berowrapc.com 
> 
> -----Original Message-----
> From: Ron Johnson [mailto:ron.l.johnson@cox.net] 
> Sent: Sunday, 9 April 2006 12:29 PM
> To: debian-user@lists.debian.org
> Subject: RE: minor (major) fetchmail problem
> 
> On Sun, 2006-04-09 at 12:05 +1000, Lloyd Bayley - Berowra PC Services
> wrote:
> > Yes, true...
> > I just run the thing as root and have a .fetchmailrc file in the /root
> dir..
> > It collects mail for all users in the one file (as all 2 users are me!)
> > 
> > Stupid cron keeps emailing me saying fetchmail said:
> > 
> > Warning: Running as root is discouraged
> 
> What if you put both accounts in the same fetchmailrc file?
> 
> When I evactuated for Katrina, I kept this cox.net address,
> got a secondary comcast.net address from my father in Dallas,
> and put them both in ~/fetchmailrc, thus fetching from both
> accounts in the same pass.
> 
> BTW, I run it out of cron:
>     #!/bin/sh
>     MAILTO=""
>     # m h  dom mon dow   command
>     */5 * * * * /usr/local/bin/run_fetchmail.sh
>     exit
> 
> The fetchmail script can be blocked while I backup my data.
>     $ cat /usr/local/bin/run_fetchmail.sh
>     #!/bin/sh
>     
>     if [ -e /tmp/.backup.LOCK ]; then exit 0; fi
>     
>     /usr/bin/fetchmail -S haggis $1
> 
> 
> > Every 5 flipping minutes....
> > Am trying to find a way of turning it's user-checking off. :-)
> >  
> > This didn't happen before....Kernels and packages are getting pickier! :-)
> > 
> >  
> > Lloyd Bayley
> > Berowra PC Services
> > P.O. Box 270
> > Berowra Heights NSW 2082 
> >  
> > Ph:     (02) 9456-0292
> > Mob:    0411-541-007
> > Email:  lloyd@berowrapc.com
> > Web:    www.berowrapc.com 
> > 
> > -----Original Message-----
> > From: 'Clive Menzies' [mailto:clive@clivemenzies.co.uk] 
> > Sent: Sunday, 9 April 2006 10:58 AM
> > To: debian-user@lists.debian.org
> > Subject: Re: minor (major) fetchmail problem
> > 
> > On (09/04/06 08:40), Lloyd Bayley - Berowra PC Services wrote:
> > > I slept on it and found the problem this morning.
> > > For some reason I have the command running as 'fetchmail fetchmail -v'
> > took
> > > out the first 'fetchmail' and it all came to life.
> > > 
> > > I haven't touched the crontab for ages so perhaps there was that bug all
> > > along that the last install was ignoring and this one picked up.
> > > 
> > > Dear me, the tiredness-factor plays a big part sometimes! :-)
> > > 
> > > Kind Regards,
> > 
> > Hehe :)
> > 
> > Glad you sorted it out.
> > 
> > FWIW I run fetchmail as a daemon (no cron); you set the interval in
> > /etc/fetchmailrc.  For a single user, it's probably not worth doing but
> > if you're collecting mail for multiple users, it saves configuring
> > individual .fetchmailrc files.
> 
> -- 
> -----------------------------------------------------------------
> Ron Johnson, Jr.
> Jefferson, LA USA
> 
> "Its easy to understand why the cat has eclipsed the dog as
> modern America's favorite pet. People like pets to possess the
> same qualities they do. Cats are irresponsible and recognize no
> authority, yet are completely dependent on others for their
> material needs. Cats cannot be made to do anything useful. Cats
> are mean for the fun of it."
> P.J. O'Rourke, satirist
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
> 
> 

-- 
-----------------------------------------------------------------
Ron Johnson, Jr.
Jefferson, LA USA

"One of the little-celebrated powers of Presidents (and other
high government officials) is to listen to their critics with
just enough sympathy to ensure their silence."
John Kenneth Galbraith



Reply to: