From 0d3ac31739bcfa3c4dc4adb66de07d6859735c35 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 23 Jun 2016 13:52:46 +0100 Subject: [PATCH] p2v: Make the sudo error message actionable. Updates commit 5b6a8e086264c85fb048c0eadff6c34351663133. (cherry picked from commit 323c3e20a4d47fc5a0f1b5fcd3352f746c8bd9dd) --- p2v/ssh.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/p2v/ssh.c b/p2v/ssh.c index aa070d5..083e04e 100644 --- a/p2v/ssh.c +++ b/p2v/ssh.c @@ -583,7 +583,8 @@ test_connection (struct config *config) case 102: mexp_close (h); - set_ssh_error ("sudo for user '%s' requires a password", config->username); + set_ssh_error ("sudo for user \"%s\" requires a password. Edit /etc/sudoers on the conversion server to ensure the \"NOPASSWD:\" option is set for this user.", + config->username); return -1; case MEXP_EOF: -- 1.8.3.1