[gentoo-user] vixie cron: PAM ERROR

2014-02-25 Thread Grant Edwards
On a newly installed system, I'm getting error messages from vixie cron
about PAM authentication errors:

Feb 25 09:52:01 alpha crond[23085]: (root) PAM ERROR (Authentication failure)
Feb 25 09:52:01 alpha crond[23085]: (root) FAILED to authorize user with PAM 
(Authentication failure)
Feb 25 09:53:01 alpha cron[23118]: (root) CMD (echo cron ran at $(date) 
/tmp/cron.out)
Feb 25 09:53:01 alpha crond[23122]: (root) PAM ERROR (Authentication failure)
Feb 25 09:53:01 alpha crond[23122]: (root) FAILED to authorize user with PAM 
(Authentication failure)
Feb 25 09:54:01 alpha cron[23153]: (root) CMD (echo cron ran at $(date) 
/tmp/cron.out)
Feb 25 09:54:01 alpha crond[23157]: (root) PAM ERROR (Authentication failure)
Feb 25 09:54:01 alpha crond[23157]: (root) FAILED to authorize user with PAM 
(Authentication failure)
Feb 25 09:55:01 alpha cron[23160]: (root) CMD (echo cron ran at $(date) 
/tmp/cron.out)
Feb 25 09:55:01 alpha crond[23164]: (root) PAM ERROR (Authentication failure)
Feb 25 09:55:01 alpha crond[23164]: (root) FAILED to authorize user with PAM 
(Authentication failure)

AFAICT, it runs the scheduled command except for the very first time.

I get the same results with normal user's crontab entries.

-- 
Grant Edwards   grant.b.edwardsYow! Wow!  Look!!  A stray
  at   meatball!!  Let's interview
  gmail.comit!




Re: [gentoo-user] vixie cron: PAM ERROR

2014-02-25 Thread Nilesh Govindrajan
On Tue, Feb 25, 2014 at 9:29 PM, Grant Edwards grant.b.edwa...@gmail.comwrote:

 On a newly installed system, I'm getting error messages from vixie cron
 about PAM authentication errors:

 Feb 25 09:52:01 alpha crond[23085]: (root) PAM ERROR (Authentication
 failure)
 Feb 25 09:52:01 alpha crond[23085]: (root) FAILED to authorize user with
 PAM (Authentication failure)
 Feb 25 09:53:01 alpha cron[23118]: (root) CMD (echo cron ran at $(date)
 /tmp/cron.out)
 Feb 25 09:53:01 alpha crond[23122]: (root) PAM ERROR (Authentication
 failure)
 Feb 25 09:53:01 alpha crond[23122]: (root) FAILED to authorize user with
 PAM (Authentication failure)
 Feb 25 09:54:01 alpha cron[23153]: (root) CMD (echo cron ran at $(date)
 /tmp/cron.out)
 Feb 25 09:54:01 alpha crond[23157]: (root) PAM ERROR (Authentication
 failure)
 Feb 25 09:54:01 alpha crond[23157]: (root) FAILED to authorize user with
 PAM (Authentication failure)
 Feb 25 09:55:01 alpha cron[23160]: (root) CMD (echo cron ran at $(date)
 /tmp/cron.out)
 Feb 25 09:55:01 alpha crond[23164]: (root) PAM ERROR (Authentication
 failure)
 Feb 25 09:55:01 alpha crond[23164]: (root) FAILED to authorize user with
 PAM (Authentication failure)

 AFAICT, it runs the scheduled command except for the very first time.

 I get the same results with normal user's crontab entries.

 --
 Grant Edwards   grant.b.edwardsYow! Wow!  Look!!  A
 stray
   at   meatball!!  Let's
 interview
   gmail.comit!



Sounds like a pam configuration error. Try this?
http://www.shanison.com/2012/02/08/crontab-error-failed-to-open-pam-security-session-success/
There are a couple of other blogs too on Google search, but all of them
describe 'security error'. Your's seems to be different.


Re: [gentoo-user] vixie-cron keeps stopping

