Combine two arbitrary shadow and password files

unshadow

  • Utility provided by the John the Ripper project to obtain the traditional Unix password file if the system uses shadow passwords.
    More information: <https://www.openwall.com/john/>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

sudo unshadow {{path/to/passwd}} {{path/to/shadow}}

click the source code to copy install unshadow on any operating system with command-not-found.com