• What is the risk of 777 rights on the folder?

    • views 1261

    Developer assigned 777 rights to the folder files and images. He says that it is necessary to ensure that site users can upload their own images to the site (to change avatars and add company logos). He says that it is totally safe, but I don`t think so. Does roots 777 mean that anyone can take full control of this folder and fill in a virus or interfere with the operation of the site. I want to hear what the experts have to say. Thank you!

    Solutions (1)
    You should change the rights on to folder - 755 (rwxr-xr-x), and files - 644 (rw-r - r--), this means that only the owner (user) can read and write to the directory and modify files, group, and everyone else can only read directories and enter them, but they are not allowed to write files, edit their names and delete them in the directories.
    Answers (2)
    Hi. You aren`t mistaken, 777  are dangerous rights to the folder. In comparison, the rights 755 on the directories, 644 on the files are enough to use any of the scripts.
    Yes, 777 provides the ability to record not only the user/owner of the folder, but also others. This is unsafe. Standard rules on folders are 755 and 644 on files.
We do our best for you!
Rate the article
Tell the world about it

Users (0) 0 of 5

  • In order to provide you with the best online experience this website uses personal data (cookies, IP, email, photo, name, website, etc). By using our website, you agree to our use of your personal data. More info we receive some monetary compensation from hosting companies, however, this does not influence their positions in our ratings, test results, the direction or conclusions of our reviews in any way. We use this amount to provide better services, improve our website, to cover hosting testing account fees and team salaries. Ok

  • easy


    We ban anonymous users since 2016


    We do not delete reviews for money
    We do not sell rating positions
    We make cheating attempts almost impossible


    We test the hosting thoroughly and publish professional overviews
  • Rewards for reviews