Bruno wrote:
> Did not work. I tried the commands (echo $TZ, env -i date -R) as
> regular user and then as root. Bellow, the results (">" precedes all
> comands just to show the prompt lines.

When things behave differently between root and non-root and the
environment is the same then I would suspect permission issues.
Probably root can read a file that has restrictive permissions for the
non-root user.

> > [EMAIL PROTECTED] ~]$ env -i date -R
> > Tue, 18 Sep 2007 22:19:27 +0000

Note the non-root user is UTC.

> > [EMAIL PROTECTED] ~]# env -i date -R
> > Tue, 18 Sep 2007 19:20:01 -0300

The root user is -0300.

> > [EMAIL PROTECTED] ~]# cat /etc/timezone
> > America/[EMAIL PROTECTED] ~]#

I expected to see a newline on the end of that file.

Try these things.  I suspect that the non-root user is not able to
read the timezone file or perhaps the localtime file.

  LC_ALL=C strace -e trace=file date -R

Also what are the permissions on the /etc/localtime file?

  ls -ld /etc/localtime

  ls -ldL /etc/localtime

Bob


_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to