Re:Raspberry Pi update removes the default user
by tzs on Thursday April 07, 2022 @09:41PM
(#30952399)
That's great. It would be even greater if userconf.txt could also contain an ssh key after the first line and put that ssh key on the new user.
Re:Raspberry Pi update removes the default user
by tssva on Thursday April 07, 2022 @10:43PM
(#30952781)
If you enable ssh or configure wifi settings using the Raspberry Pi Imager it creates the shell script firstrun.sh on the fat partition. This script is launched using the systemd.run option set in cmdline.txt. This script will enable the ssh service, copy over wifi settings to the ext4 partition, change cmdline.txt so it is no longer run and then reboot the pi. You could take this script and extend it to do anything you would like including copying over ssh keys.
Re:Raspberry Pi update removes the default user
by oauea on Thursday April 07, 2022 @06:26PM
(#30951081)
hashed*
Re:Raspberry Pi update removes the default user
by shakna on Friday April 08, 2022 @12:20AM
(#30953307)
All I did was quote the article. If you want to be a pedant, you need to take it up with the Raspberry Pi Foundation. I don't think a one-word answer here on HN, is going to do a thing.
Re:Raspberry Pi update removes the default user
by oauea on Friday April 08, 2022 @08:40AM
(#30956136)
Differentiating between hashing and encryption is not pedantic. But sure, go ahead and keep telling newbies to encrypt their passwords.
Re:Raspberry Pi update removes the default user
by shakna on Friday April 08, 2022 @08:55AM
(#30956260)
Perhaps. But supplying a one-word correction which requires you to already understand the context fully to be able to interpret it, is difficult to see as anything but pointless pedantry, despite trying.
The only people to understand the comment, are the ones it won't help.
> This file should contain a single line of text, consisting of username:encrypted- password – so your desired username, followed immediately by a colon, followed immediately by an encrypted representation of the password you want to use.
> To generate the encrypted password, the easiest way is to use OpenSSL on a Raspberry Pi that is already running – open a terminal window and enter
> This will produce what looks like a string of random characters, which is actually an encrypted version of the supplied password.From the anouncement [0], under "Headless setup".
[0] https://www.raspberrypi.com/news/raspberry-pi-bullseye-updat...