Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Jul 2000 11:52:40 -0500
From:      Dan Nelson <dnelson@emsphone.com>
To:        Zhihui Zhang <zzhang@cs.binghamton.edu>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: automatic log in
Message-ID:  <20000731115239.A18962@dan.emsphone.com>
In-Reply-To: <Pine.SOL.4.21.0007311232540.672-100000@sol.cs.binghamton.edu>; from "Zhihui Zhang" on Mon Jul 31 12:40:30 GMT 2000
References:  <20000730205326.A18493@dan.emsphone.com> <Pine.SOL.4.21.0007311232540.672-100000@sol.cs.binghamton.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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>


-- 
	Dan Nelson
	dnelson@emsphone.com


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?20000731115239.A18962>