Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

prompt for confirmation for reboot in suse server

Posted on 2009-07-13
5
Medium Priority
?
487 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 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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

704 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