Corrected the permissions of key files