[Bug 826] RFE: scp and ssh should have an option to set the group-id at login time

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Wed Mar 31 12:13:32 EST 2004


http://bugzilla.mindrot.org/show_bug.cgi?id=826





------- Additional Comments From roland.mainz at nrubsig.org  2004-03-31 12:13 -------
Jim Knoble wrote:
> > This solution is not portable.
>
> Please explain or point to pre-existing explanation.

The example assumes that "newgrp" accepts commands from stdin. This works for
ksh88 (on Solaris, but Solaris's version of /usr/bin/ksh is heaviliy modified),
ksh93 and bash2 but not for all other Unix shells.
The OpenGroup manual page for "newgrp" lists "Not used" for "stdin", older docs
say "behaviour undefined". That's why I say it's "not portable" - you're relying
on undefined behaviour (the implementation of "newgrp" differs heavily between
shells and Unix implementations anyway, just take a look at the rants in
OpenGroups manual page, sections "APPLICATION USAGE" and "RATIONALE"... ;-( ).



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.




More information about the openssh-bugs mailing list