2010-04-17 Thread Mick
On Friday 16 April 2010 22:25:47 Alan McKinnon wrote:
 On Friday 16 April 2010 20:29:27 Dale wrote:
  Alan McKinnon wrote:
   On Thursday 15 April 2010 02:58:15 Matt Harrison wrote:
   I apologise if this has come twice, it didn't appear to post correctly
   first time, not even on the archives.
  
   Its been happening for a while but I haven't got round to find out
   why, but every so often (anything between a week or an hour)
   vixie-cron just stops. There's nothing in the logs, the service just
   stops.
  
   I have no idea where to start looking for a culprit so I'm hoping
   someone here has some good ideas :)
  
   thanks in advance
  
   Matt
  
   You probably don't want to hear this, but:
  
   vixie-cron is problematic in the extreme. I have endless hassle with
   it's weird behaviours.
  
   Use a different cron daemon.
 
  I am using vixie as well.  It was in the install guide many years ago.
  What all would have to be changed to switch to fcron?  I think some
  packages detect which cron you have installed and put things in the
  proper place for cron jobs to run.  I could be wrong on that since it
  has been a while since I noticed packages doing this.
 
 emerge -C vixie-cron  emerge other cron of your choice
 
 You might have to tweak crontabs.
 
 I have come to detest with a passion every piece of software written or
 inspired by Paul Vixie. It took 10-15 years to get bind into a shape where
  it takes less than 20 minutes to start here, it's low, buggy and
  performance is pathetic. dhcp is just way too complex for my liking, ...
 
 ... and as for vixie-cron: When software doesn't act like it's supposed to,
 breaks in horrible ways without giving me any clue (like, cron restart
  works with no known init scripts on any platform I have) and instead says
  cron restarted [OK], which brings down 5000 Cisco devices as as a nasty
  side effect, and causes a Severity 0 committee to be called, twice, then
  that software's remaining life span on my boxes is measured in
  milliseconds :-)
 
 rant over

Blimey!  That sounds like horribly_broken!

Which cron do you recommend for a desktop?

-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] vixie-cron keeps stopping

2010-04-17 Thread David W Noon
On Sat, 17 Apr 2010 11:00:02 +0200, Mick wrote about Re: [gentoo-user]
vixie-cron keeps stopping:

On Friday 16 April 2010 22:25:47 Alan McKinnon wrote:
[snip]
 ... and as for vixie-cron: When software doesn't act like it's
 supposed to, breaks in horrible ways without giving me any clue
 (like, cron restart works with no known init scripts on any
 platform I have) and instead says cron restarted [OK], which
 brings down 5000 Cisco devices as as a nasty side effect, and causes
 a Severity 0 committee to be called, twice, then that software's
 remaining life span on my boxes is measured in milliseconds :-)
 
 rant over

Blimey!  That sounds like horribly_broken!

Which cron do you recommend for a desktop?

I switched from vixie-cron to fcron within a couple of days of first
installing Gentoo.  The Gentoo handbook suggested vixie-cron, but it
proved to be a bucket of bolts.  The version of fcron then available had
problems in those days (late 2003) with daylight saving switch-overs,
but these have long been fixed.

Consequently, I recommend fcron to anybody dumb enough to take my word
for such things. ... :-)
-- 
Regards,

Dave  [RLU #314465]
==
dwn...@ntlworld.com (David W Noon)
==


signature.asc
Description: PGP signature


Re: [gentoo-user] vixie-cron keeps stopping

2010-04-17 Thread Alan McKinnon
On Saturday 17 April 2010 10:47:15 Mick wrote:
 On Friday 16 April 2010 22:25:47 Alan McKinnon wrote:
  On Friday 16 April 2010 20:29:27 Dale wrote:
   Alan McKinnon wrote:
On Thursday 15 April 2010 02:58:15 Matt Harrison wrote:
I apologise if this has come twice, it didn't appear to post
correctly first time, not even on the archives.

Its been happening for a while but I haven't got round to find out
why, but every so often (anything between a week or an hour)
vixie-cron just stops. There's nothing in the logs, the service just
stops.

I have no idea where to start looking for a culprit so I'm hoping
someone here has some good ideas :)

thanks in advance

Matt

You probably don't want to hear this, but:

vixie-cron is problematic in the extreme. I have endless hassle with
it's weird behaviours.

Use a different cron daemon.
   
   I am using vixie as well.  It was in the install guide many years ago.
   What all would have to be changed to switch to fcron?  I think some
   packages detect which cron you have installed and put things in the
   proper place for cron jobs to run.  I could be wrong on that since it
   has been a while since I noticed packages doing this.
  
  emerge -C vixie-cron  emerge other cron of your choice
  
  You might have to tweak crontabs.
  
  I have come to detest with a passion every piece of software written or
  inspired by Paul Vixie. It took 10-15 years to get bind into a shape
  where
  
   it takes less than 20 minutes to start here, it's low, buggy and
   performance is pathetic. dhcp is just way too complex for my liking, ...
  
  ... and as for vixie-cron: When software doesn't act like it's supposed
  to, breaks in horrible ways without giving me any clue (like, cron
  restart
  
   works with no known init scripts on any platform I have) and instead
   says cron restarted [OK], which brings down 5000 Cisco devices as as
   a nasty side effect, and causes a Severity 0 committee to be called,
   twice, then that software's remaining life span on my boxes is measured
   in
   milliseconds :-)
  
  rant over
 
 Blimey!  That sounds like horribly_broken!
 
 Which cron do you recommend for a desktop?

Strangely enough, I'd tell folk to use vixie-cron if it's already working for 
them and they know it. I don't see the point in advising someone to switch a 
package that is working well for them and doing it's job.

