[clug] Permissions

Brett Worth brett.worth at gmail.com
Thu Dec 17 06:36:10 UTC 2015


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


-- 
   /) _ _ _/_/ / / /  _ _//
  /_)/</= / / (_(_/()/< ///



More information about the linux mailing list