diff options
author | obrien <obrien@FreeBSD.org> | 2001-05-10 07:37:25 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2001-05-10 07:37:25 +0000 |
commit | c5e2cc330270a765189cd2d2fce00ac6dd03ea9b (patch) | |
tree | 7c0dd40635b78d265c117400b8d11965c3a707fa /usr.bin | |
parent | 4590d544851b5f7b49c42e43378fa00bfb8fabc4 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | usr.bin/su/su.c | 5 |
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 |