How to change directory permissions in Linux with chmod
chmod 777To apply chmod 777 recursively to a folder and all its contents, you can use the -R777 means User, Group, and Others all have full read, write, and execute permissions. However, granting such permissions can pose a security risk.