[lug] Why can't I set my date

Davide Del Vento davide.del.vento at gmail.com
Thu May 14 15:20:01 MDT 2015


Not a big help, but may provide clues. Try running

sudo date -s '+next month'; date; date; date; date

Which would run date as regular user faster than you can type, and see if
the new date stays there at least for a fraction of a second and then gets
rolled back.

For NTP, wouldn't help to putting the machine offline, so even if there's a
service running with a different name cannot be updated?

Another thing, try setting the clock in the BIOS (unless you need to do it
too many times...)

On Thu, May 14, 2015 at 1:48 PM, Michael Hirsch <mdhirsch at gmail.com> wrote:

> On Thu, May 14, 2015 at 1:38 PM, Stephen Queen <svqueen at gmail.com> wrote:
> > That is the behavior when you don't have root permission. Are you sure
> sudo
> > is set up correctly?
>
> Good question.  I think I'm working:
> [497] ~>date -s '+next month'
> date: cannot set date: Operation not permitted
> Sun Jun 14 13:47:13 MDT 2015
> [498] ~>sudo date -s '+next month'
> Sun Jun 14 13:47:16 MDT 2015
> [499] ~>date
> Thu May 14 13:47:17 MDT 2015
> [500] ~>
>
> So date at least thinks that it is allowed to do this.
>
> Thanks,
>
> Michael
>
> >
> > On Thu, May 14, 2015 at 1:20 PM, Michael Hirsch <mdhirsch at gmail.com>
> wrote:
> >>
> >> On Thu, May 14, 2015 at 1:09 PM, Stephen Queen <svqueen at gmail.com>
> wrote:
> >> > Try
> >> > sudo date -s '+next month'
> >>
> >> Thanks for the suggestion, but:
> >>
> >> [606] ~>sudo date -s '+next month'
> >> [sudo] password for mhirsch:
> >> Sun Jun 14 13:19:35 MDT 2015
> >> [607] ~>date
> >> Thu May 14 13:19:36 MDT 2015
> >> [608] ~>
> >>
> >> --Michael
> >>
> >> > On Thu, May 14, 2015 at 1:01 PM, Michael Hirsch <mdhirsch at gmail.com>
> >> > wrote:
> >> >>
> >> >> I'm testing some calendar sensitive stuff, so I'm trying set my
> Ubuntu
> >> >> desktop to be in the future.  Though I've set my clock hundreds of
> >> >> times in the past, it isn't working any more.
> >> >>
> >> >> I've tried the commandline:
> >> >> sudo date -s  "01 Sep 2015 12:53:00"
> >> >> sudo date -s 'next month'
> >> >> and a few dozen variations on this.  Date prints out the date I
> >> >> requestion, but the clock is actually unchanged:
> >> >>
> >> >> 595] $>sudo date -s 'next month'
> >> >> Sun Jun 14 12:58:35 MDT 2015
> >> >> [596] $>date
> >> >> Thu May 14 12:58:38 MDT 2015
> >> >> [597] $>
> >> >>
> >> >> I've also tried to use systemsettings (the KDE admin GUI) and it
> >> >> behaves similarly.  I set the date and press "Apply".  The gui seems
> >> >> to have a different date, but it refreshes in a few seconds with my
> >> >> original date and time.
> >> >>
> >> >> WTF?  This used to be easy.
> >> >>
> >> >> Oh, I was running ntpd but I turned it off.
> >> >>
> >> >> Any ideas?
> >> >>
> >> >> Cluelessly yours,
> >> >>
> >> >> Michael
> >> >> _______________________________________________
> >> >> Web Page:  http://lug.boulder.co.us
> >> >> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> >> >> Join us on IRC: irc.hackingsociety.org port=6667
> >> >> channel=#hackingsociety
> >> >
> >> >
> >> >
> >> > _______________________________________________
> >> > Web Page:  http://lug.boulder.co.us
> >> > Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> >> > Join us on IRC: irc.hackingsociety.org port=6667
> channel=#hackingsociety
> >> _______________________________________________
> >> Web Page:  http://lug.boulder.co.us
> >> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> >> Join us on IRC: irc.hackingsociety.org port=6667
> channel=#hackingsociety
> >
> >
> >
> > _______________________________________________
> > Web Page:  http://lug.boulder.co.us
> > Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> > Join us on IRC: irc.hackingsociety.org port=6667 channel=#hackingsociety
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: irc.hackingsociety.org port=6667 channel=#hackingsociety
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20150514/709c71d1/attachment.html>


More information about the LUG mailing list