[diagnose] check for sudo