Most folk let cron be installed then they never touch it again, or add at most 
a few entries. Everything they need or want to be done is covered with the 
default /etc/cron.*/*. Why change it? Besides, they know how to work vixie-
cron.

But if they are run into problems or weird errors (like the OP where the thing 
just dies), then fcron is good.


-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] vixie-cron keeps stopping

2010-04-16 Thread kashani

On 4/15/2010 1:20 AM, Alan McKinnon wrote:

On Thursday 15 April 2010 02:58:15 Matt Harrison wrote:

I apologise if this has come twice, it didn't appear to post correctly
first time, not even on the archives.

Its been happening for a while but I haven't got round to find out why, but
every so often (anything between a week or an hour) vixie-cron just stops.
There's nothing in the logs, the service just stops.

I have no idea where to start looking for a culprit so I'm hoping someone
here has some good ideas :)

thanks in advance

Matt


You probably don't want to hear this, but:

vixie-cron is problematic in the extreme. I have endless hassle with it's
weird behaviours.

Use a different cron daemon.



Strange. I've never had a problem with it and Gentoo though I use Gentoo 
primarily as a server.


kashani



Re: [gentoo-user] vixie-cron keeps stopping

2010-04-16 Thread Dale

Alan McKinnon wrote:

On Thursday 15 April 2010 02:58:15 Matt Harrison wrote:
   

I apologise if this has come twice, it didn't appear to post correctly
first time, not even on the archives.

Its been happening for a while but I haven't got round to find out why, but
every so often (anything between a week or an hour) vixie-cron just stops.
There's nothing in the logs, the service just stops.

I have no idea where to start looking for a culprit so I'm hoping someone
here has some good ideas :)

thanks in advance

Matt
 

You probably don't want to hear this, but:

vixie-cron is problematic in the extreme. I have endless hassle with it's
weird behaviours.

Use a different cron daemon.

   


I am using vixie as well.  It was in the install guide many years ago.  
What all would have to be changed to switch to fcron?  I think some 
packages detect which cron you have installed and put things in the 
proper place for cron jobs to run.  I could be wrong on that since it 
has been a while since I noticed packages doing this.


Dale

:-)   :-)



Re: [gentoo-user] vixie-cron keeps stopping

2010-04-16 Thread Mick
On Friday 16 April 2010 19:22:42 kashani wrote:
 On 4/15/2010 1:20 AM, Alan McKinnon wrote:
  On Thursday 15 April 2010 02:58:15 Matt Harrison wrote:
  I apologise if this has come twice, it didn't appear to post correctly
  first time, not even on the archives.
 
  Its been happening for a while but I haven't got round to find out why,
  but every so often (anything between a week or an hour) vixie-cron just
  stops. There's nothing in the logs, the service just stops.
 
  I have no idea where to start looking for a culprit so I'm hoping
  someone here has some good ideas :)
 
  thanks in advance
 
  Matt
 
  You probably don't want to hear this, but:
 
  vixie-cron is problematic in the extreme. I have endless hassle with it's
  weird behaviours.
 
  Use a different cron daemon.
 
 Strange. I've never had a problem with it and Gentoo though I use Gentoo
 primarily as a server.
 
 kashani

+1

I have been running Vixie's cron for a good few years on 4 different machines 
(3 different arches) and have not noticed any problems.  On the other hand I 
am only running some basic cron jobs (e.g. , updatedb, mrtg).

Have you looked at /root/dead.letter in case there is a problem that is 
captured there (although I would expect to see something in the logs to be 
honest)?
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] vixie-cron keeps stopping

2010-04-16 Thread Alan McKinnon
On Friday 16 April 2010 20:29:27 Dale wrote:
 Alan McKinnon wrote:
  On Thursday 15 April 2010 02:58:15 Matt Harrison wrote:
  I apologise if this has come twice, it didn't appear to post correctly
  first time, not even on the archives.
  
  Its been happening for a while but I haven't got round to find out why,
  but every so often (anything between a week or an hour) vixie-cron just
  stops. There's nothing in the logs, the service just stops.
  
  I have no idea where to start looking for a culprit so I'm hoping
  someone here has some good ideas :)
  
  thanks in advance
  
  Matt
  
  You probably don't want to hear this, but:
  
  vixie-cron is problematic in the extreme. I have endless hassle with it's
  weird behaviours.
  
  Use a different cron daemon.
 
 I am using vixie as well.  It was in the install guide many years ago.
 What all would have to be changed to switch to fcron?  I think some
 packages detect which cron you have installed and put things in the
 proper place for cron jobs to run.  I could be wrong on that since it
 has been a while since I noticed packages doing this.


emerge -C vixie-cron  emerge other cron of your choice

You might have to tweak crontabs.

I have come to detest with a passion every piece of software written or 
inspired by Paul Vixie. It took 10-15 years to get bind into a shape where it 
takes less than 20 minutes to start here, it's low, buggy and performance is 
pathetic. dhcp is just way too complex for my liking, ...

... and as for vixie-cron: When software doesn't act like it's supposed to, 
breaks in horrible ways without giving me any clue (like, cron restart works 
with no known init scripts on any platform I have) and instead says cron 
restarted [OK], which brings down 5000 Cisco devices as as a nasty side 
effect, and causes a Severity 0 committee to be called, twice, then that 
software's remaining life span on my boxes is measured in milliseconds :-)

rant over

-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] vixie-cron keeps stopping

2010-04-15 Thread Neil Bothwick
On Thu, 15 Apr 2010 01:36:38 +0100, Matt Harrison wrote:

 Its been happening for a while but I haven't got round to find out why,
 but every so often (anything between a week or an hour) vixie-cron just
 stops. There's nothing in the logs, the service just stops.

Try running it from a terminal with the -n option, you may see some
output when it exits.


-- 
Neil Bothwick

The facts, although interesting, are usually irrelevant.


signature.asc
Description: PGP signature


Re: [gentoo-user] vixie-cron keeps stopping

2010-04-15 Thread Alan McKinnon
On Thursday 15 April 2010 02:58:15 Matt Harrison wrote:
 I apologise if this has come twice, it didn't appear to post correctly
 first time, not even on the archives.
 
 Its been happening for a while but I haven't got round to find out why, but
 every so often (anything between a week or an hour) vixie-cron just stops.
 There's nothing in the logs, the service just stops.
 
 I have no idea where to start looking for a culprit so I'm hoping someone
 here has some good ideas :)
 
 thanks in advance
 
 Matt

You probably don't want to hear this, but:

vixie-cron is problematic in the extreme. I have endless hassle with it's 
weird behaviours.

Use a different cron daemon.

-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] vixie-cron keeps stopping

2010-04-15 Thread Matt Harrison
On 15/04/2010 09:20, Alan McKinnon wrote:
 You probably don't want to hear this, but:
 
 vixie-cron is problematic in the extreme. I have endless hassle with it's 
 weird behaviours.
 
 Use a different cron daemon.
 

I don't mind hearing this :) I only use vixie-cron as that is what I
started with (I think from the old install documents), I'm not tied to
it at all. I has worked perfectly on several installs until this problem
appeared.

I've switched to fcron on that machine and it seems to be ok so far,
only time will tell. From now on I'll use fcron by default to avoid this
problem happening again.

Thanks



[gentoo-user] vixie-cron keeps stopping

2010-04-14 Thread Matt Harrison
Its been happening for a while but I haven't got round to find out why, but 
every so
often (anything between a week or an hour) vixie-cron just stops. There's 
nothing in
the logs, the service just stops.

I have no idea where to start looking for a culprit so I'm hoping someone here 
has
some good ideas :)

thanks in advance

Matt



[gentoo-user] vixie-cron keeps stopping

2010-04-14 Thread Matt Harrison
I apologise if this has come twice, it didn't appear to post correctly first 
time, not
even on the archives.

Its been happening for a while but I haven't got round to find out why, but 
every so
often (anything between a week or an hour) vixie-cron just stops. There's 
nothing in
the logs, the service just stops.

I have no idea where to start looking for a culprit so I'm hoping someone here 
has
some good ideas :)

thanks in advance

Matt




Re: [gentoo-user] vixie-cron keeps stopping

2010-04-14 Thread Mark Knecht
On Wed, Apr 14, 2010 at 5:58 PM, Matt Harrison
iwasinnamuk...@genestate.com wrote:
 I apologise if this has come twice, it didn't appear to post correctly first 
 time, not
 even on the archives.

 Its been happening for a while but I haven't got round to find out why, but 
 every so
 often (anything between a week or an hour) vixie-cron just stops. There's 
 nothing in
 the logs, the service just stops.

 I have no idea where to start looking for a culprit so I'm hoping someone 
 here has
 some good ideas :)

 thanks in advance

 Matt




It did arrive here the first time Matt. Just responding so you know
it's getting through.

- Mark



[gentoo-user] vixie-cron not sending mail

2008-09-05 Thread Grant Edwards
I've set the MAILTO env variable in my crontab, but vixie-cron
still isn't sending e-mails.  I've verfied that I'm able to
send email with /usr/sbin/sendmail (both with and without -t).

I re-emerged vixie-cron with the debug USE flag, but it didn't
seem to produce any debug info that I can find anywhere.

How do I convince vixie-cron to produce some debug output
so that I can figure out why it's not sending e-mails?

-- 
Grant Edwards   grante Yow! Are you mentally here
  at   at Pizza Hut??
   visi.com




Re: [gentoo-user] vixie cron

2008-06-10 Thread Teng Wang
Hi,

Thank you very much. But how I can use @reboot? It
might be good if I just run fetchmail once after rebooting.
-- 
Wish you well!
Teng Wang
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] vixie cron

2008-06-10 Thread Alan McKinnon
On Tuesday 10 June 2008, Teng Wang wrote:
 Hi,

 Thank you very much. But how I can use @reboot? It
 might be good if I just run fetchmail once after rebooting.

I don't understand your question, the man page clearly tells you how to 
use it:

Replace the first five columns in a crontab file with '@reboot' and cron 
will run the command once when it starts up. So, do make sure that the 
command actually runs - maybe you are making one of the many classic 
cron errors and your script is faulty, not cron. Maybe you have an 
older version of cron that doesn't support @reboot and are reading a 
newer man page.

If this all checks out OK and it still doesn't work, then cron is not 
behaving the way it's own documentation says it should, this is a bug 
and should be reported to the cron developers

-- 
Alan McKinnon
alan dot mckinnon at gmail dot com

-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] vixie cron

2008-06-09 Thread Mark Shields
On Sat, Jun 7, 2008 at 1:12 AM, Teng Wang [EMAIL PROTECTED] wrote:

 Hi there,

 I am using vixie cron to maintain my scheduled
 jobs. Everything is just fine other than one. I find that
 when I use, for example, 0 * * * *  /usr/bin/eix-sync to
 update the portage everyday, the cron works without any
 problem. But I was told by manpage I could still use @daily
 instead. So I tried but failed. The system does nothing at
 all. It is not a big issue, but I just want to make
 sure it has nothing to do with my setting. Furthermore, I
 still want to start some program like fetchmail after
 reboot. Then I put @reboot in crontab. I also tried, and
 failed. Does anybody have any idea about this?

 Best,
 --
 Teng Wang
 --
 gentoo-user@lists.gentoo.org mailing list


There should be a single text file in /etc/cron.daily/ with the command you
want to run daily.   Like this:

$ cat /etc/cron.daily/esync
/usr/bin/esync

You also may need to make the file executable, so chmod +x
/etc/cron.daily/esync.  Mine syncs daily with this command.

-- 
- Mark Shields


[gentoo-user] vixie cron

2008-06-06 Thread Teng Wang
Hi there,

I am using vixie cron to maintain my scheduled
jobs. Everything is just fine other than one. I find that
when I use, for example, 0 * * * *  /usr/bin/eix-sync to
update the portage everyday, the cron works without any
problem. But I was told by manpage I could still use @daily
instead. So I tried but failed. The system does nothing at
all. It is not a big issue, but I just want to make
sure it has nothing to do with my setting. Furthermore, I
still want to start some program like fetchmail after
reboot. Then I put @reboot in crontab. I also tried, and
failed. Does anybody have any idea about this?

Best,
-- 
Teng Wang
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] vixie cron

2007-11-11 Thread Dan Farrell
On Sat, 10 Nov 2007 02:15:44 -0600
Teng Wang [EMAIL PROTECTED] wrote:

 I see, thank you!
 Do I need add news to /etc/cron.allow?

possibly.  
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] vixie cron

2007-11-10 Thread Malte Langermann

 hey all,

 Recently, I set up a local news server and want to fetch news by using
 vixie cron. For security, I want to drop root to news ( only news and
 root can run fetchnews). So I add one line in crontab by using
 crontab -e:

 */5 * * * * news fetchnews


 Actually, I just follow the examples from previous lines, which are


 0  *  * * * rootrm -f /var/spool/cron/lastrun/cron.hourly
 1  3  * * * rootrm -f /var/spool/cron/lastrun/cron.daily
 15 4  * * 6 rootrm -f /var/spool/cron/lastrun/cron.weekly
 30 5  1 * * rootrm -f /var/spool/cron/lastrun/cron.monthly
 */10  *  * * *  roottest -x /usr/sbin/run-crons 
 /usr/sbin/run-crons

 But, vixie seem cannot tell the user name from command, every time it
 will send me an system email says that root/news command not find.

 Can anybody tell me why it is so? Does vixie support to specify the
 user who run the command. Thank you.

