0

I have Jessie Light on my rpi 3 and have further installed lightdm, xorg and xinit partly following the instructions of this guide. But after booting, I am directly taken to a terminal window without being asked to login with a password.

Why is it so?

This raspberrypi SE answer explains how to re-establish the secure login, is there any other mean?

1 Answer 1

1

Looking at a version of raspi-config, the auto-login part is enabled by linking one of several systemd service files from /lib/systemd/system/ to /etc/systemd/system/getty.target.wants/[email protected]. For auto-login that's [email protected]; for a normal login it's [email protected].

To check which is the case on your system,

stat /etc/systemd/system/getty.target.wants/[email protected] 

It will show an arrow pointing to one of the above possibilities. If it is the [email protected] file, you can change it the same way raspi-config does:

sudo ln -fs /lib/systemd/system/[email protected] /etc/systemd/system/getty.target.wants/[email protected]
1
  • Just tested; impressive (to my eyes) digging into the system.
    – calocedrus
    Jul 12, 2017 at 3:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.