Solved

lock keyb?

Posted on 2003-11-05
3
223 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
generating rpm using noarch parameter 1 44
stopping a java process started with daemon command 2 79
check failing on yum update 5 31
Set-Top-Box hardware and Open Source! 8 264
Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
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…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

830 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