Originally posted by: SystemAdmin
I would start by writing a shell script similiar to:
username=user1 #pass as parms
vgroup=opergrp
if ( lsgroup -a users $vgroup | grep -q $username )
then
# allow operator to change this users password
passwd $username
else
echo "This user is not in opergrp, no change made"
fi
I would then add this one particular script to sudo (/etc/sudoers) using the visudo command and adding the necessary entries.