Date: Wed, 30 May 2001 01:17:05 -0700 From: Terry Lambert <tlambert2@mindspring.com> To: =?iso-8859-1?Q?Jes=FAs=20Arn=E1iz?= <arnaiz@encomix.es> Cc: hackers@FreeBSD.ORG Subject: Re: help about a project Message-ID: <3B14AC81.48214002@mindspring.com> References: <EPEJLCLAKFDENCGMPJJDGEAGDKAA.arnaiz@encomix.es>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3B14AC81.48214002>