Is there a way to auto login as root at startup with Raspbian Jessie like there are auto login for user
MariusMatutiaes accepted answer worked for Raspbian Jessie (March 2016) too:
Edit the file
/lib/systemd/system/getty@.service and change the line
ExecStart=-/sbin/agetty --noclear %I $TERM
ExecStart=-/sbin/getty/ --noclear -a root %I $TERM
Just for the sake of completeness, if you need to auto-login to Desktop as
root, you can do the following:
- configure the
piuser to autologin using
Steve already warned about the dangers of
root login from security standpoint. When logging to Desktop, more issues arise which will affect even basic usability:
- PulseAudio will run in system mode, which is slower and has less features (that is, in addition to being less secure)
- Many software packages will refuse to run as
root(at least without hacks), or will be missing essential features:
xscreensaverand many more. Example:
graphical file managers will become really dangerous: a single misclick can e.g. drag&drop your
/lib, completely ruining your system.
rootprocesses are considered more valuable by OOM killer, opening a huge file in GIMP or a buggy webpage in your browser is likely to kill a few innocent processes along the way.
So, even if you don't care about security, you should consider whether saving those 10 seconds to type in
sudo is worth all the time you will lose fixing misbehaving software and risking a reboot after each browser crash.