Every once in awhile I have the need to access a system in single user mode. Especially, when the root password isn’t what it’s supposed to be or for some reason a root login dumps me back to the login prompt.
Sometimes I forget the option to enable the single user due to multiple systems and rarely needing to use it.
Single-user mode boots the computer to runlevel 1 which means you will have access to your local file systems but not the network.
To get to single use mode you simply follow these steps which I found here:
At the GRUB splash screen at boot time, press any key to enter the GRUB interactive menu.
-
Select Red Hat Enterprise Linux with the version of the kernel that you wish to boot and type
a
to append the line. -
Go to the end of the line and type
single
as a separate word (press the Spacebar and then typesingle
). Press Enter to exit edit mode.
After that press the “b” key to boot the system which should go through process and then leave you with a root prompt. There you can change the root password, edit config files, etc.