Whith crontab -e as root user, you edit the crontab for the root user, where 
all entries are run as root and you can't set
another name. Use crontab -e -u news instead.



-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] vixie cron

2007-11-10 Thread Teng Wang
I see, thank you!
Do I need add news to /etc/cron.allow?
-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] vixie cron

2007-11-09 Thread Teng Wang

hey all,

Recently, I set up a local news server and want to fetch news by using
vixie cron. For security, I want to drop root to news ( only news and
root can run fetchnews). So I add one line in crontab by using
crontab -e:

*/5 * * * * news fetchnews


Actually, I just follow the examples from previous lines, which are


0  *  * * * rootrm -f /var/spool/cron/lastrun/cron.hourly
1  3  * * * rootrm -f /var/spool/cron/lastrun/cron.daily
15 4  * * 6 rootrm -f /var/spool/cron/lastrun/cron.weekly
30 5  1 * * rootrm -f /var/spool/cron/lastrun/cron.monthly
*/10  *  * * *  roottest -x /usr/sbin/run-crons 
/usr/sbin/run-crons

But, vixie seem cannot tell the user name from command, every time it
will send me an system email says that root/news command not find.

Can anybody tell me why it is so? Does vixie support to specify the
user who run the command. Thank you.

If not, is this a small bug in vixie ( when I read
/usr/share/doc/vixie*/crontab.bz2, I saw exactly the same configuration)?
-- 
[EMAIL PROTECTED] mailing list



