Linux VPS To modify the default root user password method

Source: Internet
Author: User
Tags vps

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.