sgrayban wrote: ↑
Wed Jun 13, 2018 8:12 pm
Actually I did find how to do this....
ExecStart=-/sbin/agetty --autologin pi --noclear %I $TERM
ExecStart=-/sbin/agetty %I $TERM
Now your PI 3 will boot and have a secure console login.
NOTE: The screen doesn't clear like a normal debian login and I can't figure out how to do that without editing rc.local and adding a clear command so it's just cosmetic by product for now.
You shouldn't have to go editing systemd service files to change that functionality. If you look at what raspi-config does for console autologin it changes the path for /firstname.lastname@example.org
If that's not working. To disable autologin it should point to /lib/systemd/system/getty@.service
which is effectively the same as your change.
The issue with your method is that if the package owning the file you altered gets updated (which happens a few times a year) your change could get put back to the default.