LinuxQuestions.org

LinuxQuestions.org (http://www.linuxquestions.org/questions/index.php)
-   Linux - General (http://www.linuxquestions.org/questions/forumdisplay.php?f=1)
-   -   How to set user specific Time Zone in RHEL (http://www.linuxquestions.org/questions/showthread.php?t=4175437763)

rajaniyer123 11-19-2012 03:32 AM

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

unSpawn 11-19-2012 04:36 AM

Export TZ value from users own shell profile file(s).

DavidMcCann 11-19-2012 12:14 PM

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.


All times are GMT -5. The time now is 05:01 AM.