I deleted the password because I wanted to run a crontab command upon boot up. But it wasn’t working and I thought it was because of the password required for root
If you run a script from the normal boot init, then it runs as root anyway. Deleting a password disables access rather than making it non-password login.
If you save your SD card and flash a new card, and then add a password back in (and any other account password/name changes), then with sudo you could copy the following files from the “/etc” directory of one SD onto the other:
group
group-
gshadow
gshadow-
passwd
passwd-
shadow
shadow-
The copy would have to be from another Linux system with SD card access.
Hi,
I met a similar problem.
I want to login automatic, so I used the command too:
sudo passwd -d username
the problem is that I can’t enter with my old password too ,and there is somre diffrent situation that I use the GUI and don’t know how to convert it into the command interface.