Re: shell reported time different for root , and user ...

"Adam T. Bowen" <[email protected]>
Newsgroups org.kernel.vger.linux-admin
Message-ID <[email protected]>
terry white wrote:
>     i have a prompt that looks like:
> 
>      "yossarian  - 01:35:40 - tty8
>       [ root ] /usr/share/zoneinfo
>       #"
> 
>     on another system.  'date' offers the correct time.  however, when i
> login as 'twhite' the time given is UTC, but 'date' offers the correct
> time.
> 
>     i've made "localtime" 'America/Los_Angeles', and 'PST8PDT", with
> "etc/sysconfig/clock" set as both the above, and still unable to get
> it to work, and worse yet, figure out what i'm missing.

Has twhite got a timezone set using the TZ environment variable?  You 
could try putting a couple of date commands in the shell rc file around 
where you set the prompt and see what timezone is reported when you 
start a new shell.

What is your /etc/localtime file set to?  If it is a soft-link what 
timezone file is it pointing to?  If it is a binary file, what does:

   tail -1 /etc/localtime

give you?

Cheers

Adam
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.