Tell the user what group they must be in to su to root.

Submitted by:	Seth Kingsley <sethk@osd.bsdi.com>
This commit is contained in:
David E. O'Brien 2001-05-10 07:37:25 +00:00
parent f12d6e12ec
commit af32b80c65
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=76427

View File

@ -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