From owner-freebsd-security@freebsd.org Sat Sep 10 22:35:57 2016 Return-Path: Delivered-To: freebsd-security@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 740D7BD5F94 for ; Sat, 10 Sep 2016 22:35:57 +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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3BC96656 for ; Sat, 10 Sep 2016 22:35:57 +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.15.2/8.15.2) with ESMTP id u8AMZrm0064655; Sat, 10 Sep 2016 18:35:54 -0400 (EDT) (envelope-from wollman@hergotha.csail.mit.edu) Received: (from wollman@localhost) by hergotha.csail.mit.edu (8.15.2/8.14.4/Submit) id u8AMZq43064654; Sat, 10 Sep 2016 18:35:52 -0400 (EDT) (envelope-from wollman) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <22484.35528.306024.578131@hergotha.csail.mit.edu> Date: Sat, 10 Sep 2016 18:35:52 -0400 From: Garrett Wollman To: Jan Mikkelsen Cc: freebsd-security@freebsd.org Subject: Re: Trying to think out a hack for NSS and pw(8) In-Reply-To: References: <22483.5592.653250.726711@hergotha.csail.mit.edu> X-Mailer: VM 8.2.0b under 24.5.1 (amd64-portbld-freebsd10.3) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (hergotha.csail.mit.edu [127.0.0.1]); Sat, 10 Sep 2016 18:35:54 -0400 (EDT) X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED, HEADER_FROM_DIFFERENT_DOMAINS autolearn=disabled version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on hergotha.csail.mit.edu X-Mailman-Approved-At: Sun, 11 Sep 2016 00:08:04 +0000 X-BeenThere: freebsd-security@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Security issues \[members-only posting\]" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Sep 2016 22:35:57 -0000 < said: > We manage the two separate databases using the -V option to pw, and > then have a script to merge the two databases into the standard > local database. Thanks for the clue; if I can convince Puppet not to use getpwnam(3) et al then this looks like it will actually be the best option. I determined experimentally that simply adding "-V /etc" to the pw(8) command line will completely disable nsswitch and manipulate only the local passwd database, which is very nearly what I want. -GAWollman