Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
10-17-2002, 12:48 PM
|
#1
|
|
LQ Newbie
Registered: Oct 2002
Location: Chi Town
Posts: 4
Rep:
|
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?
|
|
|
|
10-17-2002, 01:02 PM
|
#2
|
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,470
Rep: 
|
What is the time you see in lastlog? Is it +6h?
|
|
|
|
10-17-2002, 06:41 PM
|
#3
|
|
LQ Newbie
Registered: Oct 2002
Location: Chi Town
Posts: 4
Original Poster
Rep:
|
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?
|
|
|
|
10-18-2002, 05:06 AM
|
#4
|
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,470
Rep: 
|
 So I guess your ntpd is downloading UTC time and your system is using your local time?
|
|
|
|
10-18-2002, 07:26 AM
|
#5
|
|
LQ Newbie
Registered: Oct 2002
Location: Chi Town
Posts: 4
Original Poster
Rep:
|
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.
|
|
|
|
10-18-2002, 01:58 PM
|
#6
|
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,470
Rep: 
|
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.
|
|
|
|
10-22-2002, 12:09 PM
|
#7
|
|
LQ Newbie
Registered: Oct 2002
Location: Chi Town
Posts: 4
Original Poster
Rep:
|
Marla,
You can just edit the clock file in /etc/sysconfig...
UTC=false
ZONE=znehCDT
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:17 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|