Disable ctrl+alt+del on Centos Linux server

www.l‮uttua‬ri.com
Disable ctrl+alt+del on Centos Linux server

To disable the Ctrl+Alt+Del combination on a CentOS Linux server, you can use the "systemctl" command to modify the "ctrl-alt-del.target" system target. This target is responsible for handling the Ctrl+Alt+Del combination, and by default it is set to trigger a reboot of the system.

To disable the Ctrl+Alt+Del combination, follow these steps:

  1. Log in to your CentOS server via SSH as a user with administrative privileges.

  2. Open a terminal and enter the following command:

sudo systemctl mask ctrl-alt-del.target

This will create a symbolic link from the "/dev/null" file to the "ctrl-alt-del.target" file, effectively disabling the Ctrl+Alt+Del combination.

To re-enable the Ctrl+Alt+Del combination, you can use the following command:

sudo systemctl unmask ctrl-alt-del.target

This will remove the symbolic link created by the "mask" command, restoring the default behavior of the Ctrl+Alt+Del combination.

Created Time:2017-10-28 14:02:28  Author:lautturi