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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
or how about setting the script to be your login shell?
ASKER
Thanks! BTW the correct systax is:
aborted () { echo "Interupt disabled"
{
trap aborted 2 15
aborted () { echo "Interupt disabled"
{
trap aborted 2 15