Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 501
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

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