From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 1327 invoked from network); 3 Nov 1999 16:48:03 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 3 Nov 1999 16:48:03 -0000 Received: from mail1.digital.com (mail1.digital.com [204.123.2.50]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id LAA24421 for ; Wed, 3 Nov 1999 11:48:02 -0500 Received: from pachyderm.pa.dec.com (pachyderm.pa.dec.com [16.4.16.23]) by mail1.digital.com (8.9.2/8.9.2/WV2.0g) with ESMTP id IAA02228; Wed, 3 Nov 1999 08:48:00 -0800 (PST) Received: by pachyderm.pa.dec.com; id IAA07627; Wed, 3 Nov 1999 08:47:59 -0800 (PST) Date: Wed, 3 Nov 1999 08:47:59 -0800 (PST) From: jg@pa.dec.com (Jim Gettys) Message-Id: <199911031647.IAA07627@pachyderm.pa.dec.com> X-Mailer: Pachyderm (client lkgdhcp-20-64-75.lkg.dec.com, user jg) To: axp-list@redhat.com cc: Todd Henderson In-Reply-To: <38205760.9FFDF614@readwo.com> Subject: Re: Where does Linux get the date from? Mime-Version: 1.0 Content-Type: text/plain 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