Linux Permissions Unraveled: How to Avoid 'chmod 777' and Keep
chmod 777chmod(string $filename , int $permissions ): bool Attempts to change the mode of the specified file to that given in permissions.To apply chmod 777 recursively to a folder and all its contents, you can use the -R