My Favorites

Close

Please to see your favorites.

  • Bookmark
  • Email Document
  • Printer Friendly
  • Favorite
  • Rating:

Disable reboot when ctrl-alt-del is pressed

This document (7023999) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server 12 
SUSE Linux Enterprise Desktop 12 
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Desktop 15

Situation

When using a tty console, by default pressing ctrl alt del ( ctrl-alt-del )  will reboot the system. In some situations, this behavior may need to be disabled.

By default, we see that the ctrl-alt-delete.target is a symlink to reboot.target:


SUSE:/home/SUSE/ # ls -lah /usr/lib/systemd/system/ctrl-alt-del.target
lrwxrwxrwx 1 root root 13 Jul 11 09:12 /usr/lib/systemd/system/ctrl-alt-del.target -> reboot.target


Resolution

To change this behavior to no longer reboot, point the symlink to /dev/null instead and the key combination will no longer reboot the system:

ln -sf /dev/null /usr/lib/systemd/system/ctrl-alt-del.target

Now check to ensure the symlink has been updated as expected:


SUSE:/home/SUSE/ #  ls -lah /usr/lib/systemd/system/ctrl-alt-del.target
lrwxrwxrwx 1 root root 9 Jul 11 09:23 /usr/lib/systemd/system/ctrl-alt-del.target -> /dev/null
You have new mail in /var/spool/mail/logan

Ctrl-alt-del reboot has now been disabled. Test ctrl-alt-del to verify.


Cause

Once SLES or SLED has booted, ctrl-alt-delete is controlled by by systemd from a text console. By default, we see that the ctrl-alt-delete.target is a symlink to reboot.target. 

Disclaimer

This Support Knowledgebase provides a valuable tool for NetIQ/Novell/SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7023999
  • Creation Date:11-JUL-19
  • Modified Date:11-JUL-19
    • SUSESUSE Linux Enterprise Desktop
      SUSE Linux Enterprise Server
< Back to Support Search

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Join Our Community

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.


SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.

Go to Customer Center