Cheat Sheets

Security - Ctrl-Alt-Del disabled

Description

Reboot via console Ctrl-Alt-Del should be disabled

Solution

sed -i "/^[^#]ctrlaltdel/s/^/#/" /etc/inittab

Check Script: security-no-ctrlaltdel.sh

#!/bin/bash

if grep -q "^[[:space:]]*[^#].*:ctrlaltdel:" /etc/inittab 2>/dev/null; then result_failed "Ctrl-Alt-Del is allowed in /etc/inittab" fi
Comment on Disqus