Thanks to Karl Vogel, Crist Clark and Michael Maciolek who reply my mail. Using # echo framemaker | ssh $sun newgrp case works ok. original post: ---------------------------------------------------------------------- Message: 1 Date: Thu, 24 Jan 2008 15:10:15 -0200 From: Diego Brito Veiga - b04917 <diego.veiga@freescale.com> Subject: execute command with different group ID To: sunmanagers@sunmanagers.org Message-ID: <4798C677.1000200@freescale.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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/sunmanagersReceived on Fri Jan 25 06:26:25 2008
This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:44:08 EST