Sujet : Re: Can't get into headless pi, password not 'raspberry'
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.sys.raspberry-piDate : 13. Mar 2025, 23:16:44
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vqvlgb$3v7rr$5@dont-email.me>
References : 1 2 3
User-Agent : Pan/0.162 (Pokrosvk)
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.
Date | Sujet | # | | Auteur |
25 Jan 25 | Can't get into headless pi, password not 'raspberry' | 26 | | Chris Green |
26 Jan 25 |  Re: Can't get into headless pi, password not 'raspberry' | 5 | | Chris Townley |
26 Jan 25 |   Re: Can't get into headless pi, password not 'raspberry' | 1 | | Chris Green |
26 Jan 25 |   Re: Can't get into headless pi, password not 'raspberry' | 3 | | Andy Burns |
26 Jan 25 |    Re: Can't get into headless pi, password not 'raspberry' | 1 | | The Natural Philosopher |
26 Jan 25 |    Re: Can't get into headless pi, password not 'raspberry' | 1 | | Chris Townley |
26 Jan 25 |  Re: Can't get into headless pi, password not 'raspberry' | 2 | | Pancho |
26 Jan 25 |   Re: Can't get into headless pi, password not 'raspberry' | 1 | | Chris Green |
26 Jan 25 |  Re: Can't get into headless pi, password not 'raspberry' | 1 | | bp |
26 Jan 25 |  Re: Can't get into headless pi, password not 'raspberry' | 8 | | Lawrence D'Oliveiro |
26 Jan 25 |   Re: Can't get into headless pi, password not 'raspberry' | 7 | | Bob Latham |
26 Jan 25 |    Re: Can't get into headless pi, password not 'raspberry' | 6 | | Chris Green |
26 Jan 25 |     Re: Can't get into headless pi, password not 'raspberry' | 1 | | Chris Green |
26 Jan 25 |     Re: Can't get into headless pi, password not 'raspberry' | 4 | | Bob Latham |
26 Jan 25 |      Re: Can't get into headless pi, password not 'raspberry' | 1 | | The Natural Philosopher |
27 Jan 25 |      Re: Can't get into headless pi, password not 'raspberry' | 2 | | Lawrence D'Oliveiro |
26 Jan 25 |       Re: Can't get into headle | 1 | | Mike Powell |
26 Jan 25 |  Re: Can't get into headless pi, password not 'raspberry' | 5 | | The Natural Philosopher |
26 Jan 25 |   Re: Can't get into headless pi, password not 'raspberry' | 3 | | Chris Green |
26 Jan 25 |    Re: Can't get into headless pi, password not 'raspberry' | 2 | | The Natural Philosopher |
26 Jan 25 |     Re: Can't get into headless pi, password not 'raspberry' | 1 | | Chris Green |
27 Jan 25 |   Re: Can't get into headless pi, password not 'raspberry' | 1 | | Lawrence D'Oliveiro |
26 Feb 25 |  Can't get into headless pi, passwor | 3 | | Dave Vandermeer |
2 Mar 25 |   Re: Can't get into headless pi, passwor | 2 | | The Natural Philosopher |
13 Mar 25 |    Re: Can't get into headless pi, password not 'raspberry' | 1 | | Lawrence D'Oliveiro |
26 Feb 25 |  Can't get into headless pi, passwor | 1 | | Dave Vandermeer |