2

I just booted my Raspberry Pi, and created a new user, nacht.

Currently upon boot, I get a prompt logged in as pi but I want to be logged in as nacht. How do I change this setting?

Or should I simply rename the pi user?

My OS is Raspian.

5
  • Renaming 'pi' should be fine if you don't have any better idea.
    – gronostaj
    Sep 21, 2013 at 10:07
  • Yeah I may do that... would still like an answer to my question about booting though...
    – Nacht
    Sep 21, 2013 at 10:10
  • perhaps it simply boots to whoever has uid=1000?
    – Nacht
    Sep 21, 2013 at 10:12
  • Please post the output of sudo grep '/bin/login' /etc/inittab (if it outputs anything)
    – gronostaj
    Sep 21, 2013 at 12:25
  • I've actually fixed this via raspi-config but would still like to know how to do it on a regular linux machine. sudo grep '/bin/login' /etc/inittab gives nothing, but as i've said, i've fixed this now. it appears my machine uses getty instead?
    – Nacht
    Sep 25, 2013 at 8:02

1 Answer 1

4

open up the file:

sudo vim /etc/lightdm/lightdm.conf

Change the following line to your username:

autologin-user=pi
1
  • 3
    What about for console autologin? (lightdm is only for GUI, right?)
    – jacobq
    Jan 7, 2019 at 17:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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