Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
WordPress 3 Ultimate Security

You're reading from   WordPress 3 Ultimate Security WordPress is for everyone and so is this brilliant book on making your site impenetrable to hackers. This jargon-lite guide covers everything from stopping content scrapers to understanding disaster recovery.

Arrow left icon
Product type Paperback
Published in Jun 2011
Publisher Packt
ISBN-13 9781849512107
Length 408 pages
Edition 1st Edition
Languages
Concepts
Arrow right icon
Toc

Table of Contents (23) Chapters Close

WordPress 3 Ultimate Security
Credits
About the Author
Acknowledgement
About the Reviewers
www.PacktPub.com
Preface
So What's the Risk? Hack or Be Hacked FREE CHAPTER Securing the Local Box Surf Safe Login Lock-Down 10 Must-Do WordPress Tasks Galvanizing WordPress Containing Content Serving Up Security Solidifying Unmanaged Defense in Depth Plugins for Paranoia Don't Panic! Disaster Recovery Security Policy Essential Reference Index

Correcting permissions creep


Just as we give users the least possible permissions, so we should for files and folders. We'll crash-course the detail of permissions and ownership, server-wide, in Chapter 9. For now though, we'll ensure that you have the correct permissions for WordPress.

Note

Least privilege permissions

This is the bottom line and applies to any file on any computer. What we should do is to cut rights to the bone while not restricting the required functionality.

The platform's defaults are fair: 755 for folders and 644 for files. Over time, though, these can become loosened up, particularly by developers and tinkerers. Bring them into line.

Pruning permissions at the terminal

Logged into the server and swapping the path to that of your WordPress root, do this:

find /full/path/to/WordPress -type d -exec chmod 755 {} \;
find /full/path/to/WordPress -type f -exec chmod 644 {} \;

VPS and dedicated server users should have to append that command with sudo.

Restyling perms with a control...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image