vps忘记密码怎么办?单用户模式修改密码

今天看loc有朋友就直接复制下英文模式的。中文的话,晚点再编辑。

To reset the root password of your server, you will need to boot into single user mode.

Access the Manage section of your server in the customer portal and follow these steps. The option depends on the bootloader version on the machine:

CentOS 6

  1. Click [View Console] to access the console and click the send CTRL+ALT+DEL button on the top right. Alternatively, you can also click [RESTART] to restart the server.
  2. You will see a GRUB boot prompt telling you to press any key – you have only a few seconds to press a key to stop the automated booting process. (If you miss this prompt you will need to restart the VM again)
  3. At the GRUB prompt, type “a” to append to the boot command.
  4. Add the text “single” and press enter.
  5. System will boot and you will see the root prompt. Type “passwd” to change the root-password and then reboot again.

CentOS 7

  1. Click [View Console] to access the console and click the send CTRL+ALT+DEL button on the top right. Alternatively, you can also click [RESTART] to restart the server.
  2. As soon as the boot process starts, press ESC to bring up the GRUB boot prompt. You may need to turn the system off from the control panel and then back on to reach the GRUB boot prompt.
  3. You will see a GRUB boot prompt – press “e” to edit the first boot option. (If you do not see the GRUB prompt, you may need to press any key to bring it up before the machine boots)
  4. Find the kernel line (starts with “linux16″), change ro to rw init=/sysroot/bin/sh.
  5. Press CTRL-X or F10 to boot single user mode.
  6. Access the system with the command: chroot /sysroot.
  7. Run passwd to change the root password.
  8. Reboot the system: reboot -f.

Debian, Ubuntu

  1. Click [View Console] to access the console and click the send CTRL+ALT+DEL button on the top right. Alternatively, you can also click [RESTART] to restart the server.
  2. As soon as the boot process starts, press ESC to bring up the GRUB boot prompt. You may need to turn the system off from the control panel and then back on to reach the GRUB boot prompt.
  3. You will see a GRUB boot prompt – press “e” to edit the first boot option. (If you do not see the GRUB prompt, you may need to press any key to bring it up before the machine boots)
  4. Find the kernel line (starts with “linux /boot/”) and add init=”/bin/bash” at the end of the line (On CentOS 7, the line may start with linux16).
  5. Press CTRL-X or F10 to boot.
  6. System will boot and you will see the root prompt. Type “mount -rw -o remount /” and then “passwd” to change the root password and then reboot again.

FreeBSD

The boot menu has an option to boot into single-user mode. Press the key for single user mode (2). At the root prompt, type “passwd” to change the root password and then reboot again.

CoreOS

CoreOS by default uses SSH key authentication. On Vultr, a root user and password are created. If an SSH key is selected when creating the VPS, this SSH key can be used to login as user “core”.

It is possible to reset the standard root login by executing “sudo passwd” as user “core”. Login as “core” using the SSH key first.

If you lost your SSH key, then you can login as the “core” user by editing the grub loader. Follow these steps:

  1. Click [View Console] to access the console and click the send CTRL+ALT+DEL button on the top right. Alternatively, you can also click [RESTART] to restart the server.
  2. You will see a GRUB boot prompt – press “e” to edit the first boot option. (If you do not see the GRUB prompt, you may need to press any key to bring it up before the machine boots)
  3. At the end of the line that begins with “linux$” add ” coreos.autologin=tty1″ (no quotes).
  4. Press CTRL-X or F10 to boot. You will be logged in as “core” when the system boots.
  5. Remember to reboot your server after you have reset your login.

Windows Server 2012

See this guide for instructions on how to reset the administrator password on Windows Server 2012.

跑路及骗子公司semoweb&serversavior

确定度:100%

问题度:无道德,丢数据,耍无赖

 

站长亲历的一个,然后看到便宜发了,就也来转录下。

这家公司在很多vps推荐站都有,就是比较老了。原名叫做serversavior,

期初还算稳定,能够使用。

semoweb

后来一段时间IP都连不上,使用也不给回复,然后数据都丢失。这还不是关键。

他们家TK有人回复啊!然后一直赖皮说,没啊,可以啊,可以使用啊。我特么的不能用了后台也不可以,你跟我说可以?

搞笑吗?然后最后说给我新开个VPS,我的天啊。耍无赖的感觉。看了TK邮件回复头像是印度阿三。然后更可怕的是一直在发账单,我的天。这些人真无赖,因为后台我也早取消了。然后一直发invoice。

只能说垃圾了。做这些小动作。

域名时间:semoweb

更新日期: 2016-04-27 
注册日期: 2008-04-26 
过期日期: 2017-04-26 

realidc做最专注的vps推荐博客

real好棒,其实目的在于做一个真实的推荐网站。不是为了aff,只要纯粹为了分享。当然了有时候会上AFF,但是并不是为了纯商业。

哎解释那么多,干嘛呢。。喜欢的来看。不喜欢的去其他的。哈哈哈。加油了。

realone