When we create a new file or make changes to the hosting, it is possible that the permissions of these files are not correct and therefore we cannot perform the necessary actions.
Below we will explain how to change file and directory permissions from webFTP and also from an external FTP client. In this guide, we will use FileZilla.
Change permissions from webFTP:
Once inside, the list of files in our main directory will appear. To modify permissions, we must select the file/directory we want to modify, go to the options in the upper right corner, and click on "Permissions":
Next, the option to modify the permissions of that file/folder will appear. We must select the permissions we consider appropriate and click the save icon as shown. If it is a folder, options will appear to apply permissions to subdirectories and files within the directory, meaning if we want to make the change recursively.
IMPORTANT: Permission changes can be made by selecting the "ticks" that appear for each type of user or by directly modifying the Chmod value. This function directly modifies permissions on the server, and there are many types of Chmod. Below we list the main ones:
Chmod 777: This type grants maximum permissions to all 3 types of users, giving them read, write, and execute permissions.
Chmod 755: In this case, chmod 755 grants read and execute permissions to all users, except the owner who has full permissions.
Chmod 666: This chmod command grants read and write permissions to all users, except execute. Everyone can access the file, read its contents, and modify it.
Chmod 644: Chmod 644 is usually used to prevent write access to anyone other than the owner.
Change permissions from FileZilla:
Once inside, the list of files in our main directory will appear. To modify permissions, we must select the file/directory we want to edit and right-click and go to the last option, which appears as "File permissions..."
As soon as we select it, a window will appear with exactly the same editing options provided by webFTP:
IMPORTANT: Permission changes can be made by selecting the "ticks" that appear for each type of user or by directly modifying the Chmod value. This function directly modifies permissions on the server, and there are many types of Chmod. Below we list the main ones:
Chmod 777: This type grants maximum permissions to all 3 types of users, giving them read, write, and execute permissions.
Chmod 755: In this case, chmod 755 grants read and execute permissions to all users, except the owner who has full permissions.
Chmod 666: This chmod command grants read and write permissions to all users, except execute. Everyone can access the file, read its contents, and modify it.
Chmod 644: Chmod 644 is usually used to prevent write access to anyone other than the owner.