chmod 777Thus, 777 (111 111 111) is all permissions for everyone, while 700 (111 000 000) is all permissions only for the owner. Other combinations are also common: 666 (110 110 110) isYou 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