AW: [gentoo-user] Vixie Cron

2007-11-03 Thread Zimmerling, Alexander

sean wrote:
 How is vixie-cron setup to accept remote connections?
 
 Thanks
 Sean

Forget this question, made a mistake.
--
[EMAIL PROTECTED] mailing list

:)

I've got another question. I recognized that vixie-cron stopped working
after the last reboot of my server. I had to restart vixie-cron to get
it back to work.

Was this just a little error, or does anybody else recognized such a
problem?

kind regards

Alex
--
[EMAIL PROTECTED] mailing list



Re: AW: [gentoo-user] Vixie Cron

2007-11-03 Thread Rick van Hattem
On Saturday 03 November 2007, Zimmerling, Alexander wrote:
 sean wrote:
  How is vixie-cron setup to accept remote connections?
 
  Thanks
  Sean
 
 Forget this question, made a mistake.
 --
 [EMAIL PROTECTED] mailing list
 
 :)

 I've got another question. I recognized that vixie-cron stopped working
 after the last reboot of my server. I had to restart vixie-cron to get
 it back to work.

 Was this just a little error, or does anybody else recognized such a
 problem?

 kind regards

 Alex

I'm just guessing here, but have you added vixie-cron to your runlevel?

(e.g. rc-update add vixie-cron default)

