Operating System - HP-UX
1834811 Members
2601 Online
110070 Solutions
New Discussion

Controlling the use of hpterm on the workstation

 
SOLVED
Go to solution
Henry Chua
Super Advisor

Controlling the use of hpterm on the workstation

Hi Guys,

Do you know how can I control the use of hpterm on my workstation? As in whenever a hpterm is invoked the system will prompt the login and password before allowing access?

Best regards
Henry
2 REPLIES 2
A. Clay Stephenson
Acclaimed Contributor

Re: Controlling the use of hpterm on the workstation

You could create a wrapper script but the most foolproof method would be to sudo the command.
If it ain't broke, I can fix that.
Steve Steel
Honored Contributor
Solution

Re: Controlling the use of hpterm on the workstation

Hi


Why not lock your workstation when you are not there


Otherwise

alias hpterm="hpterm -e telnet $(hostname)"

or

move hpterm realhpterm

make hpterm wrapper as

remsh $(hostname) -n hpterm -display $DISPLAY -e telnet


or put a piece in .profile to limit number by counting logins

let xd=`who -u|grep -v console|grep -v old|grep -c $LOGNAME`
if [ "$xd" -ge "8" ]
then
who -u
echo 8 logins is a maximum exiting.
sleep 10
exit 0
fi



Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)