From 3ffb649863d38372de04f20ccd4ff8b11005d0f2 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Fri, 1 Apr 2011 13:54:30 -0400 Subject: [PATCH] In dump-only mode, use "root" as the default username instead of "nobody" as the latter may not be available on all systems. --- plugins/sudoers/testsudoers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/sudoers/testsudoers.c b/plugins/sudoers/testsudoers.c index 1a8b46234..60e338bcf 100644 --- a/plugins/sudoers/testsudoers.c +++ b/plugins/sudoers/testsudoers.c @@ -185,7 +185,7 @@ main(int argc, char *argv[]) if (argc < 2) { if (!dflag) usage(); - user_name = "nobody"; + user_name = "root"; user_cmnd = user_base = "true"; } else { user_name = *argv;