LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-17-2002, 12:48 PM   #1
jcmj
LQ Newbie
 
Registered: Oct 2002
Location: Chi Town
Posts: 4

Rep: Reputation: 0
lastlog date does not match system date?


I am using ntpd to get the UTC clock and that is correct. I then have set up the TZ in the default profile as TZ=CST6CDT for Chicago and it is fine. However when you login, Last Login: display a time other than the system time as specified in date. Seems it is getting it from two independent sources? How do I change the date used in lastlog?
 
Old 10-17-2002, 01:02 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
What is the time you see in lastlog? Is it +6h?
 
Old 10-17-2002, 06:41 PM   #3
jcmj
LQ Newbie
 
Registered: Oct 2002
Location: Chi Town
Posts: 4

Original Poster
Rep: Reputation: 0
lastlog date

Mara, I believe it is +5 do to the fact of CST6CDT on the TZ setting In a wek it will propabaly be +6.

Any idea on how to line them up?
 
Old 10-18-2002, 05:06 AM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
So I guess your ntpd is downloading UTC time and your system is using your local time?
 
Old 10-18-2002, 07:26 AM   #5
jcmj
LQ Newbie
 
Registered: Oct 2002
Location: Chi Town
Posts: 4

Original Poster
Rep: Reputation: 0
lastlog posting date

Mara, that may be true and if it is for a Systems admin person it would be better to align the lastlog time with the local time..

Reading a log and having to caculate a time shift to see when things really happened is a pain.
 
Old 10-18-2002, 01:58 PM   #6
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Ntpd has problems with timezones, as far as I know. I use chronyd. When you run it this way
chronyd -r -s
It should set the right time.
 
Old 10-22-2002, 12:09 PM   #7
jcmj
LQ Newbie
 
Registered: Oct 2002
Location: Chi Town
Posts: 4

Original Poster
Rep: Reputation: 0
Marla,

You can just edit the clock file in /etc/sysconfig...

UTC=false
ZONE=znehCDT
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Start Date + Time Duration = End Date/Time calculator? ToBe Linux - General 3 09-26-2005 10:17 AM
system date tipsy Debian 5 08-07-2005 08:17 PM
date of linux system pragti Programming 1 06-09-2004 01:24 AM
Change system time or date or both lel800 Linux - Newbie 6 10-28-2003 07:00 PM
call for system date in c mr.moto Programming 2 09-30-2002 03:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration