Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

prompt for confirmation for reboot in suse server

Posted on 2009-07-13
5
Medium Priority
?
494 Views
Last Modified: 2013-12-16
Hi All,

I accidentally rebooted a server from ILO. I don't want to happen it again.
I want the server to prompt for users confirmation before it actually takes a reboot. I think I can have server prompt for commands : reboot, shutdown -r. I am looking for some kind of server prompts for ctrl+alt+del, if accidentally pressed from ILO key.
Please suggest how can I go with implementing that.
0
Comment
Question by:vmwarecv1
  • 4
5 Comments
 
LVL 30

Accepted Solution

by:
Kerem ERSOY earned 2000 total points
ID: 24844919
Hi,

inittab is responsible for trapping CTRL+ALT+DEL. Find this line in /etc/inittab

ca::ctrlaltdel:/sbin/shutdown -t3 -r now

and comment it out. save and exit finally execute:

killall -HUP init

Now you're done. CTRL+ALT+DEL is disabled. You don't have to worry about CRL+ALT+DEL again.

Cheers,
K.
0
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 24844939
You can even modify it to print a warning:

ca:12345:ctrlaltdel:/bin/echo "CTRL-ALT-DEL is disabled"

instead of kill you'd better use:

tellinit q
0
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 24844949
Opps sorry there is a typo there. to restart the init use this command:

init q

not "tellinit q"

Cheers,
K.
0
 

Author Comment

by:vmwarecv1
ID: 24845080
KeremE,

Thank you very much.
0
 
LVL 30

Expert Comment

by:Kerem ERSOY
ID: 24845137
You're welcome :) I'm happy to see you've liekd my suggestion.  This has happened to me in the past. When I was using IP KVM.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month7 days, 9 hours left to enroll

824 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question