Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

6
  • 2
    I'm not sure if modifying /etc/shadows with perl is really a good idea... Commented Jul 18, 2015 at 11:41
  • I'm trying to mount the virtual machine's disk to the host and reset the virtual machine's root password. Commented Jul 18, 2015 at 11:47
  • 1
    Maybe passwd -R might be a better solution. Commented Jul 18, 2015 at 11:56
  • @michas can you make it a bit more clear how to use passwd -R? Thanks. Commented Jul 18, 2015 at 12:43
  • Have a look at man passwd. Just add the mount point of your VM disk and passwd should use the shadow file there. Commented Jul 20, 2015 at 5:36