Link to home
Start Free TrialLog in
Avatar of denmarkw
denmarkw

asked on

How disable Ctrl+C to shell from telnet

I wrote a Visual Fox Pro application to automate the expiration of Solaris passwords
from Win95 clients. Our users don't know unix, so I call the telnet executable with a
servername, and control the process from shell commands in the user's ".profile".
However, one security weakness, is that users can press "Ctrl+C" and get to the shell
prompt once they get pass the initial login prompt of telnet even though the script
controls all shell commands called.
How can I disable the Ctrl+C from within the script?

Thanks in advance for your help!

Denmark W.
ASKER CERTIFIED SOLUTION
Avatar of ahoffmann
ahoffmann
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ozo
or how about setting the script to be your login shell?
Avatar of denmarkw
denmarkw

ASKER

Thanks! BTW the correct systax is:
aborted () { echo "Interupt disabled"
{
trap aborted 2 15