The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to locate 777 folders

Discussion in 'General Discussion' started by equens, May 17, 2006.

  1. equens

    equens Well-Known Member

    Joined:
    Feb 8, 2002
    Messages:
    270
    Likes Received:
    0
    Trophy Points:
    16
    How can I search where is located all 777 folders in server?

    I want to secure these folders with .htaccess, first "Deny from all" and after, allow .jpg, etc...

    <Files *>
    Order allow,deny
    Deny from all
    </Files>

    <Files *\.jpg>
    Order allow,deny
    Allow from all
    </Files>

    Thanks!
     
  2. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,384
    Likes Received:
    23
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    To find all open directories (directories with 777 permssion) you can use:

    find /home -perm 0777 -type d -print

    This will find all directories under the /home directory that have permissions of 777.

    You may want to redirect the output of this to a file:

    find /home -perm 0777 -type d -print >file.txt

    then you will have a list of open directories in file.txt and you can review it with:

    cat file.txt | more
     
  3. equens

    equens Well-Known Member

    Joined:
    Feb 8, 2002
    Messages:
    270
    Likes Received:
    0
    Trophy Points:
    16
    Thanks a lot sparek!
     
Loading...

Share This Page