Check if permissions are set right