Bullseye always creates the default pi user

The Raspberry Pi is a series of credit card-sized single-board computers developed in the United Kingdom by the Raspberry Pi Foundation to promote the teaching of basic computer science in schools and developing countries.

Post Reply
User avatar
/RaspberryPi
Corporate
Posts: 2449
Joined: Wed Jun 05, 2019 1:29 am

Bullseye always creates the default pi user

Post by /RaspberryPi »

Regarding https://www.raspberrypi.com/news/raspbe ... pril-2022/
[INDENT] So with this latest release, the default “piâ€￾ user is being removed, and instead you will create a user the first time you boot a newly-flashed Raspberry Pi OS image.
[/INDENT] Using Bulleye Lite (2022-04-04) when we set an SSH public key with the official imager, but we do NOT specify a username or password, the user pi seems to exist... we can ssh pi@hostname.local using the right keys but in this scenario what is the normal password? Is it a random string?
There is no userconf or userconf.txt in the boot partition when the imager is complete.
$ passwd Changing password for pi. Current password: passwd: Authentication token manipulation error passwd: password unchanged
Looking in the boot partition firstrun.sh contains the following:
FIRSTUSER=`getent passwd 1000 | cut -d: -f1`
So this makes me think the pi user does always exist, even without using userconf or the setup wizard? (Despite the announcement.)
Who or what logic is responsible for creating the pi user in this scenario?

submitted by /u/ok200
[link] [comments]

More...
Post Reply

Return to “Raspberry Pi Forum”