?
Solved

How disable Ctrl+C to shell from telnet

Posted on 1998-07-09
3
Medium Priority
?
284 Views
Last Modified: 2013-12-23
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.
0
Comment
Question by:denmarkw
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 51

Accepted Solution

by:
ahoffmann earned 300 total points
ID: 1582970
assuming sh, ksh syntax:


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

0
 
LVL 84

Expert Comment

by:ozo
ID: 1582971
or how about setting the script to be your login shell?
0
 

Author Comment

by:denmarkw
ID: 1582972
Thanks! BTW the correct systax is:
aborted () { echo "Interupt disabled"
{
trap aborted 2 15
0

Featured Post

WordPress Tutorial 4: Recommended Plugins

Now that you have WordPress installed, understand the interface, and know how to install new parts, let’s take a look at our recommended plugins.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is a collection of issues that people face from time to time and possible solutions to those issues. I hope you enjoy reading it.
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question