From: Peter Humphrey <peter@prh.myzen.co.uk>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Odd cron errors
Date: Sun, 13 Jul 2014 21:08:38 +0100 [thread overview]
Message-ID: <2649286.lOTgMnVHH5@wstn> (raw)
In-Reply-To: <201407131730.45676.michaelkintzios@gmail.com>
On Sunday 13 July 2014 17:30:43 Mick wrote:
> On Sunday 13 Jul 2014 16:54:54 Dale wrote:
> > Dale wrote:
> > > Mick wrote:
> > >> Please try this: Go the PC that keeps getting these messages in its
> > >> logs. Run: $ chrony chronyc> password password:
> > >> <manually_enter_your_chrony_Passwd> If the passwd is wrong, or some
> > >> characters are incompatible with the terminal, then you will get:
> > >> "Password: 501 Not authorised --- Reply not authenticated" You can
> > >> test this by entering the wrong passwd initially. Unfortunately, I no
> > >> longer have the PC running chrony to test it here.
> > >
> > > Since I'm having the same issue:
> > >
> > > root@fireball / # chronyc password
> > > Password:
> > > 501 Not authorised --- Reply not authenticated
> > > root@fireball / #
> > >
> > > So, that answers that question. It seems a password needs to be set
> > > here.
> > >
> > > < scratches head >
> > >
> > > It also seems we have the default setup and we all get this error at the
> > > same time. I got mine just a bit ago.
> > >
> > > Dale
> > >
> > > :-) :-)
> >
> > Update. This *SEEMS* to make it happy.
> >
> > /etc/chrony/chrony.keys
> >
> > Make it look something like this:
> >
> > 1 testchrony
> > 2 MD5 HEX:B028F91EA5D93D06C2E140B26C7F41EC
> > 3 SHA1 HEX:1DC764E07B1911FA67EFC7ECBC4B0D73F68A070C
> >
> > The password is behind #1. You also need this file set up too.
> >
> > /etc/chrony/chrony.conf
> >
> > This is the key part:
> >
> > # Tell chronyd which numbered key in the file is used as the password
> > # for chronyc. (You can pick any integer up to 2**32-1. '1' is just a
> > # default. Using another value will _NOT_ increase security.)
> >
> > commandkey 1
> >
> > Should be able to just uncomment the thing. Restart chrony, or I guess
> > you could tell it to reload the config, then test again.
> >
> > root@fireball / # chronyc password
> > Password:
> > 200 OK
> > root@fireball / #
> >
> > Now let's see if I get a email with a error next week. o_O
>
> Right, you need to set up your /etc/chrony/chrony.keys file, but Peter said
> that he had configured all this.
Right, and so I had, but somewhere along the line the key had got lost. So
I've set it again and I'll see what happens next week.
Thanks for the prod, Mick.
--
Regards
Peter
prev parent reply other threads:[~2014-07-13 20:08 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-01 9:48 [gentoo-user] Odd cron errors Peter Humphrey
2014-07-01 10:57 ` Alan McKinnon
2014-07-01 13:12 ` Dale
2014-07-01 13:52 ` Peter Humphrey
2014-07-01 11:13 ` Mick
2014-07-01 14:01 ` Peter Humphrey
2014-07-13 9:20 ` Peter Humphrey
2014-07-13 10:15 ` Mick
2014-07-13 15:42 ` Dale
2014-07-13 15:54 ` Dale
2014-07-13 16:30 ` Mick
2014-07-13 20:08 ` Peter Humphrey [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2649286.lOTgMnVHH5@wstn \
--to=peter@prh.myzen.co.uk \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox