編輯 /etc/lilo.conf (或 GRUB 設定) 加入:
timeout=00 restricted password=你的密碼
chmod 600 /etc/lilo.conf 僅 root 可讀。/sbin/lilo -v 更新 MBR。chattr +i /etc/lilo.conf 設定不可變屬性防竄改。userdel lp sync shutdown halt news uucp operator games gopher ... groupdel lp sync shutdown halt news uucp operator games gopher ...
僅保留必要服務帳號,減少攻擊面。
/etc/login.defs:PASS_MIN_LEN 8 (預設 5 過短)。/usr/sbin/authconfig、pwconv、grpconv。安全是持續過程,而非一次性設定。