|
At least for Debian 12 Bookworm running on Orange Pi 5 Plus: took me hours to find, but this worked for me:
To disable the autologin, you need to edit the override.conf file under /usr/lib/systemd/system/getty@.service.d/.
Open the file in a text editor with root privileges. For example, if you're using nano as your text editor, you would use the following command:
sudo nano /usr/lib/systemd/system/getty@.service.d/override.conf
Once the file is open, you should see the line that reads:
ExecStart=-/sbin/agetty --noissue --autologin orangepi %I $TERM
Edit this line to remove the --autologin orangepi option. The line should then read:
ExecStart=-/sbin/agetty --noissue %I $TERM
Save the changes and exit the text editor. In nano, you can do this by pressing Ctrl+O to save, and Ctrl+X to exit.
Finally, you need to reload the systemd daemon to apply the changes. You can do this with the following command:
sudo systemctl daemon-reload
After these steps, the 'orangepi' user should no longer be logged in automatically. The next time you start your system, you should be prompted for a username and password. |
|