LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How to set user specific Time Zone in RHEL (https://www.linuxquestions.org/questions/linux-general-1/how-to-set-user-specific-time-zone-in-rhel-4175437763/)

rajaniyer123 11-19-2012 04: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 05:36 AM

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

DavidMcCann 11-19-2012 01: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 04:34 AM.