Link to home
Start Free TrialLog in
Avatar of vmwarecv1
vmwarecv1

asked on

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.
ASKER CERTIFIED SOLUTION
Avatar of Kerem ERSOY
Kerem ERSOY

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Kerem ERSOY
Kerem ERSOY

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
Opps sorry there is a typo there. to restart the init use this command:

init q

not "tellinit q"

Cheers,
K.
Avatar of vmwarecv1

ASKER

KeremE,

Thank you very much.
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.