execute command with different group ID

From: Diego Brito Veiga - b04917 (diego.veiga@freescale.com)
Date: Thu Jan 24 2008 - 12:10:15 EST


Hi guys,

I'm needing to execute a ssh in a solaris box using a different gid.
Even if I do a newgrp xxx the ssh execute a new shell and prompt the
default gid.
I found a solution in Linux using the command sg:
# id dveiga
uid=60001805(dveiga) gid=507(cad)
# ssh linux "sg case 'touch /tmp/xxxx'"
# ssh linux ls -l /tmp/xxxx
-rw-r--r-- 1 dveiga case 0 Jan 24 14:58 /tmp/xxxx

Is there a similar command for Solaris? Are there another way to do it?

Cheers,

-- 
Diego
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers


This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:42:42 EDT