1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

CHMOD 0777 - List Of Folders

Discussion in 'General Scripting Chat' started by subster, Feb 6, 2010.

  1. subster

    subster Elite Member

    Joined:
    Apr 5, 2008
    Messages:
    1,864
    Likes Received:
    1,448
    Location:
    Krauthausen
    Hi there,

    sorry for posting in the wrong section, but i can't find a better fitting..
    I am sometimes a little bit confused and forget to set the chmod on some folder back to a more secure option.
    Now i have a big server under me and want to get sure that no folder is 0777 anymore.

    Is there a script or anything else, that can scan the server for 0777-Folders so i can correct these?

    Thank you for your help, its really appreciated...
     
  2. fatboy

    fatboy Elite Member

    Joined:
    Aug 13, 2008
    Messages:
    1,618
    Likes Received:
    3,227
    Occupation:
    Retired
    Location:
    Old Peoples Home
    Code:
    find / -type d -perm 0777 -exec ls -ld {} \;
     
    • Thanks Thanks x 1
  3. subster

    subster Elite Member

    Joined:
    Apr 5, 2008
    Messages:
    1,864
    Likes Received:
    1,448
    Location:
    Krauthausen
    Thank you very much!
     
  4. FreakStone

    FreakStone BANNED BANNED

    Joined:
    Jun 26, 2009
    Messages:
    53
    Likes Received:
    8
    God I love linux. Makes it so easy :)