Get effective group id

Barry Byrne barry.byrne at wbtsystems.com
Tue Aug 21 02:26:19 PDT 2007


> Hi,
> 
> >From a Bourne shell script, how to get (and test) the group id of the
> user that is executing the script?
> 
> Best regards,

Olivier:

id -gn   should give you the group name. Drop the -n if you want just the
numberic id.

 - barry



More information about the freebsd-questions mailing list