chmod 777chmod 777 foldername will give read, write, and execute permissions for everyone. chmod 700 foldername will give read, write, and executeTo apply chmod 777 to all the files and subfolders within the folder, you can use the find command in combination with the chmod command.