• Re: Can't get into headless pi, password not 'raspberry'

    From Lawrence D'Oliveiro@ldo@nz.invalid to comp.sys.raspberry-pi on Thu Mar 13 22:16:44 2025
    From Newsgroup: comp.sys.raspberry-pi

    On Sun, 2 Mar 2025 09:51:28 +0000, The Natural Philosopher wrote:

    To generate the encrypted password, the easiest way is to use OpenSSL on
    a Raspberry Pi that is already running – open a terminal window and
    enter

    echo 'mypassword' | openssl passwd -6 -stdin

    There seems to be no command-line tool that relies purely on the system libcrypt (and implements exactly the set of algorithms supported by that)
    to hash and verify passwords.

    I have my Python nixcrypt library and accompanying example command-line
    tool <https://gitlab.com/ldo/nixcrypt>, if you can be bothered to install that.

    I think you can also use the values in /etc/shadow on another system to
    clone a user and password.

    Yes, that will work, provided the hash algorithms used are compatible.
    Which is usually the case, unless the system installations are from a few years apart. Recommendations as to which hash algorithms to use (and which
    to stay away from) tend to change somewhat over time.
    --- Synchronet 3.20c-Linux NewsLink 1.2