-- 
Rick van Hattem Rick.van.Hattem(at)Fawo.nl


signature.asc
Description: This is a digitally signed message part.


AW: AW: [gentoo-user] Vixie Cron

2007-11-03 Thread Zimmerling, Alexander
On Saturday 03 November 2007, Zimmerling, Alexander wrote:
 sean wrote:
  How is vixie-cron setup to accept remote connections?
 
  Thanks
  Sean
 
 Forget this question, made a mistake.
 --
 [EMAIL PROTECTED] mailing list
 
 :)

 I've got another question. I recognized that vixie-cron stopped 
 working after the last reboot of my server. I had to restart 
 vixie-cron to get it back to work.

 Was this just a little error, or does anybody else recognized such a 
 problem?

 kind regards

 Alex

I'm just guessing here, but have you added vixie-cron to your runlevel?

(e.g. rc-update add vixie-cron default)

-- 
Rick van HattemRick.van.Hattem(at)Fawo.nl


I'm very sure ;)

rc-status reports 'running' but cronjobs are not been lauched

greetings

Alex
--
[EMAIL PROTECTED] mailing list



[gentoo-user] Vixie Cron

2007-11-02 Thread sean

How is vixie-cron setup to accept remote connections?

Thanks
Sean
--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Vixie Cron

2007-11-02 Thread Steve Dommett
On Friday 02 November 2007, sean wrote:
 How is vixie-cron setup to accept remote connections?
Eh?  Why would a cron daemon need to accept connections, what does that even 
mean in the context of cron?
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Vixie Cron

2007-11-02 Thread sean

sean wrote:

How is vixie-cron setup to accept remote connections?

Thanks
Sean


Forget this question, made a mistake.
--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Vixie-Cron /bin/sh: root: command not found

2007-01-07 Thread norman
Hi Richard, thank you for your reply, I will look at these more closely as for 
the moment I have not set a user specific cron, I am just using the root to run 
these.

All I did was follow the tutorial, perhaps I have missed some points ;(

Cheers

Norman

Richard Fish [EMAIL PROTECTED] wrote: On 1/5/07, norman  wrote:
 Hello,
 I am running vixie-cron, but am unable to figure out what this is all about,
 I have followed the
 http://www.gentoo.org/doc/en/cron-guide.xml

 But on the report email, I only get on the email, the following:

 /bin/sh: root: command not found

 Here is my /etc/crontab

That's the system crontab, which should have a user field in it.  How
about your user-specific crontab from /var/spool/cron/crontabs/ ?
That should *not* have a user field in it AFAIK.

-Richard
-- 
gentoo-user@gentoo.org mailing list



 Send instant messages to your online friends http://uk.messenger.yahoo.com 

Re: [gentoo-user] Vixie-Cron /bin/sh: root: command not found

2007-01-05 Thread Richard Fish

On 1/5/07, norman [EMAIL PROTECTED] wrote:

Hello,
I am running vixie-cron, but am unable to figure out what this is all about,
I have followed the
http://www.gentoo.org/doc/en/cron-guide.xml

But on the report email, I only get on the email, the following:

/bin/sh: root: command not found



Here is my /etc/crontab


That's the system crontab, which should have a user field in it.  How
about your user-specific crontab from /var/spool/cron/crontabs/ ?
That should *not* have a user field in it AFAIK.

-Richard
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] vixie-cron and ssmtp

