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:
parent
f12d6e12ec
commit
af32b80c65
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=76427
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user