What is: chmod
chmod is a Linux/Unix shell command which is used to change permissions of files and directories. chmod is an abbreviation of change mode. Under some web hosting environments, a user may need to use this command to change some file or directory permissions to make them writable by WordPress. If users don’t have access to a Unix shell, then they can still use this command by using an FTP program.
How do I use chmod to change permissions?
In the following example, file1 is readable and writable to the
user and readable to everyone on the system. file2 is readable,
writable and executable by everyone. file3 is readable, writable
and executable only to the user:
This page was moved to https://wordpress.org/support/article/changing-file-permissions/ except above language locator.
How to Use the chmod Command in Linux
Use chmod to set additional file-system modes for files and directories. For example, to set the sticky bit — which means that only the file owner, the directory owner or the root superuser can delete the file, regardless of the file's read-and-write group permissions — prefix a 1 to the number sequence:
Recommended File Permissions for WordPress
There a number of ways to accomplish this change. There are also a number of variations to these permissions that include changing them to be more restrictive. These however are the default recommendations. Check with your host before making permissions changes as they can have adverse affects on the performance and availability of your site.
WordPress Permissions – How To Set Up Proper Filesystems And Ownerships
Using the correct permission mode is quite important. To better illustrate this, think again of users and roles in WordPress. On a WordPress website, contributors and administrators have different sets of capabilities. Contributors may create new blog posts, but they may not add plugins. Administrators, on the other hand, may add plugins and also create blog posts. Administrators may even change the look of the website if they want to. A clear line separates what users in different roles can do. This is the same with permission modes, except that instead of dealing with blog posts and theme options, we are dealing with files and folders on the server.