Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: How do I generate a listing of all users who can access a directory?

by greenFox (Vicar)
on May 05, 2004 at 08:55 UTC ( [id://350716]=note: print w/replies, xml ) Need Help??


in reply to How do I generate a listing of all users who can access a directory?

Somethings I still do in shell...
for user in `awk -F: '{print $1}' /etc/passwd`; do echo $user; su - $user -c "ls -l /path/to/dir/" >/dev/null 2>&1; echo $?; done

Yeah I wrote it on the command line :) You might need to tweak for your system, skipping system accounts for example (awk -F: '$3>100{print $1}' /etc/passwd usually does it).

--
Do not seek to follow in the footsteps of the wise. Seek what they sought. -Basho

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://350716]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-04-23 07:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found