[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 11:16:31 EST 2004


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





------- Additional Comments From jmknoble at pobox.com  2004-03-31 11:16 -------
On 2004-03-31 10:41, Roland Mainz wrote:

> "newgrp" just starts a new shell and then does nothing
> until the EOF comes in.

Exactly.  Try this and you will see how easy it is to script:

    ssh -t host 'id; newgrp somegroup <<EOF
    id
    EOF
    '

The shell spawned by newgrp works just like any other program
that accepts commands on standard input.  Or am i missing
something?



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