Changing the permissions of the whole files