Permissions Reset

Sometimes during the course of tweaking your WordPress files via SFTP, or due to a misbehaving plugin, the owners/permissions of a file or directory can be misconfigured. In fact, this isn’t a “misconfiguration” per se as much as its simply your “server” user (i.e. www-data) trying to take care of business at the same time as your SFTP user (i.e. example). While a file or folder gets its “owner” or “group” changed, this means that occassionally your SFTP user (or server user) won’t be able to edit or execute a certain file. Likewise, when the Unix permissions (i.e. 777) get tweaked, a similar situation can occur where a plugin can’t access or edit a certain file properly.

To deal with this situation, some web hosting companies run very bulky software like cPanel or otherwise to monitor and control all files on a server. Other companies offer a “permissions reset” button on your control panel where you can manually request the permissions and owner/group to be totally reset across your entire website (server).

Here at LittleBizzy we have come up with a tiny shell script for Ubuntu that runs every single minute (or less, if needed) to automatically reset the owners, groups, and permissions on your entire WordPress website (and beyond). All owners/groups will be reset to your USERNAME:GROUPNAME and recommended permissions will be reset to 664 for files and 775 for directories as officially recommended by the WordPress team.

This is a free service offered by LittleBizzy that we now include on all new accounts. If you have issue with this service kindly let us know and we can either enable, disable, or adjust the script as needed for your case. Cheers!

Last modified:  23 Apr, 2016
http://bizzy.in/1GhwKYp