inittab examples for logins

On distributions that use inittab, you can specify terminal IDs and login programs through inittab entries.

Each inittab entry starts with an identifier that is unique within inittab. For more information, see the man page for the inittab file.

  • This inittab entry enables user logins on the iucvtty instance with terminal ID lxterm1 with /bin/login.
    i1:2345:respawn:/usr/bin/iucvtty lxterm1
  • This inittab entry enables user logins on the iucvtty instance with terminal ID slnxterm in single user mode. Instead of /bin/login, the default login program, the /sbin/sulogin login program is used.
    i3:S:once:/usr/bin/iucvtty slnxterm -- /sbin/sulogin