03-09-2023, 11:52 AM
(03-09-2023, 08:18 AM)the_bertrum Wrote: If I'm reading the page from raspberrypi.com correctly, then new installations will either have to be done with the Raspberry Pi imager, or have a correctly configured ini file on the SD card in order to create the initial user. Have I understood that correctly?
Also, what happens in in-place upgrades, I assume the default pi user remains? If so will the user renaming process work?
Systems that are in-place upgraded are left as-is with respect to security. You could consider this to be a legacy security configuration although some users as a matter of practice do change the old default passwords. Note that the userid pi should not be renamed because there are still a few hard coded "/home/pi" paths left in the code. A future release will address this :-)
New images don't contain a default userid and the moodecfg.ini process doesn't create one so either the Raspberry Pi Imager needs to be used to create the user pi (easiest) or a userconf.txt file has to be created in /boot as per the raspberrypi.org link referenced in my earlier post.
Easiest process for new images:
Use Raspberry Pi Imager
1. Enable SSH
2. Specify userid pi and password
3. Specify WiFi SSID and password
4. Write the image
After the image is written:
Option 1: Boot up (Ethernet or WiFi) and then use Menu, Configure, System, Restore to apply settings etc from a previous backup. Also use Network Config screen to set the Access Point password.
Option 2: Before first boot place a moodecfg.ini file in the /boot directory to have preferences and configuration settings including WiFi and Access Point passwords (or PSK's) automatically applied when the system first starts up.