Disabling Control-Alt-Delete shutdown is not working
Not sure if this works the same in 10.04, but in 12.04 this is controlled by keyboard shortcuts, and you can easily disable it using GUI:
Is a similar dialog available in 10.04? (try in System > Preferences menu)
Also, as Ben pointed out, even if you prevent Ubuntu from Logging out / Rebooting / Shutting down etc, the simple fact of Ubuntu receiving the Ctrl+Alt+Del event from the VM software may prevent your host OS from acting upon it when Ubuntu has the focus.
That means you may fix the issue in Ubuntu side, but you would still need to make sure that this event is not captured by the client, even if it has the focus.
In VirtualBox, there's an "Auto-Capture Keyboard" option that controls this behaviour.
Related videos on Youtube
![GrandAdmiral](https://i.stack.imgur.com/JSmG2.png?s=256&g=1)
GrandAdmiral
Updated on September 18, 2022Comments
-
GrandAdmiral almost 2 years
I'm running Ubuntu 10.04 in a Virtual Machine on a Windows 7 computer. If I press Ctrl-Alt-Delete when the Ubuntu VM is in focus, the Ubuntu system sees it and shuts down after 60 seconds. This does not happen if the Ubuntu VM is not in focus. I know I could just "be careful", but I'd like to avoid accidentally shutting down my Ubuntu system every time I lock my machine.
I found the following directions for disabling this behavior on Ubuntu:
To disable Ctrl+Alt+Del REBOOT edit
#sudo nano /etc/init/control-alt-delete.conf
comment out:#start on control-alt-delete #task #exec shutdown -r now “Control-Alt-Delete pressed”
I tried that, but it's not working (even after rebooting the system). Considering how common this answer appeared to be, I'm a bit confused. Any other ways to disable this behavior? Thanks!
-
Dan almost 12 yearsWhy do you lock Windows with Ctrl+Alt+Delete? You can do it with Win+L? (Win is that Windows logo on the keyboard)
-
GrandAdmiral almost 12 yearsToo much time with old school IBM keyboards or modern Apple keyboards I guess. :)
-
David Betz over 8 yearsVery good question. The CTRL-ALT-DEL is a serious flaw in Linux. It's very easy to hit accidentally because of exactly this. Even then, one key combo for full job loss and possibly corporate lawsuit? Pretty serious stuff.
-
-
GrandAdmiral almost 12 yearsA similar dialog is available, but it does not allow you to disable the Log out Action. It appears the VMWare Player is the one that is allowing both the Ubuntu VM and the Windows machine to see the Ctrl-Alt-Del. I'd be okay if Windows didn't see the Ctrl-Alt-Del if the Ubuntu VM was in focus. I'd trade that problem for accidentally closing my Ubuntu VM when I lock the screen.
-
GrandAdmiral almost 12 yearsUnfortunately that didn't work, even though I found a similar suggestion in the VMware Player knowledge base when I was trying to find the path to the config.ini file. FYI for anyone looking, it's C:\ProgramData\VMware\VMware Player on my Windows 7 machine.
-
MestreLion almost 12 years@GrandAdmiral: have you tried clicking the shortcut row (to edit the current shortcut) and then pressing
Backspace
to disable the shortcut? If that does not work, you may change the Log out to something else (say, Ctrl+Alt+S) -
GrandAdmiral almost 12 yearsHey, that worked! You know, I tried doing that before but for some reason it didn't seem to take until now. I'm a bit puzzled why the "GUI fix" worked when the command line version didn't, but as least it's solved. Thank you very much for your help.
-
MestreLion almost 12 yearsThe "command-line version" you mention have nothing to do with my approach, and it's not the command-line equivalent of it. There is an equivalent using
gconftool
, I could search for the exact parameters if you want to.