On 1/15/23 18:56, Ralph Ronnquist wrote:
> On Sun, Jan 15, 2023 at 05:41:23PM -0700, Fred wrote:
>> The instructions in the README above say the image is set up to prevent root
>> login initially. One has to log in as some user, password which is not
>> clearly indicated, at least to me, and then use sudo to become root.
> afaict the distributed image des not have any user other than root and
> root's password is "disabled".
> There might be some first-boot scripting that installs user "pi"
> password "board" with passwordless sudo but I couldn't easily see how
> that'd work.
> If not, you should mount the image (before copying to the device) to
> chroot and set password and/or user. for later ssh access.
> Dng mailing list
I haven't used chroot before and the man page doesn't seem very helpful.
Do you mean to boot the image in a chroot directory? Would it not
just ask for the password again? Long ago, on Solaris 2.6 I had to
regain a root password by deleting a field in maybe /etc/shadow or
something I don't remember.