From owner-freebsd-ports@FreeBSD.ORG Sat Apr 12 08:41:33 2014 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D2599F0 for ; Sat, 12 Apr 2014 08:41:33 +0000 (UTC) Received: from mail-ig0-x236.google.com (mail-ig0-x236.google.com [IPv6:2607:f8b0:4001:c05::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A47B11CCB for ; Sat, 12 Apr 2014 08:41:33 +0000 (UTC) Received: by mail-ig0-f182.google.com with SMTP id uy17so1694342igb.15 for ; Sat, 12 Apr 2014 01:41:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=R5IC+yyk3/XQbg0270Bl3PZRzj0whYkfKgu0bAek5X8=; b=whOXTvoz50FgLwwXCaN9aFo8hURX0DjV2t26w/PaRG++5b8ctQqOF9tsCpnyN2s+wF WsNTtAEMX2CNv4eEhWY+v4XQdn+MdkIY68PKs0b5MBtgnw2KM20mnA+0Eay0SlvIz41j yPUevJCHXPTBoqwBoNPXNS61uWkY6zZbgb2d4xShAFlyX8/z8HYEqoewKB9nDMzwL9Di MnvUOv4aWyeNqcef5NoFrn9y1NQojK9oNkpUNJIvcYswAZy/r8qIJywZBCtoMv+W+AR/ ez5XlP1GrqWMwGTcEaSzsZ1EOdHQ//jPf2BHvlxGGlBuSPVPnleAEnO951zKRIT3h9ln +gJg== MIME-Version: 1.0 X-Received: by 10.50.176.199 with SMTP id ck7mr2312191igc.44.1397292093043; Sat, 12 Apr 2014 01:41:33 -0700 (PDT) Received: by 10.50.7.74 with HTTP; Sat, 12 Apr 2014 01:41:33 -0700 (PDT) In-Reply-To: <534874BE.1060600@morante.net> References: <534874BE.1060600@morante.net> Date: Sat, 12 Apr 2014 03:41:33 -0500 Message-ID: Subject: Re: Port: net-p2p/zetacoin From: Scot Hetzel To: Daniel Morante Content-Type: text/plain; charset=ISO-8859-1 Cc: FreeBSD Ports X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Apr 2014 08:41:33 -0000 On Fri, Apr 11, 2014 at 6:03 PM, Daniel Morante wrote: > I'm updating the port and at the same time making some changes to the rc.d > start up script. > I have added the option to change the user that zetacoind runs as: > > > : ${zetacoin_user="root"} > : ${zetacoin_group="wheel"} > > > zetacoin_create_datadir() > { > echo "Creating data directory" > eval mkdir -p ${zetacoin_datadir} > [ $? -eq 0 ] && chown -R ${zetacoin_user}:${zetacoin_group} > ${zetacoin_datadir} > ln -s ${zetacoin_datadir} /.zetacoin > } > > > > > I'm not sure if I should leave it defaulting to root/wheel or have the port > create a "zetacoin" user and group and have it use that to begin with. > It's better to have less things run as root/wheel. Especially if the zetacoind daemon can be run as a different user. > Should I just let the end user make that decision? > The port maintainer should make this decision to switch the user/group to zetacoin. > The problem I see with defaulting to a "zetacoin" user is that existing > installations will need to manually change the owner and group of the data > directory. > > Thoughts? > You just have to prepare a note for UPDATING that says that the zetacoind daemon is now run as user zetacoin, and that existing installations will need to change the owner/group to zetacoin for the data directory. -- DISCLAIMER: No electrons were maimed while sending this message. Only slightly bruised.