Subject: Re: bin/11047: newgrp is missing
To: NetBSD Userlevel Technical Discussion List <tech-userlevel@NetBSD.ORG>
From: David Laight <david@l8s.co.uk>
List: tech-userlevel
Date: 04/29/2002 10:21:07
On Sun, Apr 28, 2002 at 02:07:12PM -0400, Greg A. Woods wrote:
> > 
> > That's not what I see here on my network on Solaris 2.6 and Solaris 8.
> > 
> > rattler> id -a
> > uid=1001(rmk) gid=10(staff) groups=10(staff),777(foo)
> > rattler> ls -l hello
> > -rw-r-x---   1 root      foo         5924 Apr 26 16:53 hello
> > rattler> ./hello
> > ksh: ./hello: cannot execute
> > rattler> /usr/bin/newgrp foo
> > $ id -a
> > uid=1001(rmk) gid=777(foo) groups=10(staff),777(foo)
> > $ ./hello
> > hello,world
> 
> Hmmm.... that doesn't correspond to behaviour I've observed in the past,

Ditto....  It also doesn't match the behaviour I'm getting now!

dsl@teepee:-ksh$ id -a
uid=2410(dsl) gid=1(other) groups=1(other),100(test)
dsl@teepee:-ksh$ ls -l zz
----r-x---   1 root     test           8 Apr 29 10:05 zz
dsl@teepee:-ksh$ cat zz
echo hi
dsl@teepee:-ksh$ ./zz
hi
dsl@teepee:-ksh$
SunOS teepee 5.8 Generic_108528-09 sun4m sparc sun4m
dsl@teepee:-ksh$

I wonder if you are running a broken ksh?

	David

-- 
David Laight: david@l8s.co.uk