- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Date differrent for root and other users
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
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
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
08-13-2003 09:24 PM
08-13-2003 09:24 PM
Date differrent for root and other users
If I log into my HPUX 11.11 L300-8x server as root and type "date" the EST date which is correct displays.However if all other users log in and type "date" they get the date in EDT format.
Can anyone shed some light on this.All info will be appreciated.
Regards,
Mille
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2003 09:31 PM
08-13-2003 09:31 PM
Re: Date differrent for root and other users
Is the TZ variable different between root and the other users ?
echo $TZ
Regards,
Tom Geudens
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2003 09:36 PM
08-13-2003 09:36 PM
Re: Date differrent for root and other users
Looks like the user and root are getting a different timezone from somewhere.
When each user logs on, they should get the timezone from /etc/profile (which looks to /etc/TIMEZONE) and then runs the local .profile for each user. Have a look in ~root/.profile and ~user/.profile and compare any differences.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2003 09:43 PM
08-13-2003 09:43 PM
Re: Date differrent for root and other users
Check the TZ env variable for root and other users. It may be different.
HTH,
Umapathy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2003 09:44 PM
08-13-2003 09:44 PM
Re: Date differrent for root and other users
Check the ".profile" of root user and "/etc/profile". Look for lines like:
TZ=EST ( or EDT )
export TZ
Compare it with other user ".profile".
Also check the file "/etc/TIMEZONE".
Maybe some of that files is using the incorrect format.
Hope this helps.
Regards,
Zigor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2003 10:10 PM
08-13-2003 10:10 PM
Re: Date differrent for root and other users
Thanks I should have added that I had checked /etc/TIMEZONE and all profiles and there is nothing strange.I have added the correct TZ to users ".profile" as a way to fix it until I find out "why" this is happening.
Regards,
Mille
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2003 10:21 PM
08-13-2003 10:21 PM
Re: Date differrent for root and other users
As said, /etc/profile should read /etc/TIMEZONE and set TZ properly. It is not recommended to change/update in users profiles.
Check, for any other script called from /etc/profile which modifies the TZ.
HTH,
Umapathy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2003 10:44 PM
08-13-2003 10:44 PM
Re: Date differrent for root and other users
I think the problem is that /etc/profile is not being read.All perms etc are OK so I do not understand.I added a string export MILLE=test1 , when I log in as root and "echo $MILLE" test1 displays but not when I log in as another user.
Regards,
Milos
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2003 10:47 PM
08-13-2003 10:47 PM
Re: Date differrent for root and other users
Thanks to all replies , I appreciate the response.The problem was the /etc/profile had no READ perm for users.Should have been my first port of call.
REgards,
MILLE