LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 11-19-2012, 04:32 AM   #1
rajaniyer123
Member
 
Registered: Feb 2004
Location: BARODA, GUJARAT
Posts: 259

Rep: Reputation: 30
How to set user specific Time Zone in RHEL


Hi,

Is this possible to set the User Specific TimeZOne in Linux.

i.e.

User 1 when login he should et timezone of IST
User 2 when login he should et timezone of CET

Please suggest.


Thanks
Rajan
 
Old 11-19-2012, 05:36 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,561
Blog Entries: 54

Rep: Reputation: 2927Reputation: 2927Reputation: 2927Reputation: 2927Reputation: 2927Reputation: 2927Reputation: 2927Reputation: 2927Reputation: 2927Reputation: 2927Reputation: 2927
Export TZ value from users own shell profile file(s).
 
1 members found this post helpful.
Old 11-19-2012, 01:14 PM   #3
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 3,189

Rep: Reputation: 813Reputation: 813Reputation: 813Reputation: 813Reputation: 813Reputation: 813Reputation: 813
If that's a bit bare,
1. Find the correct name of your zones with the "tzselect" command
2. Create a ~/.profile for each user.
3. Write
TZ="Asia/Calcutta"; export TZ
(or whatever the zone name is) to that file.

Last edited by DavidMcCann; 11-20-2012 at 11:48 AM.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Set Time Zone under xfce cccc Debian 2 03-17-2011 12:17 PM
Time skew of 580 min when I set my time zone in Gentoo scooter2 Linux - Newbie 1 03-05-2009 11:27 AM
Cannot set time/date to other time zone than UTC (Kubuntu) jamangold Ubuntu 1 12-23-2005 06:42 PM
New server: set time zone to GMT? k1mgy Red Hat 3 12-19-2004 01:22 AM
Local Time zone must be set ?? satanic_linux Slackware 2 02-08-2004 07:36 AM


All times are GMT -5. The time now is 03:20 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration