12
Jun

Group and World Writable files

   Posted by: Vivek Khokhar   in Linux

[] To locate all group & world-writable files on your system, use the command:
# find / -type f \( -perm -2 -o -perm -20 \) -exec ls -lg {} \;
[] To locate all group & world-writable directories on your system, use the command:
# find / -type d \( -perm -2 -o -perm -20 \) -exec ls -ldg {} \;

See “Tripwire”

This entry was posted on Monday, June 12th, 2006 at 11:56 pm and is filed under Linux. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a reply

Name (*)
Mail (will not be published) (*)
URI
Comment