a question for you unix gurus

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mrthumbs
    salad tossing sig guy
    • Apr 2002
    • 11702

    #1

    a question for you unix gurus

    I want to find all world writeable directories on a server:

    ls -lR |grep drwxrwxrwx

    does that but DOESNT display what main directory the folder is in.

    So i get all type of folders returned just dont know what parent folder
    they are in..

    Whats the command im looking for?
  • mrthumbs
    salad tossing sig guy
    • Apr 2002
    • 11702

    #2
    "world writable" "folders" i sound like a windows person

    Comment

    • SteveF
      Confirmed User
      • Jan 2005
      • 120

      #3
      You're probably looking for something similar to,

      find / -type d -perm 777 -print

      man find, read up on -perm to tailor to your needs. Also make sure you're root when searching from / or you'll get a ton of permission denied messages.

      S.

      Comment

      • mrthumbs
        salad tossing sig guy
        • Apr 2002
        • 11702

        #4
        find ./ -perm 777 did the trick! thankie!

        I was already working on an egrep that does a find / and then parses the output through ls-l etc.. hehe

        Thanks!

        Comment

        Working...