Article Listing 1 Listing 2 Listing 3 Listing 4
Listing 5 Listing 6 Listing 7 Listing 8 Listing 9
Listing 10 apr2004.tar

Listing 1 privileged_login

# Program: privileged_login
#
# Description:
#
# This script, called from /etc/profile or
# elsewhere in the environment, calls the create_alert_file which 
# creates an alert# if the user logs in as $REAL_USER, 
# typically root or admin. 
#**************************************************************

sudo -u monitor /opt/monitor/bin/create_alert_file \
-p high \
-c `basename $0`-$$ \
-s "$TERM_USER became $REAL_USER" \
< /dev/null
return 0