- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Date Command: Telnet & SSH Differ
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-25-2003 01:09 PM
тАО03-25-2003 01:09 PM
under telnet connect:
$ Tue Mar 25 16:02:34 EST 2003
which is wrong!
under ssh connect:
Tue Mar 25 13:06:59 PST 2003
which is correct
How do I fix/ adjust telnet to give the correct time?
And I thought that date/time were controlled by set_parms timezone, etc/profile, /etc/TIMEZONE and .profile, .login, .cshrc settings...
-karlski
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-25-2003 01:15 PM
тАО03-25-2003 01:15 PM
Re: Date Command: Telnet & SSH Differ
As soon as you connect - either way - do
echo $TZ
This is the env parm that controls how time/date will be *displayed*.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-25-2003 01:17 PM
тАО03-25-2003 01:17 PM
Re: Date Command: Telnet & SSH Differ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-25-2003 01:43 PM
тАО03-25-2003 01:43 PM
Re: Date Command: Telnet & SSH Differ
This appears to be related in some odd way to telnet itself not picking up the timezone adjustments as they are normally done with the typical files/commands. Does anyone know if telnetd caches the time if say, a machine is set to EST and then switches to PST?
-karl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-25-2003 01:50 PM
тАО03-25-2003 01:50 PM
Re: Date Command: Telnet & SSH Differ
The /etc/TIMEZONE, if the file exists, is your default timezone (have a look at /etc/profile). BUT the user can change this in his / her environment by setting TZ in their own .profile, .cshrc, or whatever is appropriate for their shell.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-25-2003 01:53 PM
тАО03-25-2003 01:53 PM
Solution/etc/profile sources for certain when a user telnets in.
ssh. Looks like it sources the file too.
my echo $TZ shows the same value whether I connect via ssh or telnet.
I did this:
env > telnet.env with the telnet session.
env > ssh.env with the ssh login
diff ssh.env telnet.env
[5003#] diff ssh.env telnet.env
4d3
< SSH_TTY=/dev/pts/0
11d9
< USER=root
16d13
< SSH_CLIENT=10.1.11.60 49692 22
So, there should not be differences.
I know this probably isn't helpful but it must be something else.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-29-2003 03:10 PM
тАО07-29-2003 03:10 PM