在 PVE 主机上重置 root 帐户密码
以下引用自Debian Squeeze 更改 root 密码,适用于 Proxmox VE3.x 和 4.x(它也可用于更改任何帐户密码以及其他基于 Debian 的发行版):
方法一
- 启动进入grub,选择单用户但不要按 Enter 键。
- 按e进入编辑模式。
- 向下滚动到您将从中启动的内核行,它以“linux /boot/vmlinuz-…… ”开头。
- 滚动到该行的末尾,按一次空格键,然后输入init=/bin/bash
- 按Ctrl X启动
# Remount / as Read/Write
mount -rw -o remount /
# Change the root account password with
passwd
# Change any other account password with
passwd username
# type new password, confirm and hit enter and then reboot.
发表回复