[osol-discuss] bug or change of semantics?
Thomas Maier-Komor
thomas at maier-komor.de
Thu Jan 4 12:20:24 PST 2007
Hi,
I observed the following behavior concerning the readability of directory content that I don't understand. This occurred on both Solaris releases with UFS filesystems.
thomas at azalin:/var/a$ uname -a
SunOS azalin 5.10 Generic_118833-33 sun4u sparc SUNW,Sun-Blade-2500
thomas at azalin:/var/a$ id
uid=1000(thomas) gid=1000(thomas)
thomas at azalin:/var/a$ ls -ld chris
drwx------ 2 chris chris 512 Jan 4 21:04 chris/
thomas at azalin:/var/a$ ls -l chris
ls: chris/a: Permission denied
total 0
thomas at grima:/var/tmp$ uname -a
SunOS grima 5.8 Generic_117350-43 sun4u sparc SUNW,Ultra-60
thomas at grima:/var/tmp$ id
uid=1000(thomas) gid=1000(thomas)
thomas at grima:/var/tmp$ ls -ld chris
drwx------ 2 chris chris 512 Jan 4 20:51 chris/
thomas at grima:/var/tmp$ ls -l chris
ls: chris: Permission denied
As you can see, ls lists the name of files within the directory which is neither readable nor executable by the user calling ls...
Can anybody explain this change in behavior?
TIA,
Tom
This message posted from opensolaris.org
More information about the opensolaris-discuss
mailing list