From owner-freebsd-questions@FreeBSD.ORG Tue Mar 30 09:10:56 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 01C7E16A4CE for ; Tue, 30 Mar 2004 09:10:56 -0800 (PST) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 370DF43D45 for ; Tue, 30 Mar 2004 09:10:55 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) i2UHAdnw092609 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 30 Mar 2004 18:10:39 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i2UHAchV092608; Tue, 30 Mar 2004 18:10:38 +0100 (BST) (envelope-from matthew) Date: Tue, 30 Mar 2004 18:10:38 +0100 From: Matthew Seaman To: "Pranav A. Desai" Message-ID: <20040330171038.GA92336@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , "Pranav A. Desai" , freebsd-questions@freebsd.org References: <405FD7BD.8060004@smxy.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Qxx1br4bt0+wmkIi" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk X-Virus-Scanned: clamd / ClamAV version devel-20040323, clamav-milter version 0.70a cc: freebsd-questions@freebsd.org Subject: Re: How to auto-login on boot up X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Mar 2004 17:10:56 -0000 --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--