test if sudo is needed