From owner-freebsd-bugs@FreeBSD.ORG Tue Jun 3 13:20:03 2008 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8B70C106566C for ; Tue, 3 Jun 2008 13:20:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 7D1868FC17 for ; Tue, 3 Jun 2008 13:20:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m53DK3vZ054030 for ; Tue, 3 Jun 2008 13:20:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m53DK3LJ054029; Tue, 3 Jun 2008 13:20:03 GMT (envelope-from gnats) Date: Tue, 3 Jun 2008 13:20:03 GMT Message-Id: <200806031320.m53DK3LJ054029@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Giorgos Keramidas Cc: Subject: Re: bin/117751: Make pw(8) support "-d" argument X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Giorgos Keramidas List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Jun 2008 13:20:03 -0000 The following reply was made to PR bin/117751; it has been noted by GNATS. From: Giorgos Keramidas To: Ivan Voras Cc: remko2FreeBSd.org@kobe.laptop, bug-followup@freebsd.org Subject: Re: bin/117751: Make pw(8) support "-d" argument Date: Tue, 03 Jun 2008 15:55:31 +0300 > Among its possible arguments is a "-d" argument which sets the base > directory for the password database (e.g. makes pw operate on a jailed > directory tree). > State-Changed-From-To: open->feedback > State-Changed-By: remko > State-Changed-When: Fri Nov 16 11:03:52 UTC 2007 > State-Changed-Why: > As discussed in private, -d is currently being used in pw useradd for > example to specify what the homedirectory of the user will be, the > option you are talking about could not be found by my (quick) check of > the manual, could you please specify this? > > http://www.freebsd.org/cgi/query-pr.cgi?pr=117751 Hi Ivan, This has been sitting in the Gnats queue for a few months. I can't find the -d option for setting the base directory. I can see that -V etcdir is supported for locating an alternative etc/pwd.db but not -d :/ Jail password database can be tweaked from the `host' with the existing options I guess, i.e.: JROOT='/home/jail/ftp' pw -V "${JROOT}/etc" useradd -d "${JROOT}/home/ftp" [...] Did you have something else in mind?