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     - How to install Gnome 3.10 in Ubuntu 13.10 (Linux)

- Using Lua implement various operations list (Programming)

- How to find the available network adapter on Ubuntu (Linux)

- OpenvSwitch 2.1.2 shell script to start and stop (Linux)

- Ubuntu 64-bit installation Adobe Reader 9.5.5 (Linux)

- UNIX and class UNIX system security check notes (Linux)

- Use ARChon runtime environment to run Android apps on Ubuntu (Linux)

- Why is the ibdata1 file growing in MySQL? (Database)

- 20 Unix / Linux command skills (Linux)

- Ubuntu 14.04 / 12.04 subscribe users to install software Liferea 1.10.10 (Linux)

- Fedora network set up simple (Linux)

- Notebook computer forget password solution (Linux)

- Install VMware Tools in Debian (Linux)

- Shared directory settings between Linux and Linux (Linux)

- Linux system security mechanisms to share (Linux)

- Oracle Standby Redo Log experiment (Database)

- Using IntelliJ IDEA 13 integrated development environment to build Android (Linux)

- SQLite (Database)

- RHEL5 / 6 Installation Notes (Linux)

- How to create a new file system / partitions under Linux terminal (Linux)

 
         
  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:      
 
- Create a custom pixel format based on an existing image data BufferedImage (Programming)
- Linux / Unix system-level IO (Linux)
- Spring Data MongoDB combat (Database)
- CentOS install Memcached (Server)
- High-performance JavaScript loaded and executed (Programming)
- High-performance JavaScript DOM programming (Programming)
- Python virtual environment: Virtualenv (Linux)
- Use Spring cache and ehcache (Programming)
- Talk about the Linux ABI compatibility Application (Linux)
- grep command Detailed and relevant examples (Linux)
- Restore database fault encountered ORA-0600 (Database)
- 12 novice Linux command must learn (Linux)
- The OpenGL ES GLFW window structures (Programming)
- C / C ++ language variable scope: local variables, global variables, file-level variables (Programming)
- To install the latest version of Shotwell 0.18 under Ubuntu (Linux)
- RAID disk array Description (Linux)
- Oracle row and column switch to turn columns (Database)
- IOS interview questions Summary (Programming)
- Android Unzip the ZIP / GZIP data (based on the InflaterInputStream implementation) (Programming)
- Start Linux ISO image directly from the hard disk (Linux)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.