GeneralThis forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I got various ways to disable shutdown ,if I press the power button on the desktop. But if I press the power button on the desktop for 5-10 sec, the computer shuts down, is there any way that I can disable this . I have checked the bios setting also but i was not able to find any related to this. can anybody help
The 5 second method is for hard shutdowns, for cases in which the OS has become completely non-responsive. I've never heard of a way to disable this feature, but I suppose a way to get around this could be to reroute the switch wiring to a hidden location so that it would be harder to power it off.
Why would you want to disable it? It's a great feature to have.
The 5 second method is for hard shutdowns, for cases in which the OS has become completely non-responsive. I've never heard of a way to disable this feature, but I suppose a way to get around this could be to reroute the switch wiring to a hidden location so that it would be harder to power it off.
Why would you want to disable it? It's a great feature to have.
because that linux machine is accesed remotly and some time people shutdown the machine , disconnecting the remote user . I want that only root cando so .
There is no way to do that. You are trying to disable something outside the control of the OS. That is like asking how to keep a machine from shutting off when it is unplugged!You may be able to disconnect the wiring within the case itself so that the wires running from the button to the motherboard are disconnected, but that also may prevent the machine from being powered on.
The real issue here is why people are physically shutting the machine off? Either get the machine in a server room where random people cannot access it, or put a note on it stating that it should never be powered off.
....But if I press the power button on the desktop for 5-10 sec, the computer shuts down, is there any way that I can disable this....
For the 5 secs timeout, I think it's mandatory and you can't disable that. It's part of a higher conspiracy to take over the world by shutting all the machines down in 5 secs intervals.
On the other side, under linux (Slackware 11.0) I disabled the shutdown that triggers then touching that button, because I didn't want office people to mess up with my machine. You can do so by just issuing as root
Code:
chmod -x /etc/acpi/acpi_handler.sh
I also commented out the "Three finger salute" in /etc/inittab as the aforementioned people love to press [Ctrl]+[Alt]+[Del] whenever they panic by seeing a black screen CLI (a tty console).
This was under Slackware, so I can't really help you for other distros
Godspeed
He already has a "quick" power button being pressed fixed, that is the first line of the OP. It is just the pressing it and holding it, which as you and others of us have written, is beyond the control of the OS and can't be messed with.
Nope, Jim is right, and you don't realy want to disable it , you may need it it one day(Murphy is lurking around the corner again). I would tape something over it to prevent people from turning it off, if you can't have it in a secure room.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.