Solved

lock keyb?

Posted on 2003-11-05
3
221 Views
Last Modified: 2010-04-22
Hi,
   i am seeking a way to disable the keyboard(X11-linux) through scripting or programming every time i want. I do not know if that can be done under linux or Xserver and in special if this feature can be used while the linux loads itself (init loadng) in order to disable the Ctrl+Alt+Del. Any ideas?

      Regards,
        Teo.
0
Comment
Question by:ttsenis
  • 2
3 Comments
 
LVL 5

Accepted Solution

by:
mtmike earned 50 total points
ID: 9689028
The action to perform when ctrl-alt-delete is pressed can be set in /etc/inittab. Look for a line similar to "ca:12345:ctrlaltdel:/sbin/shutdown" and comment it out.
0
 

Author Comment

by:ttsenis
ID: 9693275
mtmike, thanks it works. By the way any idea to lock unlock keyb at init3 and above runlevel?
0
 
LVL 5

Expert Comment

by:mtmike
ID: 9693506
You can hook ctrl-alt-delete to a shell script, eg

ca:12345:ctrlaltdel:/etc/rc.d/init.d/ctrlaltdel

This script might check the current runlevel and test for the existance of "/etc/noctrlaltdel".
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

910 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now