chmod 777To apply chmod 777 to all the files and subfolders within the folder, you can use the find command in combination with the chmod command.You almost never need 777 permissions on any type of file, and you absolutely never need 777 on a non-executable file. – skiphoppy Commented Apr 4, 2012 at 10:51