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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

specific "find" syntax 1

Status
Not open for further replies.

thedaver

IS-IT--Management
Jul 12, 2001
2,741
US
I need to look into a folder tree using "find" to identify folders where the "execute" (+x) bit is not set for the owner.

Ideas?

D.E.R. Management - IT Project Management Consulting
 
Using GNU find, I believe this does what you asked for:
Code:
find /[i]directory-tree[/i] -type d ! -perm -u=x

Of course, if you're running this as the user who doesn't have execute permissions on his directories, you may run into some problems due to that...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top