[Ilugc] Autologin

  • From: rajasuperman@xxxxxxxxx (Raja Subramanian)
  • Date: Sun Mar 22 20:44:36 2009

On Sun, Mar 22, 2009 at 10:42 AM, varadarajan narayanan
<rad.narayanan@xxxxxxxxx> wrote:

I am bringing up a Debian system. I would like to know which is the best
method for auto log in ( both as root and as non-root user).

Edit your /etc/inittab and get mingetty to auto login or spawn
your shell directly.

I believe mingetty --autologin option is what you are looking for.

If you run into any issues auto logging as root, use the
--loginprog option to start a different shell script or program
instead of the default /bin/login.

inittab/mingetty is highly configurable, so you can also for
example setup mingetty to ask for password on console, but
auto login on serial console.

- Raja

Other related posts: