From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 2910 invoked from network); 3 Nov 1999 17:00:40 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 3 Nov 1999 17:00:40 -0000 Received: from falcon.readwo.com (firewall-user@c130amp.readwo.com [207.141.96.9]) by mail.redhat.com (8.8.7/8.8.7) with SMTP id MAA25757 for ; Wed, 3 Nov 1999 12:00:39 -0500 Received: by falcon.readwo.com; id LAA18024; Wed, 3 Nov 1999 11:00:09 -0600 Received: from unknown(148.104.31.20) by falcon.readwo.com via smap (V5.0) id xma018016; Wed, 3 Nov 99 10:59:33 -0600 Received: from sonic.ctas.com by mailbox.ctas.com via SMTP (980427.SGI.8.8.8/) id KAA43073; Wed, 3 Nov 1999 10:52:49 -0600 (CST) Received: from readwo.com by sonic.ctas.com via ESMTP (950413.SGI.8.6.12/930416.SGI) id KAA10152; Wed, 3 Nov 1999 10:55:58 -0600 Sender: henders@readwo.com Message-ID: <3820691D.773E10C@readwo.com> Date: Wed, 03 Nov 1999 10:55:58 -0600 From: Todd Henderson X-Mailer: Mozilla 4.07 [en] (X11; U; IRIX64 6.4 IP30) MIME-Version: 1.0 To: Jim Gettys , axp-list@redhat.com Subject: Re: Where does Linux get the date from? References: <199911031647.IAA07627@pachyderm.pa.dec.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Thanks. It worked. I keep all of the email from the list on my workstation and looked through it, but I didn't find any I thought pretained to what the problem was. Anyway, thanks for the fix. Todd Jim Gettys wrote: > This needs to be a FAQ on various web sites: > - Jim > > Two pieces to the puzzle: How to get the CMOS set to the right year, > as some SRM consoles seem to have no way to set the time (causing > one to try to set it from ARC; unfortunately, there is a 19 year > difference in belief between the two.). Why the kernel doesn't > do this when you execute the date(8) command is beyond me... > > This is solved using the clock(8) command, which can be used > to update the CMOS clock to the current year in the right format. > > Then there is the problem of fixing the files you've installed. > > Per Michal Jaegerman: > Once you got > your clock runing ok the simplest "fix" is to do the > following: > > touch /tmp/now > find / -newer /tmp/now | xargs touch > rm /tmp/now > > This will reset all dates "in advance" to the current time. Not the > best solution but it works. You can get fancier if you wish as > 'touch' allows you to set dates on files to whatever you wish, so > you can read them and set them back by a fixed number of years in a > shell script (or perl, or awk, or ...). > > This will not change dates on symbolic links but this is minor in a > sense. > > Hope this helps... > - Jim Gettys