From owner-freebsd-hackers Sun Sep 14 19:57:36 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id TAA22108 for hackers-outgoing; Sun, 14 Sep 1997 19:57:36 -0700 (PDT) Received: from freebie.lemis.com (gregl1.lnk.telstra.net [139.130.136.133]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id TAA22093 for ; Sun, 14 Sep 1997 19:57:29 -0700 (PDT) Received: (from grog@localhost) by freebie.lemis.com (8.8.7/8.8.5) id MAA29911; Mon, 15 Sep 1997 12:27:20 +0930 (CST) Message-ID: <19970915122720.11107@lemis.com> Date: Mon, 15 Sep 1997 12:27:20 +0930 From: Greg Lehey To: Terry Lambert Cc: brian@awfulhak.org, jkh@time.cdrom.com, hackers@FreeBSD.ORG Subject: Re: Here's an interesting bug in our utmp handling. References: <19970915121733.25438@lemis.com> <199709150255.TAA13144@usr09.primenet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.81e In-Reply-To: <199709150255.TAA13144@usr09.primenet.com>; from Terry Lambert on Mon, Sep 15, 1997 at 02:55:01AM +0000 Organisation: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8250 Fax: +61-8-8388-8250 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog Fight-Spam-Now: http://www.cauce.org Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Mon, Sep 15, 1997 at 02:55:01AM +0000, Terry Lambert wrote: >>>>> I don't understand why login should ever be called interactively. We >>>>> have su for that. >>>> >>>> Perhaps 0500 permissions are in order. >>> >>> Ugh. Why not make it work as documented, instead? >> >> Because it requires changing every shell. Most are ports. > > In exec, revoke the tty to kill off all the other processes, if > it's /bin/login, while keeping the tty for the process exec'ing > so it doesn't hang up. Hmm. What if the old user had left some things running in the background? > The original reason for this was to let you actually re-login; > it is useful for dialup connections, which would otherwise cause > you to have to reestablish the call. Consider phone networks > with higher charges for call teardown and reestablishing a call than > the charges you'd pay for remaining online. Most long distance > calls fall into this category, even in the US. 'exec su' would do the same thing. Greg