home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / linux / 17745 < prev    next >
Encoding:
Text File  |  1992-11-24  |  1.3 KB  |  34 lines

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