#!/bin/ksh
#
# ident "@(#)utadmingid.sh	1.1 02/10/23 SMI"
#
# Copyright 2002 Sun Microsystems, Inc.  All rights reserved.
#

#
# Displays the group ID for the web admin GUI so that we can establish
# proper ownership for directories used by the GUI.  Find and use the
# numeric GID, it saves the hassle of dealing with missing or broken
# groupname lookups.  If the utadmin.pw file doesn't exist then fall
# back to using group 'root' as the directory owner.
#
ETCDIR="/etc/opt/SUNWut"
UTADMINPW=${ETCDIR}/utadmin.pw
if [ -f $UTADMINPW ] ; then
	WEBGUI_GROUP=`/bin/ls -gn $UTADMINPW | /bin/awk '{print $3}' `
fi
WEBGUI_GROUP=${WEBGUI_GROUP:-root}
print $WEBGUI_GROUP
