At now when I connect to my PI with VNC, then PI ask password. The user is pi.

If I logout and if want to use again pi, then I have to login again with the same password which I use with VNC. The user is pi.

enter image description here

BUT when plug in my raspberry PI it automatically login to the account. How can I set a password to asking password?


Solution 1:

You can change the default setting by raspi-config

sudo raspi-config

1 System Options -> S5 Boot / Auto Login -> select B3 Desktop, after reboot you will be prompted for password.