Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Mar 2004 14:06:29 -0600 (CST)
From:      "Pranav A. Desai" <pdesai1@cs.uh.edu>
To:        Matthew Seaman <m.seaman@infracaninophile.co.uk>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: How to auto-login on boot up
Message-ID:  <Pine.GSO.4.33.0403301404250.24093-100000@themis.cs.uh.edu>
In-Reply-To: <20040330171038.GA92336@happy-idiot-talk.infracaninophile.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
Nice! ... works great !

Thanks a lot for your help.

-Pranav


*******************************************************************
Pranav A. Desai


On Tue, 30 Mar 2004, Matthew Seaman wrote:

> On Tue, Mar 30, 2004 at 09:47:45AM -0600, Pranav A. Desai wrote:
>
> >    Is there a way to auto login on the console when the system boots up.
> > So that I can run a script that will provide with a menu to the user
> > instead of the login prompt. And also if the script is killed or it dies
> > it should respawn.
> > Something similar to what /etc/inittab can do in linux.
> > I would appreciate any suggestions or solutions.
>
> See ttys(5), getty(8), gettytab(5).  Basically you setup a terminal
> type via /etc/gettytab -- copy the 'Pc' entry and append the
> 'al=username' property -- which causes that terminal to autologin as
> the named user. Then you use /etc/ttys to tell the system to run a
> getty(8) with that terminal type on a particular tty (the console, or
> a vty) -- init(8) scans the /etc/ttys file and will detect when the
> associated getty program exits and respawn it.
>
> Set the login shell of the username you select to the program you want
> to run on the console, and take steps so that you can't get into that
> account by other means, like ftp(1) or ssh(1).
>
> 	Cheers,
>
> 	Matthew
>
> --
> Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
>                                                       Savill Way
> PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
> Tel: +44 1628 476614                                  Bucks., SL7 1TH UK
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.33.0403301404250.24093-100000>