From owner-freebsd-questions Mon Jul 31 10:28:59 2000 Delivered-To: freebsd-questions@freebsd.org Received: from theory1.physics.iisc.ernet.in (theory1.physics.iisc.ernet.in [144.16.71.20]) by hub.freebsd.org (Postfix) with SMTP id 2D53337BC72 for ; Mon, 31 Jul 2000 10:28:52 -0700 (PDT) (envelope-from rsidd@physics.iisc.ernet.in) Received: (qmail 15771 invoked from network); 31 Jul 2000 17:28:46 -0000 Received: from theory8.physics.iisc.ernet.in (144.16.71.128) by theory1.physics.iisc.ernet.in with SMTP; 31 Jul 2000 17:28:46 -0000 Received: (qmail 9401 invoked by uid 211); 31 Jul 2000 17:28:45 -0000 Date: Mon, 31 Jul 2000 22:58:44 +0530 From: Rahul Siddharthan To: Dan Nelson Cc: Zhihui Zhang , freebsd-questions@FreeBSD.ORG Subject: Re: automatic log in Message-ID: <20000731225844.B9360@physics.iisc.ernet.in> Mail-Followup-To: Dan Nelson , Zhihui Zhang , freebsd-questions@FreeBSD.ORG References: <20000731115239.A18962@dan.emsphone.com> <20000731122314.A21237@dan.emsphone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20000731122314.A21237@dan.emsphone.com>; from dnelson@emsphone.com on Mon, Jul 31, 2000 at 12:23:14PM -0500 X-Operating-System: Linux 2.0.32 i486 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Dan Nelson said on Jul 31, 2000 at 12:23:14: > In the last episode (Jul 31), Zhihui Zhang said: > > It works now (4.0-Release). The catch is that I can not log out of it. > > I'm the genie that grants you exactly what you wish for, and nothing > more. > > You only asked for a way to automatically log in :) > > What you really want is to stuff a login/password pair onto an exsting > getty session. I don't know if there are any programs that already do > this, but a 20-line C program should be able to do it via /dev/snp*. Can't one have something in the startup scripts (/etc/rc.local) to su to an unprivileged user, and start up a shell / an X desktop? And then do whatever you want it to do (continue with the regular login prompt? Or shut down the machine?) after you log out? I've read of people doing such things on a linux machine. Unfortunately I don't have a machine of my own to fool around with, so I can't try it out myself. Rahul. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message