Réinitialiser le mot de passe root pour Proxmox

De Wiki de Mémoire Vive
Aller à la navigation Aller à la recherche

J'ai cherché une procédure pour réinitialiser mon mot de passe root pour Proxmox, voici ce que j'ai trouvé, et qui reste à tester,

https://pve.proxmox.com/wiki/Root_Password_Reset

Illustré aussi par cette vidéo, https://www.youtube.com/watch?v=hHKLsJTQwhM&ab_channel=simplixITe

Method 1

Boot into grub, select single user but do not press enter.

  • Press e to go into edit mode.
  • Scroll down to the kernel line you will boot from, it starts with "linux /boot/vmlinuz-……."
  • Scroll to the end of that line and press space key once and type init=/bin/bash
  • Press Ctrl X to boot
# 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.