Set Password for Single User Mode on Linux (CentOS / RHEL )

Overview:

Setting Password for Single User Mode in Linux , adds security to Linux boxes. If some one access your server physically & reboot server and then tries to change root password from single user mode . In that case if password is set on single user mode , one has to first enter root password , then only can reset root password .

Note – In Debian like Operating System require root password when booting into single user mode or recovery mode. But RHEL & CentOS allows access from the console into single user mode without a password.