From owner-freebsd-arch Wed Nov 22 13:37:14 2000 Delivered-To: freebsd-arch@freebsd.org Received: from smtp01.primenet.com (smtp01.primenet.com [206.165.6.131]) by hub.freebsd.org (Postfix) with ESMTP id 3896A37B4C5 for ; Wed, 22 Nov 2000 13:37:12 -0800 (PST) Received: (from daemon@localhost) by smtp01.primenet.com (8.9.3/8.9.3) id OAA02388; Wed, 22 Nov 2000 14:36:02 -0700 (MST) Received: from usr07.primenet.com(206.165.6.207) via SMTP by smtp01.primenet.com, id smtpdAAAr0aate; Wed Nov 22 14:35:44 2000 Received: (from tlambert@localhost) by usr07.primenet.com (8.8.5/8.8.5) id OAA03830; Wed, 22 Nov 2000 14:36:32 -0700 (MST) From: Terry Lambert Message-Id: <200011222136.OAA03830@usr07.primenet.com> Subject: Re: Does this sound good? (Fwd: Re: passwd file update functions) To: julian@elischer.org (Julian Elischer) Date: Wed, 22 Nov 2000 21:36:31 +0000 (GMT) Cc: opentrax@email.com, arch@FreeBSD.ORG In-Reply-To: <3A1AE456.9F883FE3@elischer.org> from "Julian Elischer" at Nov 21, 2000 01:08:38 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > > the passwd file update functions in "libutil" don't support using a > > > directory other than "/etc" for the password database. I would like > > > to add a new function "pw_prefix(3)" which can be used to set the > > > prefix. This function could e.g. be used to enhance "vipw" and > > > "rpc.yppasswdd" to work with directories != "/etc". > > that would be good for Whistle, though by now we have (well, they have) > workarounds for the fact that / is read-only.. mostly symlinks. I already use a non-default location for initally setting the root password in jails created by a creation script I have written. If you look at the "pw" command, you'll see it can take a location other than the default for these files. If you just use the same mechanism elsewhere, you can get the same effect; IMO, it's just missing functionality in the passwd and similar commands. PS: I had to use "pw" because passwd stupidly insists on being interactive. I guess it's "protecting" me from getting my work done ...er, from shooting my foot. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message