ClearOS Documentation

×

Warning

301 error for file:https://clearos.com/dokuwiki2/lib/exe/css.php?t=dokuwiki&tseed=82873f9c9a1f5784b951644363f20ef8

User Tools

Site Tools


Recover Lost Root Password for ClearOS 6

If you no longer know the root password for your ClearOS 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 7.x systems, click here. For ClearOS 5.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.

GRUB countdown timer

  • Select the ClearOS version with the version of the Linux kernel that you wish to boot. This will usually already be selected or there may be one item listed.

GRUB countdown timer interrupted

  • Type e to modify the boot procedure.

Editing GRUB

  • Select the line that begins with 'kernel' and type e to modify the line.

GRUB: selecting the kernel line

  • Make sure that the cursor is at the end of the line

GRUB: editing the kernel line

  • and press the Spacebar and then type single. Press Enter to exit edit mode.

GRUB: enabling single mode on kernel line

  • Type b to boot the selected item and begin booting up your system in single mode.

GRUB: selecting the kernel line

The boot will continue as it usually does with the exception that it will not run any of the traditional items (init3 or init5).

System booted into single mode

Changing the password for root

Once the operating system has loaded you will be at a prompt similar to the following:

[root@gateway /}#
  • Type the command passwd and press Enter. You will see the following:
[root@gateway /}# passwd
Changing password for user root
New 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 may 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.

  • You will then be asked to re-enter the password to confirm it and will subsequently receive a confirmation that the root password has been reset.
Retype new password:

passwd: all authentication tokens updated successfully.
  • Now type in the command reboot and press Enter to restart your ClearOS system.
[root@gateway /}# reboot

Changed root password at command line

content/en_us/6_kb_forgot_root_password.txt · Last modified: 2015/08/14 14:20 by dloper

https://clearos.com/dokuwiki2/lib/exe/indexer.php?id=content%3Aen_us%3A6_kb_forgot_root_password&1547621399