fix permissions on file