From owner-freebsd-hackers Fri Jun 9 04:18:28 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id EAA03818 for hackers-outgoing; Fri, 9 Jun 1995 04:18:28 -0700 Received: from UUCP-GW.CC.UH.EDU (root@UUCP-GW.CC.UH.EDU [129.7.1.11]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id EAA03800 ; Fri, 9 Jun 1995 04:18:25 -0700 Received: from Taronga.COM by UUCP-GW.CC.UH.EDU with UUCP id AA18599 (5.67a/IDA-1.5); Fri, 9 Jun 1995 06:10:12 -0500 Received: by bonkers.taronga.com (smail2.5p) id AA02871; 9 Jun 95 06:09:31 CDT (Fri) Received: (from peter@localhost) by bonkers.taronga.com (8.6.11/8.6.6) id GAA02867; Fri, 9 Jun 1995 06:09:30 -0500 From: Peter da Silva Message-Id: <199506091109.GAA02867@bonkers.taronga.com> Subject: Re: automatic login To: hsu@freefall.cdrom.com (Jeffrey Hsu) Date: Fri, 9 Jun 1995 06:09:29 -0500 (CDT) Cc: hackers@freefall.cdrom.com In-Reply-To: <199506090934.CAA28254@freefall.cdrom.com> from "Jeffrey Hsu" at Jun 9, 95 02:34:23 am X-Mailer: ELM [version 2.4 PL23] Content-Type: text Content-Length: 825 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? Change the entry in "ttys" for "ttyv0" from "/usr/libexec/getty Pc" (or whatever it is) to something else. I haven't set this up for FreeBSD before, but "/usr/bin/su - your-login-name" should work. We use various alternate versions of this to have our UNIX-based electric utility control system start up automatically when we boot. Typically we have a script like: if timeout 10 "Hit return for maintainance login: " then exec /home/cust/startup else exec /etc/getty console /dev/console ... fi 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.