[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 497
  • Last Modified:

prompt for confirmation for reboot in suse server

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
vmwarecv1
Asked:
vmwarecv1
  • 4
1 Solution
 
Kerem ERSOYPresidentCommented:
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
 
Kerem ERSOYPresidentCommented:
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
 
Kerem ERSOYPresidentCommented:
Opps sorry there is a typo there. to restart the init use this command:

init q

not "tellinit q"

Cheers,
K.
0
 
vmwarecv1Author Commented:
KeremE,

Thank you very much.
0
 
Kerem ERSOYPresidentCommented:
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

Take Control of Web Hosting For Your Clients

As a web developer or IT admin, successfully managing multiple client accounts can be challenging. In this webinar we will look at the tools provided by Media Temple and Plesk to make managing your clients’ hosting easier.

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now