Permissions is a very important concept, and it allows you to allow/disallow access to the directory or files securely. First, let us learn more about permissions and how it works.
There are three types of permissions Read, Write, Execute. Permissions are also indicated by numbers.
Read (4): These permissions give the reading ability to the assigned users.
Write (2): The user who has to write permission can write/update the directory or files.
Execute (1): The execute permissions give the ability to execute the files or directories.
Above permissions are designated to further 3 types of user groups User, Group, Public.
User: This is the owner of File or Directory.
Group: The users who share the same group.
World/Public: This includes everyone who is not a user nor included in any group.
1. First, to login into the DirectAdmin control panel visit: https://server-hostname:2222
2. Navigate to System Info & Files → File Manager.
3. Right-click on the Directory → Click on Set Permissions.
4. Select the required permissions or you can enter it in numerical format. (default 755)
5. If you want to apply new permissions to all the files, directories under the selected directory → Check the option Recursive.
6. Finally, click on SAVE.
Congratulations! You have successfully changed permission for the directory. Using the same method, you can change the permission of files (default 644) as well.