run.c is a small program to run a program with any group in the
range 900,...,909 added to the group list.

Take a look at the makefile to make sure you have the correct settings
for CC and CFLAGS

You might want to install it in /usr/local/bin setuid root. Anyway,
that's what the install program does. I'm not an expert on writing
"safe" setuid programs, so please check this out carefully before you
install it. (General good instructios for any setuid root program!)

An example of its use (with the solaris 2 hostid-by-egid module) is
as follows:

(edit /etc/name_to_sysnum as described in the documentation for 
 hostid-by-egid-solaris2)

ratatosk# cd hostid-by-egid-solaris2
ratatosk# make load
/opt/SUNWspro/bin/cc -D_KERNEL  -c  sethostid.c
ld -r -o sethostid sethostid.o
/usr/sbin/modload ./sethostid
ratatosk# make sid
grep sethostid /etc/name_to_sysnum | sed 's/^/#define SYS_/' ratatosk#sethostid.h
/opt/SUNWspro/bin/cc -o sid -I. sid.c
ratatosk# ./sid 0 24000000
ratatosk# ./sid 1 25000000
ratatosk# cd ../run
ratatosk# make
cc -o run run.c
chmod 4755 run
ratatosk# hostid
80512f45
ratatosk# ./run 0 hostid
24000000
ratatosk# ./run 1 hostid
25000000
ratatosk# ./run 2 hostid
80512f45
ratatosk# ./run 0 lmhostid
lmhostid - Copyright (C) 1989, 1991 Highland Software, Inc.
The FLEXlm host ID of this machine is "24000000"
ratatosk# ./run 0 lmhostid
lmhostid - Copyright (C) 1989, 1991 Highland Software, Inc.
The FLEXlm host ID of this machine is "25000000"
ratstosk# ./run 0 csh
ratatosk# hostid
24000000
ratatosk# lmhostid
lmhostid - Copyright (C) 1989, 1991 Highland Software, Inc.
The FLEXlm host ID of this machine is "24000000"
ratatosk# modinfo
...
 78 fc6a50a0   a62 277   1  sethostid (kern_hostid v1.02)
...
ratatosk# modunload -i 78
ratatosk# hostid
80512f45
ratatosk# ./run 0 hostid
80512f45
