Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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??

Help for this page

Select Code to Download


  1. or download this
    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
    

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 having a coffee break in the Monastery: (4)
As of 2024-03-29 06:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found