From: Todd C. Miller Date: Sun, 28 Apr 1996 01:03:06 +0000 (+0000) Subject: added support for "runas" from garp@opustel.com X-Git-Tag: SUDO_1_5_0~211 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fdcd430472c2208a493b0c7dd908e84e5ae7ab68;p=sudo added support for "runas" from garp@opustel.com --- diff --git a/testsudoers.c b/testsudoers.c index 54f6730e9..0314250ac 100644 --- a/testsudoers.c +++ b/testsudoers.c @@ -58,6 +58,7 @@ static char rcsid[] = "$Id$"; /* * Globals */ +char *runas_user = "oracle"; int parse_error = FALSE; extern int clearaliases; extern struct interface *interfaces; @@ -265,9 +266,12 @@ main(argc, argv) (void) printf("User %s not found\n", pw_ent.pw_name); else while (top) { (void) printf("[%d]\n", top-1); - (void) printf("user_match: %d\n", user_matches); - (void) printf("host_match: %d\n", host_matches); - (void) printf("cmnd_match: %d\n", cmnd_matches); + (void) printf("user_match : %d\n", user_matches); + (void) printf("host_match : %d\n", host_matches); + (void) printf("cmnd_match : %d\n", cmnd_matches); + (void) printf("no_passwd : %d\n", no_passwd); + (void) printf("runas_match: %d\n", runas_matches); + (void) printf("runas : %s\n", runas_user); top--; } }