From owner-freebsd-questions@FreeBSD.ORG Tue Aug 23 20:31:31 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B72CD106564A for ; Tue, 23 Aug 2011 20:31:31 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-iy0-f172.google.com (mail-iy0-f172.google.com [209.85.210.172]) by mx1.freebsd.org (Postfix) with ESMTP id 7BED08FC12 for ; Tue, 23 Aug 2011 20:31:31 +0000 (UTC) Received: by iye7 with SMTP id 7so1468582iye.17 for ; Tue, 23 Aug 2011 13:31:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=XYviuy907OKdTYdtuNBi2EkmmFlT0cgLQe4JRh6uBS8=; b=LFtOrFaBRVV3GtfS9cF9xhjKFNhYNGiD03ySM6pK/uFygDneIy6Kr4pi9JkiPvjR70 jYEztRNImSiOid9bX7xmdX7r+V2uJGla4ajzi6VBJPgDXmwjJXYpSi1eTA0xX6dPZPhK mqTD/3GRmiT+TShgMQqR1kQvfaDawpUNGZJro= Received: by 10.231.4.99 with SMTP id 35mr8360983ibq.85.1314129725139; Tue, 23 Aug 2011 13:02:05 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.42.4 with HTTP; Tue, 23 Aug 2011 13:01:35 -0700 (PDT) From: Chris Rees Date: Tue, 23 Aug 2011 21:01:35 +0100 Message-ID: To: freebsd-questions@freebsd.org, "Morse, Richard E.MGH" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: 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:31:31 -0000 Please CC me in replies, this was passed on to me by someone subscribed. "Morse, Richard E.MGH" wrote: > 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 th= e > access file in > - I already have all of the directories set up as owned by operato= r > - 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 t= his > 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=3D"/usr/ports/OP_GROUP" UID_FILES=3D"/usr/ports/OP_USER" > AMANDA_USER=3D"operator" AMANDA_GROUP=3D"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? > Update your ports tree and try again. Let me know if it doesn't work! http://lists.freebsd.org/pipermail/cvs-ports/2011-August/224032.html Chris --=20 Chris Rees =A0 =A0 =A0 =A0 =A0| FreeBSD Developer crees@FreeBSD.org =A0 | http://people.freebsd.org/~crees