Bug 102974
Summary: | Changing timezone breaks /etc/localtime perms so UTC time is displayed instead | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Tim Garlick <garlick> |
Component: | redhat-config-date | Assignee: | Brent Fox <bfox> |
Status: | CLOSED RAWHIDE | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 9 | CC: | rahul |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i686 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2004-03-11 15:00:10 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Tim Garlick
2003-08-24 00:23:44 UTC
I'm confused. At first, you are talking about the file permissions on /etc/localtime getting changed to 600. I am not able to reproduce this behavior with redhat-config-date-1.5.15-2. For me, the ownership never changes from 644. Resolving as 'worksforme'. I am having the same problem with both redhat-config-date-1.5.15-1 and redhat-config-date-1.5.15-2. Only for root the 'date' command returns the time in PDT, regular users get the UTC version. The permissions on /etc/localtime are wrong (600). I can confirm this bug. Changing /etc/localtime to 644 solves the problem. System is fully updated to rawhide as of 10/29/2003. The problem is that /etc/localtime is created by redhat-config-date without changing permissions. If the umask is 022, no problem, but if the umask is 077, /etc/localtime does not get read permissions. When creating files, please do not rely on the umask. This time it was luckily not a security problem, just a loss of functionality. Unless the umask is 000, but nobody is that stupid. (I can't reopen this bug since I'm not the submitter.) I am re-opening this bug. I didn't think of the umask, but I'm not making my umask be less secure just so I can change the date when I travel. I have learned to just chmod /etc/localtime as root when I get to a new timezone, but it would be a lot better for redhat-config-date to set the permissions explicitly. The following code in timezoneBackend.py should force the umask on /etc/localtime to be 644: try: os.chmod("/etc/localtime", 0644) except OSError, (errno, msg): print (_("Changing permission of timezone: %s") % (msg)) Please reopen this bug if you see this behavior with system-config-date-1.7.2-1 in Rawhide. |