From owner-freebsd-arch@freebsd.org Thu Oct 1 21:21:27 2015 Return-Path: Delivered-To: freebsd-arch@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 24114A0E2B7 for ; Thu, 1 Oct 2015 21:21:27 +0000 (UTC) (envelope-from wollman@hergotha.csail.mit.edu) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 0A94B1C3C for ; Thu, 1 Oct 2015 21:21:27 +0000 (UTC) (envelope-from wollman@hergotha.csail.mit.edu) Received: by mailman.ysv.freebsd.org (Postfix) id 0997CA0E228; Thu, 1 Oct 2015 21:21:27 +0000 (UTC) Delivered-To: arch@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 092B6A0E227 for ; Thu, 1 Oct 2015 21:21:27 +0000 (UTC) (envelope-from wollman@hergotha.csail.mit.edu) Received: from hergotha.csail.mit.edu (wollman-1-pt.tunnel.tserv4.nyc4.ipv6.he.net [IPv6:2001:470:1f06:ccb::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C12051C38 for ; Thu, 1 Oct 2015 21:21:26 +0000 (UTC) (envelope-from wollman@hergotha.csail.mit.edu) Received: from hergotha.csail.mit.edu (localhost [127.0.0.1]) by hergotha.csail.mit.edu (8.14.9/8.14.9) with ESMTP id t91LLKeS025118; Thu, 1 Oct 2015 17:21:20 -0400 (EDT) (envelope-from wollman@hergotha.csail.mit.edu) Received: (from wollman@localhost) by hergotha.csail.mit.edu (8.14.9/8.14.4/Submit) id t91LLJ9h025117; Thu, 1 Oct 2015 17:21:19 -0400 (EDT) (envelope-from wollman) Date: Thu, 1 Oct 2015 17:21:19 -0400 (EDT) From: Garrett Wollman Message-Id: <201510012121.t91LLJ9h025117@hergotha.csail.mit.edu> To: jilles@stack.nl Subject: Re: login -f changing session getlogin(2) In-Reply-To: References: <20151001203436.GA22737@stack.nl> <560D826D.7000302@FreeBSD.org> Organization: none Cc: arch@freebsd.org X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (hergotha.csail.mit.edu [127.0.0.1]); Thu, 01 Oct 2015 17:21:20 -0400 (EDT) X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=disabled version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on hergotha.csail.mit.edu X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Oct 2015 21:21:27 -0000 In article <20151001203436.GA22737@stack.nl>, jilles@stack.nl writes: >I think the supposed use case for login -f is a remote login daemon that >handles authentication by itself but wants to delegate account and >session functionality. Indeed, sshd has UseLogin, but it is rarely used >and discouraged. Historically, as I remember it, "login" was a shell built-in that was effectively an alias for "exec login". It may still be that way in antique csh. The assumption from time immemorial is that if login exits, the parent process will not distinguish it from any other logout, so login is permitted to overwrite persistent session state. -GAWollman