Operating System - HP-UX
1833883 Members
1539 Online
110063 Solutions
New Discussion

recommendations on command line access and profile - repost from this am

 
Doug_3
Frequent Advisor

recommendations on command line access and profile - repost from this am

Hi all, not sure if this posting made it through from this am, I don't see it in the forums.

We have a app that uses a mpe shell that starts a menu scheme and users are blocked from command line access. I want to allow access for 6 users but not the others and I don't want a second profile (everyone uses the same profile). I am thinking of a case stmt such as the one at the end, but not sure what to do with the trap and exit commands w/o negating or weakening the current block on command line access. Any pointers or ideas would be helpful!!
Thanks in advance, Doug

excerpts from the PROFILE:
snip
export TERM=vt220
export MY_TTYSLOT=1
stty -brkint tab3 erase "^H" kill "^U" intr "^C" eof "^D" susp "^Z" quit "^\\"
export STTY=$(stty -g)
trap "" 2 3
if [ -f $HOME/Lockout ] ; then
cat $HOME/Lockout
exit
fi
...
snip
...
################################################If not under control of Insight, check email #and run nu001
###############################################echo "WINDADDR"
if [ -z "$WINADDR" ]; then
mail
run nu001
fi

################################################ Run IFAS and exit
###############################################run nu010
case $userName
in
admin)
;;
*)
exit
;;
esac