[clug] Permissions

Keith Goggin lroyjh at gmail.com
Thu Dec 17 09:56:32 UTC 2015


On 17/12/15 17:36, Brett Worth wrote:
> On 17/12/15 17:18, Keith Goggin wrote:
>> Is there an easy way to check the permissions of all files and 
>> subdirectories of a given
>> directory?
>>
>> Specifically a way to list files that the user does not have read 
>> permissions for.
>
> Here's what I would do:
>
>     $ find . -exec test -r {} \; -o -ls
>
> Or if you don't want a full ls -ls:
>
>     $ find . -exec test -r {} \; -o -print
>
> Brett
>
>
Thanks Brett, I am amazed at the richness of the find command, I reckon 
one could drink for free all night at a linux pub, well maybe not a 
linux pub, but most people would have little idea of the power of this 
command!





More information about the linux mailing list