Sujet : Re: Can't get into headless pi, password not 'raspberry'
De : cl (at) *nospam* isbd.net (Chris Green)
Groupes : comp.sys.raspberry-piDate : 26. Jan 2025, 10:46:59
Autres entêtes
Message-ID : <jtch6l-udb2.ln1@q957.zbmc.eu>
References : 1 2 3
User-Agent : tin/2.6.2-20221225 ("Pittyvaich") (Linux/6.1.0-29-amd64 (x86_64))
Bob Latham <
bob@sick-of-spam.invalid> wrote:
In article <vn45o5$37klv$5@dont-email.me>,
Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
On Sat, 25 Jan 2025 22:34:53 +0000, Chris Green wrote:
I can edit files on the USB drive OK so I can add and modify
entries in /etc/passwd and /etc/shadow. So all I actually need to
do is set it up so the user 'pi' has no password but I'm not
doing too well at doing that at the moment.
Try putting this in the password field in the /etc/shadow file:
$y$j9T$7FOBvVykAYTWGfCHpB2tJ.$/cOEl5X64TU2daBOxeP.hfgF90h23GeLBxFmJI0TVP4
(that?s a hash for ?raspberry?.)
The hash was produced with my code from here
<https://gitlab.com/ldo/nixcrypt>. The various hash algorithms that
should be available are documented here
<https://manpages.debian.org/crypt(5)>.
Question if I may? How do you get to the /etc/shadow file if you
can't log in to the pi?
By editing it in the file system that appears when you plug the USB stick
into a PC, easy! :-)
Probably a couple of years ago now I created my own userconf file
which along with an empty SSH file I drop into a newly burnt SD card.
This works just fine for me but I would love to know how get to
anything on the other partition without logging in. I am unaware of
any way to see the main partition when the SD card is plugged into a
PC.
Both partitions appear when I plug it into my Linux boxes, e.g. when
this particular USB is plugged in I see:-
/media/chris/Transcend/rootfs
/media/chris/Transcend/bootfs
-- Chris Green·
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 |