Root Password Reset - Proxmox VE (/mediawiki/load.php?lang=en&modules=ext.CookieWarning.styles%7Cmediawiki.widgets.styles%7Coojs-ui-core.icons%2Cstyles%7Coojs-ui.styles.indicators%7Cskins.vector.styles.legacy&only=styles&skin=vector) (/mediawiki/load.php?lang=en&modules=site.styles&only=styles&skin=vector) (/favicon.ico) (/mediawiki/opensearch_desc.php) (Proxmox VE (en)) (https://pve.proxmox.com/mediawiki/api.php?action=rsd) (Proxmox VE Atom feed) (/mediawiki/index.php?title=Special:RecentChanges&feed=atom) Root Password Reset From Proxmox VE Jump to navigation Jump to search Contents 1 Resetting the root account password on the PVE Host 1.1 Method 1 1.2 Method 2 2 Resetting the root account password in a Container 3 References Resetting the root account password on the PVE Host The following follows the general method for resetting a root password on a Linux machine, if you have access to the console see e.g.: (https://www.debian.org/doc/manuals/debian-reference/ch04.en.html#_securing_the_root_password) the Debian Handbook (https://wiki.archlinux.org/title/Reset_lost_root_password) the Arch Linux Wiki entry (https://en.wikibooks.org/wiki/Linux_Guide/Reset_a_forgotten_root_password) the entry in WikiBooks for similar suggestions. Keep in mind that editing the kernel command-line might need a different key-entry based on your boot-loader (e works for both grub and systemd-boot though). The method works for Proxmox VE until version 8.1 and should work for many other Linux based Operating systems as well: Method 1 Boot into your bootloader (mostly grub or systemd-boot , select your preferred kernel but do not press enter . Press e to go into edit mode. Depending on the boot-loader go to the kernel-commandline entry: For grub : scroll down to the kernel line you will boot from, it starts with linux /vmlinuz-... For systemd-boot the kernel commandline is directly editable Scroll to the end of that line, optionally remove the quiet in the line and append init=/bin/bash For grub press Ctrl X to boot, for systemd-boot simply press Enter In the resulting shell: # Remount / as Read/Write mount -o remount,rw / # 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. Method 2 Boot from a Live CD, which supports the / filesystem of your PVE installation (mostly relevant for installs on ZFS) (e.g. a Proxmox install ISO, in debug-mode (second debug-shell)) Mount the / filesystem in read-write mode at a free directory (e.g./mnt will be used in this example). you might need to do other steps, based on the filesystem, e.g. zpool import -f -R /mnt rpool for ZFS. Run passwd -R /mnt to set a new password for the root account. Unmount/export the / -filesystem and reboot. Resetting the root account password in a Container Enter the working container and change the password using: pct enter passwd # enter new password in silent prompt exit If you're still using OpenVZ containers, which are not supported in Proxmox VE 4 or newer, you can use vzctl enter to enter the container. References (http://c-nergy.be/blog/?p=1777) Griffon's IT Library - (/mediawiki/images/5/5a/Debian-PVE-root-Password-Reset_pdf.zip) (Debian-PVE-root-Password-Reset pdf.zip) Cache (https://wiki.debian.org/Root) https://wiki.debian.org/Root Retrieved from "(https://pve.proxmox.com/mediawiki/index.php?title=Root_Password_Reset&oldid=11913) https://pve.proxmox.com/mediawiki/index.php?title=Root_Password_Reset&oldid=11913 " (/wiki/Special:Categories) (Special:Categories) Categories : (/wiki/Category:HOWTO) (Category:HOWTO) HOWTO (/wiki/Category:System_Administration) (Category:System Administration) System Administration Cookies help us deliver our services. By using our services, you agree to our use of cookies. (https://www.proxmox.com/en/privacy-policy) More information (OK) OK Navigation menu Personal tools (/mediawiki/index.php?title=Special:UserLogin&returnto=Root+Password+Reset) (You are encouraged to log in; however, it is not mandatory [o]) Log in Namespaces (/wiki/Root_Password_Reset) (View the content page [c]) Page (/mediawiki/index.php?title=Talk:Root_Password_Reset&action=edit&redlink=1) (Discussion about the content page (page does not exist) [t]) Discussion English Views (/wiki/Root_Password_Reset) Read (/mediawiki/index.php?title=Root_Password_Reset&action=edit) (This page is protected. You can view its source [e]) View source (/mediawiki/index.php?title=Root_Password_Reset&action=history) (Past revisions of this page [h]) View history (More options) More Search (Search Proxmox VE) (Search Proxmox VE [f]) (Special:Search) (Search the pages for this text) (Search) (Go to a page with this exact name if it exists) (Go) (/wiki/Main_Page) (Visit the main page) Navigation (/wiki/Main_Page) Proxmox VE (https://pve.proxmox.com/pve-docs/) Documentation (current) (https://pve.proxmox.com/pve-docs-7/) Documentation (7.x) (/wiki/Downloads) Downloads (/wiki/Installation) Installation (/wiki/Get_support) Get support Sites (https://www.proxmox.com) proxmox.com (https://forum.proxmox.com) Support forum (https://bugzilla.proxmox.com) Bugtracker (https://git.proxmox.com) Source code (https://pve.proxmox.com/wiki/FAQ) FAQ Tools (/wiki/Special:WhatLinksHere/Root_Password_Reset) (A list of all wiki pages that link here [j]) What links here (/wiki/Special:RecentChangesLinked/Root_Password_Reset) (Recent changes in pages linked from this page [k]) Related changes (/wiki/Special:SpecialPages) (A list of all special pages [q]) Special pages (Printable version of this page [p]) Printable version (/mediawiki/index.php?title=Root_Password_Reset&oldid=11913) (Permanent link to this revision of this page) Permanent link (/mediawiki/index.php?title=Root_Password_Reset&action=info) (More information about this page) Page information (/mediawiki/index.php?title=Special:CiteThisPage&page=Root_Password_Reset&id=11913&wpFormIdentifier=titleform) (Information on how to cite this page) Cite this page This page was last edited on 22 January 2024, at 15:49. (/wiki/Proxmox_VE:Privacy_policy) Privacy policy (/wiki/Proxmox_VE:About) About Proxmox VE (/wiki/Proxmox_VE:General_disclaimer) Disclaimers (https://www.mediawiki.org/) (Powered by MediaWiki) ()