Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    274
    Likes Received:
    2
    Trophy Points:
    316
    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,799
    Likes Received:
    131
    Trophy Points:
    343
    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:
    274
    Likes Received:
    2
    Trophy Points:
    316
    Thanks a lot sparek!
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice