Red Hat Bugzilla – Bug 121292
ls -lZ displays owner as "root" even when it can't stat the file
Last modified: 2007-11-30 17:10:40 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (compatible; Konqueror/3.2; Linux) (KHTML, like Gecko)
Description of problem:
?--------- root root (null) oracle
Above is a line from "ls -lZ /" on my Fedora play machine.
lstat64("oracle", 0x905398c) = -1 EACCES (Permission denied)
Above is a line from the strace output of the above ls command, note that the stat fails and therefore the ls command can't know what UID owns the file/directory in question. In this test it is uid 100.
The UID and GID fields should be changed from "root" to be either "?" characters or spaces.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Run SE Linux on your machine, login as a user_r user and run
"ls -lZ /". Note that "ls -l /" gives correct results.
Confirmed. Should be fixed in coreutils-5.2.1-6.
As this has been fixed for ages (and is fixed in FC5) I think it should be