I effectively have a sticky keyboard (host machine to RDP to vCenter to virtual console), but need to update the password of a VM I am building.Using the rescue environment CentOS media offers, I can chroot to the installed system and run passwd, but after typing the password once, I inevitably get an error that the password tokens do not match. (Sometimes typing passwd echoes back passsswwdddd or similar on the commandline.)How can I update root's password without needing to enter it twice?Because I don't know the password, I cannot ssh (which would eliminate the sticky keyboard issue) - hence using a rescue environment and chroot.
How can I update a password without entering the password twice?
centos;password