From owner-freebsd-questions Tue Jun 22 18:40: 3 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mail-01.cdsnet.net (mail-01.cdsnet.net [206.107.16.35]) by hub.freebsd.org (Postfix) with SMTP id 9423614C40 for ; Tue, 22 Jun 1999 18:39:43 -0700 (PDT) (envelope-from mrcpu@internetcds.com) Received: (qmail 6572 invoked from network); 23 Jun 1999 01:39:37 -0000 Received: from schizo.cdsnet.net (204.118.244.32) by mail.cdsnet.net with SMTP; 23 Jun 1999 01:39:37 -0000 Date: Tue, 22 Jun 1999 18:39:37 -0700 (PDT) From: Jaye Mathisen X-Sender: mrcpu@schizo.cdsnet.net To: Doug Cc: Doug White , freebsd-questions@FreeBSD.ORG Subject: Re: pwd_mkdb -p not doing what I expected In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG If you tweak the cache options to pwd_mkdb, it will complete in just a few seconds even on a very large password file. On Tue, 22 Jun 1999, Doug wrote: > On Tue, 22 Jun 1999, Doug White wrote: > > > On Mon, 21 Jun 1999, Doug wrote: > > > > > I'm on a -current system and for various reasons I want to add > > > some pseudo-users to /etc/passwd, but not to /etc/master.passwd. > > > Basically, these are users who have no login, but a process on the box > > > needs to be able to map usernames on a remote system to uid's. So, my > > > first choice was simply to add them to /etc/passwd, but that didn't work > > > because they weren't in the associated db. So, looking at the man page for > > > pwd_mkdb, the -p option seems to do what I want: > > > > > > -p Create a Version 7 style password file and install it into > > > /etc/passwd. > > > > > > However, when I run 'pwd_mkdb -p filename' it not only recreates the > > > /etc/passwd file and db, it also rewrites master.passwd and its database. > > > Fortunately I was adequately prepared for this eventuality, however it's > > > still not desired behavior. > > > > Then use vipw to add them to the database, > > The db for the pseudo-users has to be rebuilt at least once, and > probably more than once a day for the multi tens of thousands of users. > Unless we want to employ a full time vipw employee, I don't think this > will work. :) > > For now I can live with the behaviour of pwd_mkdb, my concern was > more along the lines of which I should send a PR on, the docs or the > binary, since (to my mind anyway) the two are out of synch. > > Doug > -- > On account of being a democracy and run by the people, we are the only > nation in the world that has to keep a government four years, no matter > what it does. > -- Will Rogers > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message