Anecdotes from a Linux Systems Administrator. /root

Home About Books Blog Portfolio Archive
28 December 2013

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 User mode password protected

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 ]