From owner-freebsd-questions Tue Jun 22 11:49: 9 1999 Delivered-To: freebsd-questions@freebsd.org Received: from resnet.uoregon.edu (resnet.uoregon.edu [128.223.144.32]) by hub.freebsd.org (Postfix) with ESMTP id 9827B153CF for ; Tue, 22 Jun 1999 11:49:06 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Received: from localhost (dwhite@localhost) by resnet.uoregon.edu (8.9.3/8.9.3) with ESMTP id LAA31649; Tue, 22 Jun 1999 11:49:03 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Date: Tue, 22 Jun 1999 11:49:03 -0700 (PDT) From: Doug White To: Doug Cc: 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 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, and specify their shell as '/nonexistent', and their password as '*'. They won't be logging in anytime soon. :-) Doug White Internet: dwhite@resnet.uoregon.edu | FreeBSD: The Power to Serve http://gladstone.uoregon.edu/~dwhite | www.freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message