Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: OpenSSH: Dev

How to keep gid status

 

 

OpenSSH dev RSS feed   Index | Next | Previous | View Threaded


isono at cray

Jun 8, 2009, 11:55 PM

Post #1 of 1 (633 views)
Permalink
How to keep gid status

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

_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev [at] mindrot
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev

OpenSSH dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.