How to keep gid status

Satoshi Isono isono at cray.com
Tue Jun 9 16:55:23 EST 2009


Dear all,

I would like to know how to keep primary gid status when using ssh
command. We know that, with sg command in ssh command line, it is
successful in this case. If there is the setting on sshd, I want to know
the way. Can you please advise me. I show a example as below.

$ id
uid=1002(taro) gid=1002(suzuki)
groups=10(wheel),1002(suzuki),8001(tanaka)

$ newgrp tanaka

$ id
uid=1002(taro) gid=8001(tanaka)
groups=10(wheel),1002(suzuki),8001(tanaka)

$ ssh remote-host id
uid=1002(taro) gid=1002(suzuki)
groups=10(wheel),1002(suzuki),8001(tanaka)

$ ssh remote-host "sg tanaka id"
uid=1002(taro) gid=8001(tanaka)
groups=10(wheel),1002(suzuki),8001(tanaka)

Regards,
Satoshi Isono



More information about the openssh-unix-dev mailing list