Date: Mon, 31 Jul 2000 13:05:56 -0400 (EDT) From: Zhihui Zhang <zzhang@cs.binghamton.edu> To: Dan Nelson <dnelson@emsphone.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: automatic log in Message-ID: <Pine.SOL.4.21.0007311303120.672-100000@sol.cs.binghamton.edu> In-Reply-To: <20000731115239.A18962@dan.emsphone.com>
next in thread | previous in thread | raw e-mail | index | archive | help
----------------------------------------------------- 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" <ajk@purdue.edu> > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SOL.4.21.0007311303120.672-100000>