home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!stanford.edu!CSD-NewsHost.Stanford.EDU!Xenon.Stanford.EDU!mrhoten
- From: mrhoten@cs.stanford.edu (Matthew X. Rhoten)
- Subject: Re: X - how do I stop ctrl-alt-BS?
- Message-ID: <mrhoten.722576654@Xenon.Stanford.EDU>
- Originator: mrhoten@Xenon.Stanford.EDU
- Sender: news@CSD-NewsHost.Stanford.EDU
- Organization: CS Department, Stanford University, California, USA
- References: <1992Nov23.025324.17638@csd.uwe.ac.uk>
- Date: 24 Nov 92 03:44:14 GMT
- Lines: 21
-
- root@slave.uwe.ac.uk (Operator (Phil/Dylan)) writes:
- >The linux machine that I use here is a research machine and I have found
- >that to my annoyance a normal (unix unfriendly) user can get to console
- >while it is xlocked and type in crtl-alt-del which kills the server
- >stone dead includeing any work I'm doing at that time.
- >[...]
-
- You can use the reboot() syscall to turn off ctrl-alt-delete. Look in
- ..src/linux/kernel/sys.c, I believe, for sys_reboot(). You need to be
- superuser, and you pass it some magic values which mean "CAD off". You
- can then pass it more magic values which mean "CAD on".
-
-
- It should be simple to write a program to toggle this state.
- Either make it setuid or be root when you run it.
-
- -matt
- --
- Matthew Rhoten | mrhoten@cs.stanford.edu | m_rhoten@leland.stanford.edu
- "When Adam and Eve first saw each other, that's when the blues started."
- -John Lee Hooker
-