Why do 'find' and 'ls' act differently on ACLs

View: New views
2 Messages — Rating Filter:   Alert me  

Why do 'find' and 'ls' act differently on ACLs

by aputerguy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

As a newbie to Windoze/ACL security, I am probably missing something.
But...
Why do 'ls and 'find' seem to treat the ACL restrictions differently.

Specifically, 'ls /c/Documents and Settings/Administrators' works
while 'find /c/Documents and Settings/Administrators' returns:
   find: `/c/Documents and Settings/Administrator/': Permission denied

I would have thought that 'ls' and 'find' would be bound by the same ACL restrictions.

Am I missing something basic here in my understanding?

Re: Why do 'find' and 'ls' act differently on ACLs

by Steven Monai-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

aputerguy wrote:
> Why do 'ls and 'find' seem to treat the ACL restrictions differently.

They definitely should not. If they do, then there's a bug to be squashed.

> Specifically, 'ls /c/Documents and Settings/Administrators' works
> while 'find /c/Documents and Settings/Administrators' returns:
>    find: `/c/Documents and Settings/Administrator/': Permission denied

I cannot replicate this behaviour.

Can you provide a minimal test case that reliably demonstrates what
you're seeing? A short script that creates some data, sets some
particular ACLs, and then invokes 'ls' and 'find' would be ideal.

-SM
--


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple