Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
#!/bin/ksh
#############################################################
# Created: 09/09/2004
# Arguments: username of user to remove
#############################################################
Num_of_exp_args=1
if [ $# -ne $Num_of_exp_args ] ; then
echo "Usage: `basename $0` username"
exit 3
fi
USER=$1
lsuser $USER > /dev/null 2>&1
if [ $? -eq 0 ] ; then
printf "Removing user $USER\n"
rmuser -p $USER
printf "Removing /home/$USER\n"
rm -rf /home/$USER
if [ -f "/var/spool/mail/$USER" ] ; then
printf "Removing /var/spool/mail/$USER\n"
rm -f /var/spool/mail/$USER
else
printf "$USER had no mail\n"
fi
printf "$USER has been removed\n"
else
printf "$USER does not exist\n"
fi