summaryrefslogtreecommitdiffstats
path: root/usr.bin/su
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2001-05-10 07:37:25 +0000
committerobrien <obrien@FreeBSD.org>2001-05-10 07:37:25 +0000
commitc5e2cc330270a765189cd2d2fce00ac6dd03ea9b (patch)
tree7c0dd40635b78d265c117400b8d11965c3a707fa /usr.bin/su
parent4590d544851b5f7b49c42e43378fa00bfb8fabc4 (diff)
downloadFreeBSD-src-c5e2cc330270a765189cd2d2fce00ac6dd03ea9b.zip
FreeBSD-src-c5e2cc330270a765189cd2d2fce00ac6dd03ea9b.tar.gz
Tell the user what group they must be in to su to root.
Submitted by: Seth Kingsley <sethk@osd.bsdi.com>
Diffstat (limited to 'usr.bin/su')
-rw-r--r--usr.bin/su/su.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/su/su.c b/usr.bin/su/su.c
index bbe93fc..616a2c2 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
OpenPOWER on IntegriCloud