From af32b80c65ba3ada50971b5d02d4d11f8e8e188b Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Thu, 10 May 2001 07:37:25 +0000 Subject: [PATCH] Tell the user what group they must be in to su to root. Submitted by: Seth Kingsley --- usr.bin/su/su.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usr.bin/su/su.c b/usr.bin/su/su.c index bbe93fcfe7f..616a2c2b60e 100644 --- a/usr.bin/su/su.c +++ b/usr.bin/su/su.c @@ -289,7 +289,10 @@ main(argc, argv) if (gid == 0) break; else - errx(1, "you are not in the correct group to su %s.", user); + errx(1, + "you are not in the correct group (%s) to su %s.", + gr->gr_name, + user); } if (strcmp(username, *g) == 0) { #ifdef WHEELSU -- 2.45.2