Recover Lost Root Password for ClearOS 5
If you no longer know the root password for your ClearOS 5.x system, you can use the following steps to reset it. For security reasons this procedure cannot be carried out remotely; it must be done from the console (keyboard and monitor) while physically at the server. For ClearOS 6.x systems, click here.
Boot Into Maintenance (Single-User) Mode
First, you need to boot your system into maintenance (single user) mode:
At the boot splash screen, press any
key to stop the countdown timer.
The boot will continue as it usually does with the exception that it will not run any of the traditional items (init3 or init5).
Changing the password for root
Once the operating system has loaded you will be at a prompt similar to the following:
Changing password for user root
New UNIX password:
Make sure that you set a strong password - i.e. it should not be based solely on a dictionary word and should contain numbers or other valid non-alpha characters. Also, the system will not stop you from using a bad password. In addition we suggest passwords that do not have a percent sign '%' which is then followed by a hexidecimal capable set of numbers. This can be interpreted by some web forms (including Webconfig) as a special character.
If you have used a weak password (one based on a dictionary word) it will state:
BAD PASSWORD: it is based on a dictionary word
In this mode, it will take weak passwords in spite of the fact that they are weak.
Retype new UNIX password:
passwd: all authentication tokens updated successfully.