From owner-freebsd-questions Mon Jun 21 12:31: 4 1999 Delivered-To: freebsd-questions@freebsd.org Received: from dt054n86.san.rr.com (dt054n86.san.rr.com [24.30.152.134]) by hub.freebsd.org (Postfix) with ESMTP id 6E7F015285 for ; Mon, 21 Jun 1999 12:30:53 -0700 (PDT) (envelope-from Doug@gorean.org) Received: from localhost (doug@localhost) by dt054n86.san.rr.com (8.8.8/8.8.8) with ESMTP id MAA15616 for ; Mon, 21 Jun 1999 12:30:51 -0700 (PDT) (envelope-from Doug@gorean.org) Date: Mon, 21 Jun 1999 12:30:51 -0700 (PDT) From: Doug X-Sender: doug@dt054n86.san.rr.com To: freebsd-questions@freebsd.org Subject: pwd_mkdb -p not doing what I expected 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 Greetings, :) 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. If anyone can offer an insight into this, I'd appreciate it. I haven't dug into the code yet, mainly because it's not the end of the world doing it like this. If nothing else, adding "in addition to /etc/master.passwd" to the description above would make it less confusing, if I am in fact reading the man page incorrectly. BTW, if you were going to suggest using NIS for the username problem don't bother. That option is excluded by managerial fiat. :) Thanks for any suggetions, 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