Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ To disable the function by pressing Ctrl-Alt-Del to restart the system in RHEL / CentOS 5/6     - CentOS7 boot systemd introduction and use of management (Linux)

- Tmux Getting Start (Linux)

- VirtualBox modify the size of the virtual machine disk VDI (Linux)

- Linux Shell Scripting (Programming)

- JavaScript in null undefined summary (Linux)

- tar decompression problems gzip: stdin: not in gzip format (Linux)

- Why not use the ifconfig command under RedHat Linux 5 (Linux)

- How to install web crawler tool in Ubuntu 14.04 LTS: Scrapy (Linux)

- How to view the Linux graphics hardware information (Linux)

- Bug tracking library after FastJson omitted the decimal point 0 (Programming)

- How to configure security management services under Linux (Linux)

- Linux boot process and run level (Linux)

- VirtualBox 4.3 Can not open a new task for a virtual computer solution (Linux)

- Json Applications of FastJson (Programming)

- C ++ CBitmap, HBitmap, Bitmap difference and contact (Programming)

- Linux program analysis tool: ldd and nm (Linux)

- Linux set the maximum number of open files nofile and nr_open, file-max Description (Linux)

- RedHat / CentOS ext4 partition can not be formatted large supplementary ext4 formatting (Linux)

- Getting Started with Linux system to learn: how to install autossh (Linux)

- Subquery Oracle study notes (Database)

 
         
  To disable the function by pressing Ctrl-Alt-Del to restart the system in RHEL / CentOS 5/6
     
  Add Date : 2018-11-21      
         
         
         
  In Linux, because of the security concerns, we allow anyone to press Ctrl-Alt-Del to restart the system. But in a production environment, you should disable the feature by pressing Ctrl-Alt-Del to restart the system.

In this article, we will describe how to disable the hotkey under RHEL and CentOS.

### In RHEL 5.X and CentOS 5.X

The init process is protected from Ctrl-Alt-Del, something like the following edit '/ etc / inittab' in the 'ca :: ctrlaltdel:' the beginning of the line:

[Root @ localhost ~] # cat / etc / inittab
# Trap CTRL-ALT-DELETE
#ca :: ctrlaltdel: / sbin / shutdown -t3 -r now
We can also change 'ca :: ctrlaltdel:' line to the output log, if anyone wanted to use the hot key to restart the server, there will be a log,

[Root @ localhost ~] # cat / etc / inittab
# Trap CTRL-ALT-DELETE
ca :: ctrlaltdel: / bin / logger -p authpriv.warning -t init "Console-invoked Ctrl-Alt-Del was ignored"
In RHEL6.X and CentOS 6.X

In RHEL6.X and CentOS 6.X, the hotkey's behavior is controlled by the '/etc/init/control-alt-delete.conf'.

The first step before the change, first with the following command to back up configuration

[Root @ localhost ~] # cp -v /etc/init/control-alt-delete.conf /etc/init/control-alt-delete.override
The second step Edit the file, the 'exec / sbin / shutdown' line instead of using the configuration below, this configuration will output logs Each time you press Ctrl-Alt-Del:

[Root @ localhost ~] # cat /etc/init/control-alt-delete.conf
exec / usr / bin / logger -p authpriv.notice -t init "Ctrl-Alt-Del was pressed and ignored"
     
         
         
         
  More:      
 
- Examples of RAID levels and achieve Operational Details (Linux)
- The most common and most effective security settings under linux (Linux)
- Linux system installation Gitlab (Server)
- Dialogue UNIX:! $ # @ *% (Linux)
- To compile and install MySQL 5.7.7 RC under CentOS 7.1 (Database)
- Solve the compatibility problem between Linux and Java at the source in bold font (Linux)
- Linux system package manager (rpm, yum, source packages installation) (Linux)
- Linux account related documents Interpretation (Linux)
- Using DBMS_STAT function closes mission (Database)
- How to network to share files between Windows, MAC and Linux (Linux)
- How to configure a server in a MySQL Cluster (Database)
- Linux distributed message queue RocketMQ deployment and monitoring - Dual Master (Server)
- Ubuntu How to install Pacman (Linux)
- Help you enhance Python programming languages 27 (Programming)
- CentOS6.0 successful installation and configuration OpenCV (Linux)
- Linux set to select the appropriate level of security of the network according to deployment (Linux)
- Basic data types JavaScript type system and the type of packaging (Programming)
- VirtualBox installation enhancements let the mouse move and share CentOS 6.4 (Linux)
- Installation and Configuration Tomcat environment CentOS 6.6 (Server)
- How to upgrade Docker 1.6 on Fedora / CentOS (Server)
     
           
     
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.