From owner-freebsd-questions Mon Jul 31 10: 8:42 2000 Delivered-To: freebsd-questions@freebsd.org Received: from bingnet2.cc.binghamton.edu (bingnet2.cc.binghamton.edu [128.226.1.18]) by hub.freebsd.org (Postfix) with ESMTP id A753437B884 for ; Mon, 31 Jul 2000 10:08:38 -0700 (PDT) (envelope-from zzhang@cs.binghamton.edu) Received: from sol.cs.binghamton.edu (sol.cs.binghamton.edu [128.226.123.100]) by bingnet2.cc.binghamton.edu (8.9.3/8.9.3) with ESMTP id NAA02507; Mon, 31 Jul 2000 13:08:36 -0400 (EDT) Date: Mon, 31 Jul 2000 13:05:56 -0400 (EDT) From: Zhihui Zhang To: Dan Nelson Cc: freebsd-questions@FreeBSD.ORG Subject: Re: automatic log in In-Reply-To: <20000731115239.A18962@dan.emsphone.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG ----------------------------------------------------- FreeBSD - The Power To Serve (http://www.freebsd.org) ----------------------------------------------------- On Mon, 31 Jul 2000, Dan Nelson wrote: > In the last episode (Jul 31), Zhihui Zhang said: > > On Sun, 30 Jul 2000, Dan Nelson wrote: > > > > > In the last episode (Jul 30), Zhihui Zhang said: > > > > > > > > A wild thought. If I am the only user of a FreeBSD machine, can I set the > > > > machine so that it automatically logs into my account after reboot? > > > > Thanks. > > > > > > You can create a custom getty entry in /etc/gettytab with the "al" > > > capability, then assign that getty entry to a vty in /etc/ttys. That > > > should do it. > > > > > Thanks for your reply. I searched the mailing list archive. It > > seems to me that I need to hack getty to achieve this. "al" was not > > mentioned at all. Maybe newer versions of FreeBSD make this easy. > > But at least I should have to specify the username somehow. If this > > can be done without hacking any code, please give me more specific > > instructions. Thanks. > > What version of FreeBSD are you running? It was added for version > 3.2. > > Just edit /etc/gettytab, copy the "Pc" entry to something like > "Pcautologin", add an "al=root" to it, then edit /etc/ttys and change > one of ttys from "Pc" to "pcautologin". > > revision 1.25 > date: 1999/04/04 04:36:50; author: peter; state: Exp; lines: +21 -4 > Add an 'al' (autologin username) capability to getty/gettytab. This is a > damn useful thing for using with serial consoles in clusters etc or secure > console locations. Using a custom gettytab entry for console with > an entry like 'al=root' means that there is *always* a root login ready on > the console. This should replace hacks like those which go with conserver > etc. (This is a loaded gun, watch out for those feet!) > Submitted by: "Andrew J. Korty" > It works now (4.0-Release). The catch is that I can not log out of it. -Zhihui To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message