#!/bin/sh -x
# This script validates the user name of
# the primary administrator 
#
# Copyright (c) 1998 by Sun Microsystems, Inc.
# All rights reserved.
#
# @(#)validate_user	1.3        03/15/99 
#

############### Validate the user  #################

     echo "\nValidating user ....."

      /usr/bin/getent passwd $1 >>/dev/null

      if [ "$?" != "0" ]; then
    echo "\nPrimary Administrator user name validation failed"
    exit 1

   else
 
 echo "\nPrimary Administrator user name validation completed successfully"

 fi

######################### Done ###############################################
exit 0

