If we want to modify the root default password, generally through 2 methods, some panels can be modified by the password, we can directly modify in the panel, if not on the selection of this article introduced the original password with SSH login to modify the new password.
After you log on to SSH, then enter:
passwd
Once the command is entered, we can enter the new password two times directly.
ssh-root-passwd
Personal advice, we'd better change the port and password together.
If you forget the root password you can refer to the following method to resolve
A Linux System Password cracking
1. Enter edit mode by E in the Grub options menu
2. Edit kernel that line/init 1 (or/single)
3. Restart by B
4. After entering, execute the following command
root@ #passwd root (password with root configured)
Enter new UNIX password: Enter a password
root@ #init 6
(ii) Debian Linux system password cracking
1. In the Grub Options menu ' Debian gnu/linux,... (recovery mode) ', enter edit mode by E
2. Edit kernel the line of the RO single to the RW single init=/bin/bash, press B to perform the reboot
3. After entering, execute the following command
root@ (None) #mount-A
root@ (none) #passwd root
root@ (None) #reboot
Three Freebsd System Password cracking
1. Boot into the Guide menu
2. Select each item (press 4) to enter Single-user mode
3. Enter a list of commands after entering
root@ #mount-A
root@ #fsck-y
root@ #passwd (Change Password command)