Files and Directories permissions error

From time to times, we must fix permissions on files and directory in order to secure an installation or to fix a broken one.

The common error message that you'll encounter in your logs will be similar to the following:

error: directory is writable by others


The process to resolve this particular issue is quite straight forward and simple.

1) Log to your server using SSH
2) Run those commands

find ~/www/ -type f -exec chmod 644 {} \;
find ~/www/ -type d -exec chmod 755 {} \;


3) Visit your website and see if everything run smoothly


And that's about it!
  • 1 Los Usuarios han Encontrado Esto Útil
¿Fue útil la respuesta?

Artículos Relacionados

Recommended firewall

What firewall do you recommend to secure my Linux server? MACI recommends the CSF (ConfigServer...

Quoi faire après un nettoyage de sécurité de votre compte

Les étapes suivantes devraient être suivies après qu'un expert ait...

What are .htaccess files and how to create and edit them

.htaccess files are used to configure and provide the server with instuctions regarding the...

Bloquer une Adresse IP ou un Domaine

Cet article est destiné uniquement aux utilisateurs avancés. Veuillez ne pas...

[CSF] Blocking based on country code

To block or allow website access from or to certain countries, the CC_DENY or CC_ALLOW option in...