Solved

prompt for confirmation for reboot in suse server

Posted on 2009-07-13
5
478 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
5 Comments
 
LVL 30

Accepted Solution

by:
Kerem ERSOY earned 500 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

WordPress Tutorial 1: Installation & Setup

WordPress is a very popular option for running your web site and can be used to get your content online quickly for the world to see. This guide will walk you through installing the WordPress server software and the initial setup process.

Question has a verified solution.

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

This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
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 several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses

626 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