Re: [6.3] Get e-mail when CTRL-ALT-DEL is used?
On Thu, 08 Jul 2010 14:29:59 +0400, ait a...@rocc.ru wrote: Maybe you can use the /etc/rc.shutdown script, there's a line at the end of it: Thanks everyone for the help. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
[6.3] Get e-mail when CTRL-ALT-DEL is used?
Hello This is on a remote 6.3 host: I'd like to get an e-mail if a user hits the CTRL-ALT-DEL to reboot the server. Googling told me that the use of the three-key combo can be enabled/disabled when compiling a new kernel, but not how to manage this feature when it's enabled in a running kernel. Is there a configuration file somewhere that would let me add e-mail support for this action? Thank you. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: [6.3] Get e-mail when CTRL-ALT-DEL is used?
On 07/08/2010 14:12, Gilles wrote: Hello This is on a remote 6.3 host: I'd like to get an e-mail if a user hits the CTRL-ALT-DEL to reboot the server. Googling told me that the use of the three-key combo can be enabled/disabled when compiling a new kernel, but not how to manage this feature when it's enabled in a running kernel. Is there a configuration file somewhere that would let me add e-mail support for this action? Thank you. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org Maybe you can use the /etc/rc.shutdown script, there's a line at the end of it: ... # Insert other shutdown procedures here ... Best wishes, Dmitry. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: [6.3] Get e-mail when CTRL-ALT-DEL is used?
On Thu, Jul 08, 2010 at 12:12:27PM +0200, Gilles wrote: This is on a remote 6.3 host: I'd like to get an e-mail if a user hits the CTRL-ALT-DEL to reboot the server. Googling told me that the use of the three-key combo can be enabled/disabled when compiling a new kernel, but not how to manage this feature when it's enabled in a running kernel. Is there a configuration file somewhere that would let me add e-mail support for this action? Assuming you want to know whether the server was rebooted (as opposed to whether a user invoked a given key combination), adding something along the lines of the following to root's crontab(5) should suffice: @reboot echo `hostname` rebooted \ | mail -s `hostname` rebooted gil...@example.org -- George ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: [6.3] Get e-mail when CTRL-ALT-DEL is used?
On Thu, 08 Jul 2010 12:12:27 +0200 Gilles gilles.gana...@free.fr wrote: Hello This is on a remote 6.3 host: I'd like to get an e-mail if a user hits the CTRL-ALT-DEL to reboot the server. Googling told me that the use of the three-key combo can be enabled/disabled when compiling a new kernel, but not how to manage this feature when it's enabled in a running kernel. If you put hw.syscons.kbd_reboot=0 in /etc/sysctl.conf, reboot by CTRL-ALT-DEL is disabled. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Disable CTRL-ALT-DEL
Olivier Nicole wrote: Hi, On FreeBSD 6.3 how to disable the CTRL-ALT-DEL from halting/rebooting the system? Best regards, Olivier There are two ways of doing this, both described in the FreeBSD FAQ here: http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/admin.html#CAD-REBOOT ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Disable CTRL-ALT-DEL
Manolis Kiagias wrote: Olivier Nicole wrote: Hi, On FreeBSD 6.3 how to disable the CTRL-ALT-DEL from halting/rebooting the system? Best regards, Olivier There are two ways of doing this, both described in the FreeBSD FAQ here: http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/admin.html#CAD-REBOOT Hmmm, didn't know about the second one, and doesn't seem to be working either (on both 7.0 and 6.3): sysctl hw.syscons.kbd_reboot=0 sysctl: unknown oid 'hw.syscons.kbd_reboot' Peter -- http://www.boosten.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Disable CTRL-ALT-DEL
Peter Boosten wrote: Manolis Kiagias wrote: Olivier Nicole wrote: Hi, On FreeBSD 6.3 how to disable the CTRL-ALT-DEL from halting/rebooting the system? Best regards, Olivier There are two ways of doing this, both described in the FreeBSD FAQ here: http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/admin.html#CAD-REBOOT Hmmm, didn't know about the second one, and doesn't seem to be working either (on both 7.0 and 6.3): sysctl hw.syscons.kbd_reboot=0 sysctl: unknown oid 'hw.syscons.kbd_reboot' Peter It seems you are right. Just checked on 6.3 and 7.0 and it does not exist. It does exist in 6.2, however. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Disable CTRL-ALT-DEL
On Sat, Oct 18, 2008 at 10:58:29AM +0300, Manolis Kiagias wrote: Peter Boosten wrote: Manolis Kiagias wrote: Olivier Nicole wrote: Hi, On FreeBSD 6.3 how to disable the CTRL-ALT-DEL from halting/rebooting the system? Best regards, Olivier There are two ways of doing this, both described in the FreeBSD FAQ here: http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/admin.html#CAD-REBOOT Hmmm, didn't know about the second one, and doesn't seem to be working either (on both 7.0 and 6.3): sysctl hw.syscons.kbd_reboot=0 sysctl: unknown oid 'hw.syscons.kbd_reboot' Peter It seems you are right. Just checked on 6.3 and 7.0 and it does not exist. It does exist in 6.2, however. Hmm... # sysctl hw.syscons.kbd_reboot=0 hw.syscons.kbd_reboot: 1 - 0 # sysctl hw.syscons.kbd_reboot=1 hw.syscons.kbd_reboot: 0 - 1 # uname -a FreeBSD icarus.home.lan 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #0: Thu Oct 2 03:04:20 PDT 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/PDSMI_PLUS_RELENG_7_amd64 amd64 -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Disable CTRL-ALT-DEL
On Sat 2008-10-18 09:47:51 UTC+0200, Peter Boosten ([EMAIL PROTECTED]) wrote: http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/admin.html#CAD-REBOOT Hmmm, didn't know about the second one, and doesn't seem to be working either (on both 7.0 and 6.3): sysctl hw.syscons.kbd_reboot=0 sysctl: unknown oid 'hw.syscons.kbd_reboot' That's odd.. $ sysctl hw.syscons.kbd_reboot hw.syscons.kbd_reboot: 1 $ uname -a FreeBSD blizzard.phoenix 6.3-RELEASE-p5 FreeBSD 6.3-RELEASE-p5 #0: Wed Oct 1 05:34:19 UTC 2008 [EMAIL PROTECTED] daemonology.net:/usr/obj/usr/src/sys/GENERIC i386 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Disable CTRL-ALT-DEL
andrew clarke wrote: On Sat 2008-10-18 09:47:51 UTC+0200, Peter Boosten ([EMAIL PROTECTED]) wrote: http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/admin.html#CAD-REBOOT Hmmm, didn't know about the second one, and doesn't seem to be working either (on both 7.0 and 6.3): sysctl hw.syscons.kbd_reboot=0 sysctl: unknown oid 'hw.syscons.kbd_reboot' That's odd.. $ sysctl hw.syscons.kbd_reboot hw.syscons.kbd_reboot: 1 $ uname -a FreeBSD blizzard.phoenix 6.3-RELEASE-p5 FreeBSD 6.3-RELEASE-p5 #0: Wed Oct 1 05:34:19 UTC 2008 [EMAIL PROTECTED] daemonology.net:/usr/obj/usr/src/sys/GENERIC i386 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] What about this: [EMAIL PROTECTED]:~]$ uname -a FreeBSD atlantis.dyndns.org 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #10: Fri Oct 17 18:31:22 EEST 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/ATLANTIS i386 [EMAIL PROTECTED]:~]$ sysctl -a |grep syscons hw.syscons.kbd_debug: 1 hw.syscons.bell: 1 hw.syscons.saver.keybonly: 1 hw.syscons.sc_no_suspend_vtswitch: 0 [EMAIL PROTECTED]:~]$ (Actual sources are not yesterdays, I just rebuilt the kernel yesterday) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Disable CTRL-ALT-DEL
Jeremy Chadwick wrote: On Sat, Oct 18, 2008 at 10:58:29AM +0300, Manolis Kiagias wrote: Peter Boosten wrote: Manolis Kiagias wrote: Olivier Nicole wrote: Hi, On FreeBSD 6.3 how to disable the CTRL-ALT-DEL from halting/rebooting the system? Best regards, Olivier There are two ways of doing this, both described in the FreeBSD FAQ here: http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/admin.html#CAD-REBOOT Hmmm, didn't know about the second one, and doesn't seem to be working either (on both 7.0 and 6.3): sysctl hw.syscons.kbd_reboot=0 sysctl: unknown oid 'hw.syscons.kbd_reboot' Peter It seems you are right. Just checked on 6.3 and 7.0 and it does not exist. It does exist in 6.2, however. Hmm... # sysctl hw.syscons.kbd_reboot=0 hw.syscons.kbd_reboot: 1 - 0 # sysctl hw.syscons.kbd_reboot=1 hw.syscons.kbd_reboot: 0 - 1 # uname -a FreeBSD icarus.home.lan 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #0: Thu Oct 2 03:04:20 PDT 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/PDSMI_PLUS_RELENG_7_amd64 amd64 Mystery solved. The sysctl only exists if you have not already compiled the kernel with options SC_DISABLE_REBOOT I just checked, and all the systems that do not show this were compiled with SC_DISABLE_REBOOT I installed a clean (vmware) 7.0 and hw.syscons.kbd_reboot exists. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Disable CTRL-ALT-DEL
Olivier Nicole wrote: Hi, On FreeBSD 6.3 how to disable the CTRL-ALT-DEL from halting/rebooting the system? Compile your own kernel with this option: # Disable CTRL-ALT-DEL options SC_DISABLE_REBOOT Peter -- http://www.boosten.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Disable CTRL-ALT-DEL
--- On Sat, 10/18/08, Jeremy Chadwick [EMAIL PROTECTED] wrote: From: Jeremy Chadwick [EMAIL PROTECTED] Subject: Re: Disable CTRL-ALT-DEL To: Manolis Kiagias [EMAIL PROTECTED] Cc: Olivier Nicole [EMAIL PROTECTED], freebsd-questions@freebsd.org, Peter Boosten [EMAIL PROTECTED] Date: Saturday, October 18, 2008, 4:10 AM It seems you are right. Just checked on 6.3 and 7.0 and it does not exist. It does exist in 6.2, however. Hmm... # sysctl hw.syscons.kbd_reboot=0 hw.syscons.kbd_reboot: 1 - 0 # sysctl hw.syscons.kbd_reboot=1 hw.syscons.kbd_reboot: 0 - 1 # uname -a FreeBSD icarus.home.lan 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #0: Thu Oct 2 03:04:20 PDT 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/PDSMI_PLUS_RELENG_7_amd64 amd64 It's definitly there in RELENG_7 as of this moment (just cvsup'd): /usr/src/sys/dev/syscons/syscons.c:SYSCTL_INT(_hw_syscons, OID_AUTO, kbd_reboot, CTLFLAG_RW|CTLFLAG_SECURE, enable_reboot, - mdh __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Disable CTRL-ALT-DEL
Hi, On FreeBSD 6.3 how to disable the CTRL-ALT-DEL from halting/rebooting the system? Best regards, Olivier ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: bind CTRL-ALT+DEL action
Aymeric MUNTZ [EMAIL PROTECTED] writes: Is it possible to bind any action to combinated keys such as CTRL+ALT+DEL? Yes. In X, it's kind of tricky to apply modifiers to a particular combination, so I'm not sure how to do that particular one, but with syscons it's quite easy to apply kbdmap(1) for the purpose. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: bind CTRL-ALT+DEL action
Lowell Gilbert [EMAIL PROTECTED] writes: Aymeric MUNTZ [EMAIL PROTECTED] writes: Is it possible to bind any action to combinated keys such as CTRL+ALT+DEL? Yes. In X, it's kind of tricky to apply modifiers to a particular combination, so I'm not sure how to do that particular one, The problem with X is that there are so many ways and places to do it and higher-level programs can hide the lower-level settings. X has a xkb system (see xkbcomp manpage and elsewhere) that lets you mess with low level stuff, which can be handy to enable special buttons on fancy keyboards. Many X programs (eg, Xemacs) can be configured with custom keys and key combinations. The window manager fvwm2 seems fairly easy. This allows ctrl-alt-delete to do something (defined in the config file) Key Delete A CM something ^ ^^- Alt | +-- Ctrl + Any context ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
bind CTRL-ALT+DEL action
Is it possible to bind any action to combinated keys such as CTRL+ALT+DEL? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
CTRL+ALT+DEL
How to disable CTRL+ALT+DEL ? Thanks. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: CTRL+ALT+DEL
Try add following line: options SC_DISABLE_REBOOT to your kernel conf, recompile and install the kernel. This should be work. regards, Santo Natale On Fri, Sep 03, 2004 at 06:16:41PM +0200, mkondelk wrote: How to disable CTRL+ALT+DEL ? Thanks. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: CTRL+ALT+DEL
Edit your kernel configuration, add the line : options SC_DISABLE_REBOOT then recompile your kernel, install and reboot. On Fri, 3 Sep 2004, mkondelk wrote: How to disable CTRL+ALT+DEL ? Thanks. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
ctrl+alt+del shutdown/reboot
Hi, I install linux freebsd servers, and I'd like to shutdown (and not reboot) my servers pressing ctrl+alt+del. I know how to in linux (inittab) but not in freebsd, because reading manuals I have seen only how to disable the function through kernel reconfiguration. Please help me Luca Massarenti ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ctrl+alt+del shutdown/reboot
Hi, I install linux freebsd servers, and I'd like to shutdown (and not reboot) my servers pressing ctrl+alt+del. I know how to in linux (inittab) but not in freebsd, because reading manuals I have seen only how to disable the function through kernel reconfiguration. Please help me there is such a good command shutdown -r now (-r means to reboot -h means to halt) you're discouraged to use halt and reboot cauz it's not a good way to stop FreeBSD,... also there command fasthalt, fastboot... Luca Massarenti ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ctrl+alt+del shutdown/reboot
you're discouraged to use halt and reboot cauz it's not a good way to stop FreeBSD,... also there command fasthalt, fastboot... Why isn't it a good way? -Pierrick ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ctrl+alt+del shutdown/reboot
you're discouraged to use halt and reboot cauz it's not a good way to stop FreeBSD,... also there command fasthalt, fastboot... Why isn't it a good way? cauz reboot and halt don't execute the scripts in /etc nor in /usr/local/etc/rc.d -Pierrick ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ctrl+alt+del shutdown/reboot
On Mon, 21 Jul 2003, Pierrick Brossin wrote: you're discouraged to use halt and reboot cauz it's not a good way to stop FreeBSD,... also there command fasthalt, fastboot... Why isn't it a good way? It's not that halt(8) and reboot(8) aren't safe, they're just rude if you're running a multi-user system. :) If you have multiple users, you can use the shutdown(8) command, which will let you specify a time till reboot. For example shutdown -r +5 will reboot in five minutes, and it will send out countdown messages to everyone. Marc. -- Marc Ramirez Blue Circle Software Corporation 513-688-1070 (main) 513-382-1270 (direct) www.bluecirclesoft.com ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ctrl+alt+del shutdown/reboot
luca.massarenti wrote: Hi, I install linux freebsd servers, and I'd like to shutdown (and not reboot) my servers pressing ctrl+alt+del. ctrl-alt-del is mapped to boot in the default keyboard map. You want to remap it halt or maybe even pdwn See 'man keymap' for more info. -- :{ [EMAIL PROTECTED] Andy Farkas System Administrator Speednet Communications http://www.speednet.com.au/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]