[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 220
  • Last Modified:

File dates are wayyy off

I have files from the future somehow. Like from 2038...some from the past in 1969...very odd. Running SunOS 5.10. Any ideas what happened?
0
cipherlogic
Asked:
cipherlogic
  • 5
  • 2
1 Solution
 
GiladnCommented:
Hi,

are you using NTP? (xntpd)
check if it's running..
also check the file /etc/ntp.conf for errors..
0
 
cipherlogicAuthor Commented:
Hello,
NTP is not used or configured.

Note, only a few files are in this state. A few hundred, but a few by comparison .
0
 
GiladnCommented:
Ok..this must be the dates of modification.
What are you using for backups?
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
cipherlogicAuthor Commented:
Bacula.
0
 
cipherlogicAuthor Commented:
I suspected a script from another question has done this. This is what the author of the script said.
"The dates of 1969 and 2038 are actually *common* to see in UNIX.  Those are a datestamp of 0 (Jan 1, 1969) and the a datestamp of 2^32 (2038).  So either you are passing a 0 or a really big number to get dates of those times."

The code:

#!/usr/bin/ksh
a=$( /usr/bin/date "+%Y%m%d%H%M" )
a=$(( $a - 10 ))
/usr/bin/touch -t $a /tmp/dummy
/usr/bin/find /file/path -newer /tmp/dummy -exec ls -lat {} \; >> /logfile
0
 
cipherlogicAuthor Commented:
Its just something that happens on old ass SunOS boxes...apparently.
0
 
cipherlogicAuthor Commented:
I don't know how else to kill a question off...wth am I doing?
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 5
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now