Grow your CSS skills. Land your dream job.

Search for Dangerous File Permissions

  • # January 25, 2011 at 1:56 pm

    Is there a way to search an ftp server for specific file permissions? It has come to my attention that a site I maintain may be allowing 777 permissions on some files/directories that should not be that open, but since there are a lot of directories I don’t know how to go about finding the files in question. Any ideas?

    # January 25, 2011 at 4:01 pm

    Do you have SSH access to your server? (i.e. Command Line access)

    If so, I think the following command is what you want

    find -perm 777
    # January 27, 2011 at 12:07 am

    I don’t seem to have SSH access which could be a problem. Is there any other way to accomplish this (in ftp for example)?

    # January 27, 2011 at 2:02 pm

    I use FileZilla on Windows 7 and it displays the file permissions as a column. You might have to just go directory at a time to find them.

    Or maybe set the permissions on ALL files/folders, and then find files you want access to. (May upset a busy live site though!)

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".