How do I disable CTRL + ALT + DEL reboot keys shortcut on Linux server?
CTRL+ALT+DEL reboot is configured using /etc/inittab file. Edit /etc/inittab file and remove ctrlaltdel entry (login as root):
# vi /etc/inittab
Find line:
ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
Replace it (i.e comment out the line by putting a hash mark (#) in front of it):
# ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
Close and save the file. Type command to reread /etc/inittab:
# init q
🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.
🐧 2 comments so far... add one ↓
🐧 2 comments so far... add one ↓
Category | List of Unix and Linux commands |
---|---|
File Management | cat |
Firewall | Alpine Awall • CentOS 8 • OpenSUSE • RHEL 8 • Ubuntu 16.04 • Ubuntu 18.04 • Ubuntu 20.04 |
Network Utilities | dig • host • ip • nmap |
OpenVPN | CentOS 7 • CentOS 8 • Debian 10 • Debian 8/9 • Ubuntu 18.04 • Ubuntu 20.04 |
Package Manager | apk • apt |
Processes Management | bg • chroot • cron • disown • fg • jobs • killall • kill • pidof • pstree • pwdx • time |
Searching | grep • whereis • which |
User Information | groups • id • lastcomm • last • lid/libuser-lid • logname • members • users • whoami • who • w |
WireGuard VPN | Alpine • CentOS 8 • Debian 10 • Firewall • Ubuntu 20.04 |
Cool one…..
hi, tnx for your great text. but i don’t have this line!!!! in my CentOS 6.3!!!! what should i do?????? pleasssssssssse help me :( i’m in pressure with my boss :((
thnak you soooooooooooo much :*