Deutsch English Français Italiano |
<5be5304c7fbob@sick-of-spam.invalid> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Bob Latham <bob@sick-of-spam.invalid> Newsgroups: comp.sys.raspberry-pi Subject: Re: Can't get into headless pi, password not 'raspberry' Date: Sun, 26 Jan 2025 09:15:20 +0000 (GMT) Organization: None Lines: 34 Message-ID: <5be5304c7fbob@sick-of-spam.invalid> References: <dh5g6l-ft72.ln1@q957.zbmc.eu> <vn45o5$37klv$5@dont-email.me> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: individual.net ajqavjrA+4llBMRNH02nHwjY9J9XiFoRgoYlH1nGYKC5KDu6HZ X-Orig-Path: sick-of-spam.invalid!bob Cancel-Lock: sha1:lCH4guCX/4XiAyiLaYiSMZKQuUI= sha256:cRZKjJ8MLX+59KvozR5nE8N9Fy0BeRNxE8pWx/H217Q= X-No-Archive: Yes User-Agent: NewsHound/v1.54 Bytes: 2121 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? 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. Thanks. Bob.