Closed mtlynch closed 4 years ago
Oh wow, this is the craziest edge case I've seen.
Vdesktop mounts a custom /etc/shadow
to the guest as part of the autologin procedure to temporarily ensure pi
's password is raspberry
.
As it so happens, /etc/shadow
not only stores hashed passwords, but also information about all users in Linux. So that explains why useradd
would fail like it does.
To fix the issue, delete /home/pi/vdesktop/shadow
to disable the bind-mount, or run vdesktop in cli
mode.
In a mounted Raspbian image, the
useradd
command fails.Example on the stock Raspbian 2020-05-27 image:
Any idea what's going wrong here?