From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 16F3A138334 for ; Sun, 4 Aug 2019 18:54:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CDC48E08CD; Sun, 4 Aug 2019 18:54:14 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 81CC8E088A for ; Sun, 4 Aug 2019 18:54:14 +0000 (UTC) Received: from [192.168.1.100] (c-98-218-46-55.hsd1.md.comcast.net [98.218.46.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mjo) by smtp.gentoo.org (Postfix) with ESMTPSA id 0A6543499B0 for ; Sun, 4 Aug 2019 18:54:12 +0000 (UTC) Subject: Re: [gentoo-dev] [PATCH 2/2] acct-user/minecraft: New user for games-server/minecraft-server To: gentoo-dev@lists.gentoo.org References: <20190804180726.24301-1-conrad@kostecki.com> <20190804180726.24301-2-conrad@kostecki.com> From: Michael Orlitzky Message-ID: <65ffc19f-de88-d07c-2fad-f98ec52baf3a@gentoo.org> Date: Sun, 4 Aug 2019 14:54:07 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 In-Reply-To: <20190804180726.24301-2-conrad@kostecki.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Archives-Salt: c39817a9-979f-4bfc-be3a-f6a4e9726d0a X-Archives-Hash: 375bfebdd98d7b32d51cb00b1f85d84f On 8/4/19 2:07 PM, Conrad Kostecki wrote: > + > +ACCT_USER_GROUPS=( "minecraft" ) > +ACCT_USER_HOME="/var/lib/minecraft-server" > +ACCT_USER_HOME_OWNER="minecraft:minecraft" You don't have to set ACCT_USER_HOME_OWNER here. That ownership is the common case, so the eclass will do the right thing for you and set it by default. From acct-user.eclass: if [[ ${ACCT_USER_HOME} != /dev/null ]]; then # default ownership to user:group if [[ -z ${ACCT_USER_HOME_OWNER} ]]; then ACCT_USER_HOME_OWNER=${ACCT_USER_NAME}:${ACCT_USER_GROUPS[0]} fi fowners "${ACCT_USER_HOME_OWNER}" "${ACCT_USER_HOME}" fperms "${ACCT_USER_HOME_PERMS}" "${ACCT_USER_HOME}" fi