From owner-freebsd-ports@FreeBSD.ORG Mon Apr 28 16:27:49 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5E1AF106564A for ; Mon, 28 Apr 2008 16:27:49 +0000 (UTC) (envelope-from weaseal@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.157]) by mx1.freebsd.org (Postfix) with ESMTP id E3D2A8FC22 for ; Mon, 28 Apr 2008 16:27:48 +0000 (UTC) (envelope-from weaseal@gmail.com) Received: by fg-out-1718.google.com with SMTP id 16so5858281fgg.35 for ; Mon, 28 Apr 2008 09:27:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; bh=KopOSCXxoCbKurhg/V6Y7gg6rRlOzFLHzgkipFASIn8=; b=S0GOxQ9Cj/OAs5dipVtur9y6dOQMmO/M0o6YSONhxoThyhJfgEdMu7c9OGqcX8XpKIuW4ZFzVBB2m/5bQ00EGOGRx+K6aSKL/nfeDJkXNScoHaA9MWV24Y0L9nnSq48zNKGbzFgtV4c9/byRqTAWb53Pr9RQ4h7nQOR5+vtOogQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=aTQKNdrdiuFdGRRUxh1gaJ8qQ5JKXzxfpZAdU67VsDbdH8H3OJA5+t09wQdzzQJkOtKsrU0YsA5pomnfsEG0BawrRzeZPYH9F8/gywsFO7Q1CFHWYThQGTHV/HtJZIrq0DUZTjqz6xaBDQ2Ze2HSss3T6t3DUQTVGHu8pz/5Gjc= Received: by 10.86.66.19 with SMTP id o19mr7937302fga.46.1209400067541; Mon, 28 Apr 2008 09:27:47 -0700 (PDT) Received: from ?89.41.81.238? ( [89.41.81.238]) by mx.google.com with ESMTPS id 13sm10492946fks.8.2008.04.28.09.27.44 (version=SSLv3 cipher=RC4-MD5); Mon, 28 Apr 2008 09:27:46 -0700 (PDT) Message-ID: <4815FB00.1010702@gmail.com> Date: Mon, 28 Apr 2008 19:27:44 +0300 From: Walter Venable User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: Matthew Seaman References: <48132E31.8080204@gmail.com> <4814346A.5040207@infracaninophile.co.uk> In-Reply-To: <4814346A.5040207@infracaninophile.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org Subject: Re: Building new port, don't want to run as root X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Apr 2008 16:27:49 -0000 Matthew Seaman wrote: > I take it you're talking about a daemon process and you want to have the > rc.subr scripts start it as another user than root? That's fairly > simple. > > To make rc.subr start a process using a different UserID, all you need to > do is define variables > > name = foo <-- standard rc script thing to > setup the namespace > foo_user = someone > foo_group = somegroup Ok, silly question, but I looked around again and hit another brick wall -- how do I make the port add a user that doesn't already exist?