LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Getting users permission (https://www.linuxquestions.org/questions/linux-security-4/getting-users-permission-293567/)

phoenix99 02-22-2005 04:38 PM

Getting users permission
 
Hi,
I don't know if this place is right for this post...
I want to know if it's possible ot list all directory and permission a user have on my computer.
I want to list what a user can execute or which directory he/she can access and his permission (rwx)
Anyone know if a apps exist for this kind of listing or a simple bash script can be done ?

Thanks

Phoenix99

mjrich 02-22-2005 05:36 PM

Something along the lines of (as root)
Code:

find -user 'foobar' -perm +550 -ls
should do the trick. If you use the printf option of find, then you'll be able print exactly the output you want, and perhaps group it into readable, writable and executable by username.

Cheers,

mj


All times are GMT -5. The time now is 01:57 PM.