2006-09-15 Thread Troy Curtis Jr

On 9/15/06, David Grant [EMAIL PROTECTED] wrote:

Forget it, I gave up on ssmtp as it is the problem. I've now gone to postfix
and it is so much easier. Setting up postfix involed 3 simple steps. Setting
relayhost in /etc/postfix/main.cf and creating .forward files in root and
normal user directories. ssmtp should be tree-cleaned. It's not even
maintained upstream and it sucks wind.

David


On 9/14/06, David Grant [EMAIL PROTECTED] wrote:





 On 9/14/06, David Grant  [EMAIL PROTECTED]  wrote:

 
 
 
 
 
 
  Hmm, it turns out that setting MAILTO=root in my own user's crontab
makes it send mail. MAILTO=root is already in /etc/cron/crontab by the way
so this is all very strange.



 I tried setting MAILTO=david and that didn't work. I decided ssmtp might
be the problem, so I isolated it and tried this:

 1. echo test |mail -s testing ssmtp to external [EMAIL PROTECTED]
 2. echo test |mail -s testing ssmtp mail to root root
 3. echo test |mail -s testing ssmtp mail to david david
 4. echo test |mail -s testing ssmtp mail to sarah sarah

 1. The first one worked. So ssmtp can send to external addresses fine.

 2. The second one worked. So ssmtp can look at the root= command (which
tells it where to send mail to user ids  1000) properly and send to
whatever root= is set to.

 3. The third one didn't work. So for some reason I can't send mail to a
normal user. But maybe something is weird with that user. I used to run a
mail server on this machine with that user
(postfix/procmail/blah/blah/blah) so maybe some leftover
thing was screwing things up.

 4. Sending mail to this user didn't work either. The users in 3. and 4.
are both in /etc/ssmtp/revaliases. User 3 is in the 'mail' group (does that
even matter) and I tried user 4. with and without that user in the
revaliases file.

 It looks like maybe ssmtp isn't seeing my revaliases file? Or maybe I'm
not using is properly?

 david:[EMAIL PROTECTED]:smtp.vc.shawcable.net
 sarah:[EMAIL PROTECTED] :smtp.vc.shawcable.net



 --
 David Grant
 http://www.davidgrant.ca



--
David Grant
http://www.davidgrant.ca


I totally agree.  I have never even been able to get it to compile
cleanly.  It was the first failed emerge that I had to troubleshoot
when I started using Gentoo.  Later, it prompted me to drop to good
'ol CLI install when I was doing the 2006.0 install.  Postfix has
always been good to me.  I am glad to see that someone else is as fed
up with it as I am, why is it still around??

Troy
--
Beware of spyware. If you can, use the Firefox browser. - USA Today
Download now at http://getfirefox.com
Registered Linux User #354814 ( http://counter.li.org/)
--
gentoo-user@gentoo.org mailing list



[gentoo-user] vixie-cron and ssmtp

2006-09-14 Thread David Grant
Cron is sending out an email for jobs run as user root, but not for cron jobs run as my normal user? Yet the funny thing is, when cron runs jobs as normal user, it still actually sends the mail to root (see /etc/crontab). And on the command line, I see the same thing either way:
Sep 14 14:43:01 sonata cron[16727]: (david) CMD (/home/david/scripts/encryptPass.pl)Sep 14 14:43:01 sonata cron[16725]: (root) CMD (/home/david/scripts/encryptPass.pl)Sep 14 14:43:02 sonata sSMTP[16728]: Sent mail for 
[EMAIL PROTECTED] (221 2.3.0 Bye received. Goodbye.)Sep 14 14:43:02 sonata sSMTP[16729]: Sent mail for [EMAIL PROTECTED]
 (221 2.3.0 Bye received. Goodbye.)Can anyone else repeat this behaviour?-- David Granthttp://www.davidgrant.ca


Re: [gentoo-user] vixie-cron and ssmtp

2006-09-14 Thread Neil Bothwick
On Thu, 14 Sep 2006 14:43:30 -0700, David Grant wrote:

 Cron is sending out an email for jobs run as user root, but not for cron
 jobs run as my normal user? Yet the funny thing is, when cron runs jobs
 as normal user, it still actually sends the mail to root
 (see /etc/crontab).

You seem to be contradicting yourself here; first you say user cron jobs
don't send mail, then you say they send mail to root. Which is it?

Either way, the solution may be to set MAILTO in your user's crontab.


-- 
Neil Bothwick

There was a young man from the border
Who had an attention disorder.
When he reached the last line
He would run out of time
And


signature.asc
Description: PGP signature


Re: [gentoo-user] vixie-cron and ssmtp

