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

world writable files and directories using find command

Status
Not open for further replies.

gcazian

MIS
Joined
Dec 4, 2002
Messages
61
Location
US
I am trying to do a find of all world writable files AND directories:

find / -perm -002 -type f -ls (will find all the files)

find / -perm -002 -type d -ls (will find all the directories)

Is there a way that I can combine the two commands rather than having to run them one after another?

I tried ' find / -perm -002 -type fd -ls ', but the syntax is wrong.

Thanks!
 
Code:
find / -perm -002 \( -type f -o -type d \) -ls
should do it.

//Daniel
 
Thanks!

happy.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top