Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

find -user

Status
Not open for further replies.

MadD0G

ISP
Aug 4, 2003
1
RO
i need to find all domains that are in /home
that have the user: root
i can use the command:

find /home -user root > ~/find.txt

but i have on the server more than 10k domains so it takes a while
what would you ppl suggest?
 
I think you have to elaborate your question a bit. Users home directories usually reside in /home. Not domains. Unless you do some NFS mounts or similiar it should be a quick search.

Another option is to "ls -laR | grep 'root'", but it is hardly faster, and catches thing you might not want...

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top