Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!njin!princeton!udel!wuarchive!sdd.hp.com!caen!news.cs.indiana.edu!msi.umn.edu!noc.MR.NET!news.stolaf.edu!beowulf.acc.stolaf.edu!rabe From: rabe@beowulf.acc.stolaf.edu (brett m rabe; Jiffy Script Inc.) Newsgroups: comp.sys.next Subject: Re: Power Switch Disabling? Message-ID: <1991Mar1.144246.24584@news.stolaf.edu> Date: 1 Mar 91 14:42:46 GMT References: <27CC7E58.342F@ibma0.cs.uiuc.edu> <1991Feb28.231454.20522@src.honeywell.com> Sender: news@news.stolaf.edu Reply-To: rabe@beowulf.acc.stolaf.edu.stolaf.edu (brett m rabe; Jiffy Script Inc.) Distribution: usa Organization: Jiffy Script Inc.; Northfield, MN Lines: 32 In article <1991Feb28.231454.20522@src.honeywell.com> pclark@SRC.Honeywell.COM (Peter Clark) writes: >>Here's what I hope is a simple question: How do you disable the power key? I >>know that it CAN be done, I just don't know how... > >As root: > >foobar# dwrite loginwindow PowerOffDisabled True > > That ought to do it. > > Pete C A (perhaps) better way to do it would be to add the -PowerOffDisabled True flag to loginwindow in your /etc/ttys file. Then you wouldn't have to dwrite every time your machine is rebooted. Here's about what your console entry would look like if you added it: console "/usr/lib/NextStep/loginwindow -PowerOffDisabled True" NeXT on secure window=/usr/lib/NextStep/WindowServer onoption="/usr/etc/getty std.9600" (Sorry about the +80 column line. . . ) There are other options available, I believe they're explained somewhere in the documentation.... brett brett michael rabe: Phone-> 507/645-9387 Snailmail: Brett M. Rabe brabe@carleton.edu bmr@geech.ai.mit.edu 100 N. Lincoln rabe@acc.stolaf.edu Northfield, MN 55057 USA