Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > by-pkgid > 965e33040dd61030a94f0eb89877aee8 > files > 5160

howto-html-en-20080722-2mdv2010.1.noarch.rpm

<HTML
><HEAD
><TITLE
>Adjust behaviour of CtrlAltDelete</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="Remote Serial Console HOWTO"
HREF="index.html"><LINK
REL="UP"
TITLE="Security"
HREF="security.html"><LINK
REL="PREVIOUS"
TITLE="Magic SysRq key"
HREF="security-sysrq.html"><LINK
REL="NEXT"
TITLE="Log attempted access"
HREF="security-log.html"></HEAD
><BODY
CLASS="SECTION"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Remote Serial Console HOWTO</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="security-sysrq.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 9. Security</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="security-log.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECTION"
><H1
CLASS="SECTION"
><A
NAME="SECURITY-CTRLALTDEL"
></A
>9.10. Adjust behaviour of <B
CLASS="KEYCAP"
>Ctrl</B
>-<B
CLASS="KEYCAP"
>Alt</B
>-<B
CLASS="KEYCAP"
>Delete</B
></H1
><P
>The <SPAN
CLASS="PRODUCTNAME"
>IBM PC</SPAN
> used <B
CLASS="KEYCAP"
>Ctrl</B
>-<B
CLASS="KEYCAP"
>Alt</B
>-<B
CLASS="KEYCAP"
>Delete</B
> to launch a reboot of the computer.  Linux traps this
   key chord and makes it available to the
   <SPAN
CLASS="APPLICATION"
>init</SPAN
> system.  This is done by sending
   the <SPAN
CLASS="APPLICATION"
>init</SPAN
> process a
   <TT
CLASS="LITERAL"
>SIGINT</TT
> signal (although <B
CLASS="COMMAND"
>ctrlaltdel
   hard</B
> can undo this trap and make the key chord reboot the
   comptuer immediately).  The <SPAN
CLASS="APPLICATION"
>init</SPAN
> system
   uses <TT
CLASS="FILENAME"
>/etc/inittab</TT
> to determine how to handle
   the signal generated by the <B
CLASS="KEYCAP"
>Ctrl</B
>-<B
CLASS="KEYCAP"
>Alt</B
>-<B
CLASS="KEYCAP"
>Delete</B
> key
   chord.</P
><P
>Most distributions cleanly reboot the system, mimicing the
   behaviour that most users expect.  <A
HREF="security-ctrlaltdel.html#SECURITY-CTRLALTDEL-TELINIT-DEFAULT"
>Figure 9-14</A
> shows how this is
   done.</P
><DIV
CLASS="FIGURE"
><A
NAME="SECURITY-CTRLALTDEL-TELINIT-DEFAULT"
></A
><P
><B
>Figure 9-14. Default handling of <B
CLASS="KEYCAP"
>Ctrl</B
>-<B
CLASS="KEYCAP"
>Alt</B
>-<B
CLASS="KEYCAP"
>Delete</B
> in
    <TT
CLASS="FILENAME"
>/etc/inittab</TT
></B
></P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="PROGRAMLISTING"
># Trap CTRL-ALT-DELETE
ca::ctrlaltdel:/sbin/shutdown -t3 -r now</PRE
></FONT
></TD
></TR
></TABLE
></DIV
><P
>Depending upon each individual site you may wish to disable
   <B
CLASS="KEYCAP"
>Ctrl</B
>-<B
CLASS="KEYCAP"
>Alt</B
>-<B
CLASS="KEYCAP"
>Delete</B
>.  This is shown in <A
HREF="security-ctrlaltdel.html#SECURITY-CTRLALTDEL-TELINIT-IGNORE"
>Figure 9-15</A
>.</P
><DIV
CLASS="FIGURE"
><A
NAME="SECURITY-CTRLALTDEL-TELINIT-IGNORE"
></A
><P
><B
>Figure 9-15. Ignoring <B
CLASS="KEYCAP"
>Ctrl</B
>-<B
CLASS="KEYCAP"
>Alt</B
>-<B
CLASS="KEYCAP"
>Delete</B
> in
    <TT
CLASS="FILENAME"
>/etc/inittab</TT
></B
></P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="PROGRAMLISTING"
># Trap CTRL-ALT-DELETE and do nothing
ca::ctrlaltdel:</PRE
></FONT
></TD
></TR
></TABLE
></DIV
><P
>Alternatively, you may wish to cleanly shut down the
   computer.  This is very easy to explain to operators and
   instructions can be displayed on the monitor using
   <TT
CLASS="FILENAME"
>/etc/issue</TT
> or a <SPAN
CLASS="PRODUCTNAME"
>Post-it
   Note</SPAN
>.  If the computer uses <SPAN
CLASS="PRODUCTNAME"
>Advanced
   Power Management</SPAN
> (or <SPAN
CLASS="ACRONYM"
>APM</SPAN
>) then
   shutting down the computer will also remove the power.</P
><DIV
CLASS="FIGURE"
><A
NAME="SECURITY-CTRLALTDEL-TELINIT-HALT"
></A
><P
><B
>Figure 9-16. Shut down cleanly upon  <B
CLASS="KEYCAP"
>Ctrl</B
>-<B
CLASS="KEYCAP"
>Alt</B
>-<B
CLASS="KEYCAP"
>Delete</B
> in
    <TT
CLASS="FILENAME"
>/etc/inittab</TT
></B
></P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="PROGRAMLISTING"
># Trap CTRL-ALT-DELETE and shut down
ca::ctrlaltdel:/sbin/shutdown -t3 -h now</PRE
></FONT
></TD
></TR
></TABLE
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="security-sysrq.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="security-log.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Magic <B
CLASS="KEYCAP"
>SysRq</B
> key</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="security.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Log attempted access</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>