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.
denmarkwAsked:
Who is Participating?
 
ahoffmannConnect With a Mentor Commented:
assuming sh, ksh syntax:


function aborted { echo "Interrupt disabled." }
trap aborted 2 15

0
 
ozoCommented:
or how about setting the script to be your login shell?
0
 
denmarkwAuthor Commented:
Thanks! BTW the correct systax is:
aborted () { echo "Interupt disabled"
{
trap aborted 2 15
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.