Rectify file permissions.