Date: Tue, 30 Mar 2004 18:10:38 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: "Pranav A. Desai" <pdesai1@cs.uh.edu> Cc: freebsd-questions@freebsd.org Subject: Re: How to auto-login on boot up Message-ID: <20040330171038.GA92336@happy-idiot-talk.infracaninophile.co.uk> In-Reply-To: <Pine.GSO.4.33.0403300934050.23041-100000@themis.cs.uh.edu> References: <405FD7BD.8060004@smxy.org> <Pine.GSO.4.33.0403300934050.23041-100000@themis.cs.uh.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
--Qxx1br4bt0+wmkIi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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=3Dusername' 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 --=20 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 --Qxx1br4bt0+wmkIi Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAaaoOdtESqEQa7a0RAnuJAJ9qlvW+NtvInnDUoTOoW3nspAYq7gCgj20U mbANeJ1CdQltvckVU/Ff0Cw= =hEXp -----END PGP SIGNATURE----- --Qxx1br4bt0+wmkIi--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040330171038.GA92336>