Linux system initialization--turn off Operation Association for Ctrl+alt+del Auto Restart

Source: Internet
Author: User

Turn off the action Association for Ctrl+alt+del Auto Restart

This operation must be done, or there is an accident really is not even cry, Linux this really pit dad, do not login, directly press Ctrl+alt+del can restart the server? The important thing is that in the production environment Windows many times need Ctrl+alt+del wake up, if accidentally pressed, hahaha haha ah ha! Congratulations ~

Everyone familiar with the Linux startup process should know that we can go to/etc/inittab to find the Ctrl+alt+del control file.

Use the following command to modify the configuration file

rhel6

command

original

start on Control-alt-delete

modified to

# #

RHEL7

Command

shell># Rm-rf/usr/lib/systemd/system/ctrl-alt-del.target

After completion, you can use the following command to take effect without rebooting the system

shell># Init Q

You can also use the following command to restart the system to take effect

shell># Init 6

Verify

Click Ctrl+alt+del in the CLI and the system has no response, indicating success.


This article is from the Blue Wings blog, so be sure to keep this source http://wqlszy2016.blog.51cto.com/2668358/1891343

Linux system initialization--turn off Operation Association for Ctrl+alt+del Auto Restart

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.