Solved

How disable Ctrl+C to shell from telnet

Posted on 1998-07-09
3
270 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 100 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

Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

Question has a verified solution.

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

Even if you have implemented a Mobile Device Management solution company wide, it is a good idea to make sure you are taking into account all of the major risks to your electronic protected health information (ePHI).
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
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…

730 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