[plug] Listing all files / directories accessible by specific user account

Alexander Hartner alex at j2anywhere.com
Wed Jun 26 01:27:18 UTC 2013


Hi all,

I am trying to find the best way to list all files and directories which are accessible by a specific user. So far the best option I found was:

sudo -u <useraccount> find / -readable -print 2>&1 |grep -v "Permission denied"
sudo -u <useraccount> find / -writable -print 2>&1 |grep -v "Permission denied"
sudo -u <useraccount> find / -executable -print 2>&1 |grep -v "Permission denied"

However I wonder if there is a better way of doing this. 

Any suggestions ?

Alex




More information about the plug mailing list