[osol-discuss] bug or change of semantics?
Thomas Maier-Komor
thomas at maier-komor.de
Thu Jan 4 12:36:24 PST 2007
Casper.Dik at Sun.COM wrote:
>> Hi,
>>
>> I observed the following behavior concerning the readability of directory content that I don't und
> erstand. 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 exec
> utable by the user calling ls...
>> Can anybody explain this change in behavior?
>
> There is no such change in behaviour (none that I can reproduce).
>
> What does "ppriv $$" say in the first case?
>
> Casper
>
You got it. I totally forgot about /etc/user_attr and file_dac_read...
Thanks.
More information about the opensolaris-discuss
mailing list