I recently upgraded from Torizon 6.8 to 7.4, and I’ve noticed that the root login no password doesn’t work anymore.
I’ve analyzed the following files and found almost the exact same configuration between the scarthgap and kirkstone builds
/etc/[shadow,passwd]
/usr/lib/[shadow,passwd]
/etc/nsswitch.conf
/etc/pam.d/[login, common-auth, common-password, common-session]
I’ve explicitly added the following to my image
IMAGE_FEATURES:append = " debug-tweaks allow-root-login allow-empty-password empty-root-password"
It does appear that the root entry is locked in scarthgap
#kirkstone
root@verdin-imx8mp-scu-15207788:~# passwd -S root
root NP never 0 99999 7 -1
#scarthgap
torizon@verdin-imx8mp-scu-15289166:~$ sudo passwd -S root
root L never -1 -1 -1 -1
Yocto Documentation looks the same for the two versions, so I’m guess there is some configuration in a torizon layer that changed this behavior.
I’ve also tried to explicitly add root entries into the /etc/[passwd, group, shadow] files and it still shows up as locked.
I understand that y’all are attempting to deliver a production ready operating system, and that an empty root login is absolutely innapropriate for a production build, but it has proven extremely useful and a real time saver while doing development. Is there any way you can help me get this back?