Cover V04, I02
Article
Figure 1
Figure 10
Figure 11
Figure 12
Figure 13
Figure 2
Figure 3
Figure 4
Figure 5
Figure 6
Figure 7
Figure 8
Figure 9
Sidebar 1

mar95.tar


Figure 5: Sample user login profile

:
#       @(#) profile 23.3 91/10/24
#
trap '' 1 2 3 15

PATH=/bin:/usr/bin
#
# This code was added to provide a generic interface to allow anyone access
# to this machine without having to do the nasty things of automounts and
# killing this machine - whose purpose is a gateway only anyhow.
#
# trap any user generated signals - force a logout if they occur
#trap 'echo "SIGNAL REQUEST CAUGHT\nLogin Session ABORTED!";exit 0 ' 1 2 3 15
#
# send out a prompt
#
echo "
Welcome to the Network Access Gate
Connected at : `date`
Connected to : `hostname`
"
#
# set _NAME to nothing, and loop until weget a value
# this is the name of the user which we will use to establish an rlogin session
#
_NAME=
while [ ! "$_NAME" ]
do
echo "Please enter your REAL login name : \c"
read _NAME
done
#
# set _MACHINE to nothing, and loop until we get a value
# this is the name of the machine which we want to connect to
#
_MACHINE=
while [ ! "$_MACHINE" ]
do
echo "Please enter the name of the machine you want to work on : \c"
read _MACHINE
done

#
# some general status information
#
echo "Your session to $_MACHINE will now be started."
CMD="rlogin $_MACHINE -8 -l $_NAME"
echo "\trunning : $CMD"
#
# record the call
#
echo "+ $_NAME:$_MACHINE:`date`" >> /usr/users/telnet/sessions
#
# start the session
#
exec $CMD
#
# if we make it back to here
#
echo "See ya!"
exit 0