From owner-freebsd-hackers Fri Jun 9 11:36:25 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id LAA26174 for hackers-outgoing; Fri, 9 Jun 1995 11:36:25 -0700 Received: from cs.weber.edu (cs.weber.edu [137.190.16.16]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id LAA26168 ; Fri, 9 Jun 1995 11:36:23 -0700 Received: by cs.weber.edu (4.1/SMI-4.1.1) id AA24130; Fri, 9 Jun 95 12:29:23 MDT From: terry@cs.weber.edu (Terry Lambert) Message-Id: <9506091829.AA24130@cs.weber.edu> Subject: Re: automatic login To: peter@bonkers.taronga.com (Peter da Silva) Date: Fri, 9 Jun 95 12:29:21 MDT Cc: hsu@freefall.cdrom.com, hackers@freefall.cdrom.com In-Reply-To: <199506091109.GAA02867@bonkers.taronga.com> from "Peter da Silva" at Jun 9, 95 06:09:29 am X-Mailer: ELM [version 2.4dev PL52] Sender: hackers-owner@FreeBSD.org Precedence: bulk > > Since my console is physically secure, I would like to have my machine > > come up and login me in automatically. Any suggestions on how to > > accomplish this? [ ... put the shell in the /etc/ttys ... ] > in there. For Sun we had to write a C program that set all sorts of nasty > terminal modes and process groups and stuff. OSF/1^H^H^H^H^HDigitalUNIX > just needs a script. You will need to do the same for FreeBSD, since it doesn't use straight device templating, unless you use a serial console, in which case you could preset it. Basically, login before your experiment, make sure you have regular getty's on most things, and experiment on the first alternate console. That way you can stty -a on a working and non-working (type ^J instead of return, probably) console and compare the two to see what you need to put in the auto-login shell. Personally, I think getty should be hacked to take a -p, like login takes a -h, and run any program you want (I happen to think telnetd should have the same hack). This centralizes the default changes to a small number of locations (not including login). Terry Lambert terry@cs.weber.edu --- Any opinions in this posting are my own and not those of my present or previous employers.