Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

For all the folders and files.

Please give some explained answer.

share|improve this question
What do you mean under true ? Best? Required? Recommended? –  Rarst Oct 9 '10 at 12:24

1 Answer 1

up vote 10 down vote accepted

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


share|improve this answer
That .htaccess permission looks menacing. –  gmeben Apr 4 '13 at 18:55

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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