[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Change the behaviour of Alt Control Backspace to shutdown machine

Posted on 2004-11-25
Medium Priority
Last Modified: 2010-04-20
Hi I am seting up a web kiosk, that uses a kiosk user to start a cut down web browser. The only shortcut keys that work are the Control + Alt + Back space which logs the user out and brings back the machine to a log in screen. Actually what I would like is for the machine to shut down instead of going back to the log in screen.
Any ideas?

The kiosk is started by automatically logging in the kiosk user, and having a xsession script in their home folder that starts firefox...

while true ; do
   /firefox/firefox -fullscreen

I dont fully understand what it is doing but it works!! Seems to start a System default session (its not gnome so i guess it may be twm), and when i hit alt contol back space it finishes that session and go's back to the log in screen. I would rather that users didnt get that screen and it would just shutdown.
Question by:uuccu
1 Comment

Accepted Solution

s_oneil earned 1000 total points
ID: 12759982
In X's config file  ( usually /etc/X11/XF86Config, /etc/X11/XF86Config-4 or /etc/X11/xorg.conf ).

Look for a section named ServerLayout, ie mine reads:

Section "ServerLayout"
        Identifier     "XFree86 Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse1" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"

To this, add the line:
        Option "DontZap" "true"

(anywhere between the Section and EndSection lines.)

This will prevent X from dying on ctrl+alt+backspace .. I'm not however sure how to handle the next step, of having a client catch ctrl+alt+backspace and call a shutdown from it.

My advice, would be to enable DontZap so they're not returned to the login screen, then handle shutdown requests from /etc/inittab:

# What to do when CTRL-ALT-DEL is pressed.
ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now

.. appears to be the default.  Replacing -r with -h  will cause it to shutdown (to halt) rather than reboot.


Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses
Course of the Month19 days, left to enroll

834 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