From owner-freebsd-questions@FreeBSD.ORG Tue Aug 23 20:29:29 2011 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 61F95106566B for ; Tue, 23 Aug 2011 20:29:29 +0000 (UTC) (envelope-from jhelfman@experts-exchange.com) Received: from mail.experts-exchange.com (mail.experts-exchange.com [72.29.183.251]) by mx1.freebsd.org (Postfix) with ESMTP id 3CDD08FC1F for ; Tue, 23 Aug 2011 20:29:28 +0000 (UTC) Received: from mail.experts-exchange.com (localhost [127.0.0.1]) by mail.experts-exchange.com (Postfix) with ESMTP id B6314700FF3; Tue, 23 Aug 2011 13:11:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=e-e.com; h= user-agent:organization:in-reply-to:content-disposition :content-type:content-type:mime-version:references:message-id :subject:subject:from:from:date:date:received:received:received; s=ee; t=1314130263; x=1315944663; bh=lrRbQE3LLhrQpAyxXJ5saZqCms FROKZwCseXc1NI2xQ=; b=m+cK92wfGtyK/B2gPkNB7eUC3knW0XR4Dd7+udJKe5 +Gwwb3OufpGJDHBlRyLil7XvEcFOHjcBrUP+Qhf/p+y+A1/8lHFgcdqxrsjvEeof MW17vyXsrFQg6G+XNf3hUc4e2PdANgTnXA5AvMVvouYm48xDhW3zA6nrVbHRv6FF 0= X-Virus-Scanned: amavisd-new at experts-exchange.com Received: from mail.experts-exchange.com ([127.0.0.1]) by mail.experts-exchange.com (mail.experts-exchange.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id w60EqY-LOo+c; Tue, 23 Aug 2011 13:11:03 -0700 (PDT) Received: from experts-exchange.com (unknown [192.168.103.122]) by mail.experts-exchange.com (Postfix) with SMTP id 91F87700FF1; Tue, 23 Aug 2011 13:11:03 -0700 (PDT) Received: (nullmailer pid 22315 invoked by uid 1001); Tue, 23 Aug 2011 20:10:06 -0000 Date: Tue, 23 Aug 2011 13:10:06 -0700 From: Jason Helfman To: "Morse, Richard E.MGH" Message-ID: <20110823201006.GN1830@eggman.experts-exchange.com> References: <58E4DB08-95B1-4931-83EA-848D6FCE7FA2@partners.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <58E4DB08-95B1-4931-83EA-848D6FCE7FA2@partners.org> X-Operating-System: FreeBSD 8.2-RELEASE Organization: Experts-Exchange, LLC. http://www.experts-exchange.com X-Living-The-Dream: I love the SLO Life! User-Agent: Mutt/1.5.21 (2010-09-15) Cc: "questions@freebsd.org" Subject: Re: How to allow Amanda to install as operator? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Aug 2011 20:29:29 -0000 On Tue, Aug 23, 2011 at 07:20:32PM +0000, Morse, Richard E.MGH thus spake: >Hi! I'm trying to upgrade my Amanda installation from a v2.6 to v3.2 via ports. I had configured Amanda previously to be installed as the user `operator`. The upgraded version wants to install as the user `amanda`; however this presents all kinds of problems: > - the `amanda` user has no home directory, one is needed to put the access file in > - I already have all of the directories set up as owned by operator > - I have a number of clients that are all set up to allow operator to access them, but not "amanda". > >I have tried setting AMANDA_USER and AMANDA_GROUP to be `operator`, but this then complains that `operator` is not found in `/usr/ports/GIDs` and `/usr/ports/UIDs`. Since these are part of the base system, I don't want to mess with them, so I groveled through the .mk files, and determined that I should be able to provide my own user and group files by setting the GID_FILES and UID_FILES environment variable. > >I tried this. I created the necessary files (greping out the data from /etc/passwd and /etc/group), put them in the same directory as GIDs and UIDs, and ran the make command: > > GID_FILES="/usr/ports/OP_GROUP" UID_FILES="/usr/ports/OP_USER" AMANDA_USER="operator" AMANDA_GROUP="operator" make install > >This runs along for a while, then dies with the note: > > ** /usr/ports/OP_GROUP doesn't exist. Exiting. > *** Error code 1 > > >If I do a `less /usr/ports/OP_GROUP` (copying exactly from the error message), I can see the file I created just fine. > >Is there something that I'm missing? How am I supposed to install a port as a user that already exists? Why doesn't make see that the file exists? > >Thanks, >Ricky > > If you update your portstree, this should be fixed now. I notificed crees@ and he committed to UIDs/GIDs the operator user and group, so they may be used for installing. -jgh -- Jason Helfman System Administrator experts-exchange.com http://www.experts-exchange.com/M_4830110.html E4AD 7CF1 1396 27F6 79DD 4342 5E92 AD66 8C8C FBA5