2006-09-14 Thread David Grant
On 9/14/06, Neil Bothwick [EMAIL PROTECTED] wrote:
On Thu, 14 Sep 2006 14:43:30 -0700, David Grant wrote: Cron is sending out an email for jobs run as user root, but not for cron jobs run as my normal user? Yet the funny thing is, when cron runs jobs
 as normal user, it still actually sends the mail to root (see /etc/crontab).You seem to be contradicting yourself here; first you say user cron jobsdon't send mail, then you say they send mail to root. Which is it?
Well I'm not contradicting myself intentionally... I should have been more clear. I'll do a better job this time:Cron is trying to send out an email for jobs run as user root to and succeeding. Cron is also trying to send out an email for jobs run as a normal user but it seems to fail at this. Both cron jobs (whether run as user root or normal user) are both trying to send the email to the root user.
Either way, the solution may be to set MAILTO in your user's crontab.
I could try this, although I as I said it seems like both jobs run as root and normal user are both being sent to user root (according to the MAILTO)-- David Grant
http://www.davidgrant.ca


Re: [gentoo-user] vixie-cron and ssmtp

2006-09-14 Thread David Grant
On 9/14/06, David Grant [EMAIL PROTECTED] wrote:
On 9/14/06, Neil Bothwick 
[EMAIL PROTECTED] wrote:
On Thu, 14 Sep 2006 14:43:30 -0700, David Grant wrote: Cron is sending out an email for jobs run as user root, but not for cron jobs run as my normal user? Yet the funny thing is, when cron runs jobs

 as normal user, it still actually sends the mail to root (see /etc/crontab).You seem to be contradicting yourself here; first you say user cron jobsdon't send mail, then you say they send mail to root. Which is it?
Well I'm not contradicting myself intentionally... I should have been more clear. I'll do a better job this time:Cron is trying to send out an email for jobs run as user root to and succeeding. Cron is also trying to send out an email for jobs run as a normal user but it seems to fail at this. Both cron jobs (whether run as user root or normal user) are both trying to send the email to the root user.
Either way, the solution may be to set MAILTO in your user's crontab.

I could try this, although I as I said it seems like both jobs run as root and normal user are both being sent to user root (according to the MAILTO)
Hmm, it turns out that setting MAILTO=root in my own user's crontab makes it send mail. MAILTO=root is already in /etc/cron/crontab by the way so this is all very strange.-- David Grant
http://www.davidgrant.ca


Re: [gentoo-user] vixie-cron and ssmtp

2006-09-14 Thread David Grant
On 9/14/06, David Grant [EMAIL PROTECTED]
 wrote:

Hmm, it turns out that setting MAILTO=root in my own user's crontab makes it send mail. MAILTO=root is already in /etc/cron/crontab by the way so this is all very strange.

I tried setting MAILTO=david and that didn't work. I decided ssmtp might be the problem, so I isolated it and tried this:1. echo test |mail -s testing ssmtp to external 

[EMAIL PROTECTED]2. echo test |mail -s testing ssmtp mail to root root3. echo test |mail -s testing ssmtp mail to david david4. echo test |mail -s testing ssmtp mail to sarah sarah
1. The first one worked. So ssmtp can send to external addresses fine.
2. The second one worked. So ssmtp can look at the root= command (which tells it where to send mail to user ids  1000) properly and send to whatever root= is set to.3. The third one didn't work. So for some reason I can't send mail to a normal user. But maybe something is weird with that user. I used to run a mail server on this machine with that user (postfix/procmail/blah/blah/blah) so maybe some leftover thing was screwing things up.
4. Sending mail to this user didn't work either. The users in 3. and 4. are both in /etc/ssmtp/revaliases. User 3 is in the 'mail' group (does that even matter) and I tried user 4. with and without that user in the revaliases file.
It looks like maybe ssmtp isn't seeing my revaliases file? Or maybe I'm not using is properly?david:[EMAIL PROTECTED]:smtp.vc.shawcable.netsarah:[EMAIL PROTECTED]
:smtp.vc.shawcable.net-- David Granthttp://www.davidgrant.ca




[gentoo-user] vixie-cron inconsistencies

2006-07-22 Thread Hans de Hartog
The cron manpage says that /etc/crontab should have mode 0600.
However, it is installed with 0644.

A /etc/cron.deny is installed without any users in it which
means (according to crontab(1)) that all users are allowed
to work with crontab.
However, /usr/bin/crontab has mode 4710 which means that you
must be member of the group cron to be able to use crontabs.

Should I report a bug?
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] vixie-cron inconsistencies

2006-07-22 Thread Hans de Hartog
Hans de Hartog wrote:

The cron manpage says that /etc/crontab should have mode 0600.
However, it is installed with 0644.

A /etc/cron.deny is installed without any users in it which
means (according to crontab(1)) that all users are allowed
to work with crontab.
However, /usr/bin/crontab has mode 4710 which means that you
must be member of the group cron to be able to use crontabs.

Should I report a bug?
  

No, I shouldn't. Already done: 60086 and 122876
Sorry, I should have searched bugtrack first.
-- 
gentoo-user@gentoo.org mailing list