Disable ctrl alt del in CentOS

Source: Internet
Author: User

The ctrl + alt + del key combination function is set in the/etc/inittab file. The iniitab file contains the following two lines:

# Trap CTRL-ALT-DELETE

Ca: ctrlaltdel:/sbin/shutdown-t3-r now

Pressing ctrl + alt + del will restart the system, but the delay between sending alarm information to the process and killing the process signal will be 3 seconds.


# Trap CTRL-ALT-DELETE

# Ca: ctrlaltdel:/sbin/shutdown-t3-r now


When ctrl + alt + del is disabled, we can use the ctrlaltdel command to set the shutdown mode of ctrl + alt + del,


Parameters

Description

Hard

Restart the system now

Soft

Sends the sigint (interrupt) signal to the init process, and the init process processes the shutdown operation.


Related Article

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.