From owner-freebsd-hackers Wed May 30 1:16:46 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from tisch.mail.mindspring.net (tisch.mail.mindspring.net [207.69.200.157]) by hub.freebsd.org (Postfix) with ESMTP id CCCBD37B422 for ; Wed, 30 May 2001 01:16:43 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from mindspring.com (pool0246.cvx7-bradley.dialup.earthlink.net [209.178.164.246]) by tisch.mail.mindspring.net (8.9.3/8.8.5) with ESMTP id EAA23757; Wed, 30 May 2001 04:16:39 -0400 (EDT) Message-ID: <3B14AC81.48214002@mindspring.com> Date: Wed, 30 May 2001 01:17:05 -0700 From: Terry Lambert Reply-To: tlambert2@mindspring.com X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: =?iso-8859-1?Q?Jes=FAs=20Arn=E1iz?= Cc: hackers@FreeBSD.ORG Subject: Re: help about a project References: Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Jes=FAs Arn=E1iz wrote: > = > Hi! > = > I'm working on a project in which I need to develop and > installer able to install Internet/intranet servers. > = > I want to do it compiling FreeBSD binaries and, the program, > only have to copy these on the new system. > = > The problem is with some packages like "vpopmail" which needs > to use a UID from the user you create for it (vpopmail and > vchkpw in this case), I mean the binary have the UID inside > so you should have the vpopmail user with the same UID in the > new system. > = > I do not want to force a UID on a new system, so I ask for > any help on how to solve it. Modify the program to use getpwnam() to obtain the password entry by name, and then use whatever UID it returns. Add the username to the local system as part of the preinstall script; see the pkg_create command "-i" option. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message