Password protecting single user mode
by Alpha01
I was surprise to find out how easy it was to password protect runlevel 1 aka single user mode in RHEL/CentOS.
Simply update the SINGLE variable in the file /etc/sysconfig/init
SINGLE=/sbin/sulogin
If the root password cannot be retrieved/reset, then at this point the only option will be to boot into a rescue environment, assuming encryption hasn’t been enabled.
Tags: [centos
security
]