Date: Mon, 28 Feb 2005 02:10:14 GMT From: Russ Francis <russell.francis@gmail.com> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/78087: groups program inconsistency Message-ID: <200502280210.j1S2AEGT096292@freefall.freebsd.org>
index | next in thread | raw e-mail
The following reply was made to PR bin/78087; it has been noted by GNATS. From: Russ Francis <russell.francis@gmail.com> To: FreeBSD-gnats-submit@freebsd.org Cc: Kevin Lyons <klyons@corserv.com> Subject: Re: bin/78087: groups program inconsistency Date: Mon, 28 Feb 2005 02:04:59 +0000 Kevin, I saw this report and 78087 which looks similar and thought they looked curious. I have tried to duplicate this issue without luck and am running FreeBSD 5.3-RELEASE-p2 bash-2.05b$ sysctl kern.ngroups kern.ngroups: 16 relevant portion of /etc/group --- snip --- foouser:*:1004: foo1:*:20001:foouser foo2:*:20002:foouser foo3:*:20003:foouser foo4:*:20004:foouser foo5:*:20005:foouser foo6:*:20006:foouser foo7:*:20007:foouser foo8:*:20008:foouser foo9:*:20009:foouser foo10:*:20010:foouser foo11:*:20011:foouser foo12:*:20012:foouser foo13:*:20013:foouser foo14:*:20014:foouser #foo15:*:20015:foouser su-2.05b$ whoami foouser su-2.05b$ id uid=1004(foouser) gid=1004(foouser) groups=1004(foouser), 20001(foo1), 20002(foo2), 20003(foo3), 20004(foo4), 20005(foo5), 20006(foo6), 20007(foo7), 20008(foo8), 20009(foo9), 20010(foo10), 20011(foo11), 20012(foo12), 20013(foo13), 20014(foo14) su-2.05b$ id foouser uid=1004(foouser) gid=1004(foouser) groups=1004(foouser), 20001(foo1), 20002(foo2), 20003(foo3), 20004(foo4), 20005(foo5), 20006(foo6), 20007(foo7), 20008(foo8), 20009(foo9), 20010(foo10), 20011(foo11), 20012(foo12), 20013(foo13), 20014(foo14) When I uncomment the line '#foo15:*:20015:foouser' from /etc/group I get the following error bash-2.05b$ su foouser Password: su: setusercontext: Invalid argument My results are different from yours, but also seem like a bug. I am only able to be assigned to 15 groups despite kern.ngroups being equal to 16? What is kern.ngroups set at for you? Cheers, Russhome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200502280210.j1S2AEGT096292>
