files owned by root/world writable

Valdis Kletnieks valdis at wizards.vt.edu
Fri Nov 16 09:18:13 AEST 1990


In article <1990Nov15.050348.19997 at cs.odu.edu>, epperly at cs.odu.edu (William "Badger" Epperly) writes:

|> find / -user root -ls | awk {'if substr($1,9,1)=w print>test.out

If your 'find' supports it, try this:

find / -user root -perm -002 -ls > test.out

To find set-UID files, use '-perm -4000', etc...

				Valdis Kletnieks
				Computer Systems Engineer
				Virginia Tech



More information about the Comp.unix.questions mailing list