For all the folders and files.

Please give some explained answer.

  • 1
    What do you mean under true ? Best? Required? Recommended?
    – Rarst
    Oct 9, 2010 at 12:24

1 Answer 1


All files should be writable only by your user account. So the correct permissions for files and directories are:

  • Directories: 755
  • Files: 644

You may want to secure some files:

  • wp-config.php: for maximum security, this file should be made writable by your user only or its group. This means 400 or 440 permission
  • .htaccess: 666 permission, so that WordPress can automatically generate rewrite rules for you
  • wp-content/: some plugins and themes may require write access to this directory. you will be prompted when necessary.
  • wp-content/themes/: 664 permission if you want to use the theme editor


  • 1
    That .htaccess permission looks menacing.
    – user110857
    Apr 4, 2013 at 18:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.