acct-user/*: remove ACCT_USER_HOME_OWNER if it is equal to default

`acct-user.eclass`'s documentation [says](https://devmanual.gentoo.org/eclass-reference/acct-user.eclass/index.html):
```
ACCT_USER_HOME_OWNER
The ownership to use for the home directory, in chown ([user][:group]) syntax.
Defaults to the newly created user, and its primary group.
```
```
ACCT_USER_GROUPS (REQUIRED)
List of groups the user should belong to. This must be a bash array.
The first group specified is the user's primary group, while the remaining groups (if any)
become supplementary groups.
```

So we can remove in `acct-user/user/user-0.ebuild`:
```
ACCT_USER_HOME_OWNER="user"
```
Moreover if we have:
```
ACCT_USER_GROUPS=( primary_group group2 )
```
, we can remove
```
ACCT_USER_HOME_OWNER="user:primary_group"
```

Signed-off-by: Alexander Kurakin <kuraga333@mail.ru>
Closes: https://github.com/gentoo/gentoo/pull/29214
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
This commit is contained in:
Alexander Kurakin
2023-01-27 18:17:27 +03:00
committed by Conrad Kostecki
parent b296aa154d
commit b5153ffa5e
10 changed files with 10 additions and 20 deletions

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2021 Gentoo Authors
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -8,6 +8,5 @@ inherit acct-user
ACCT_USER_ID=338
ACCT_USER_GROUPS=( automatic )
ACCT_USER_HOME="/var/lib/automatic"
ACCT_USER_HOME_OWNER="automatic:automatic"
acct-user_add_deps

View File

@@ -1,4 +1,4 @@
# Copyright 2019-2020 Gentoo Authors
# Copyright 2019-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -9,7 +9,6 @@ DESCRIPTION="User for ceph"
ACCT_USER_ID=267
ACCT_USER_HOME=/var/lib/ceph
ACCT_USER_HOME_OWNER=ceph:ceph
ACCT_USER_GROUPS=( ceph )
acct-user_add_deps

View File

@@ -1,4 +1,4 @@
# Copyright 2019-2022 Gentoo Authors
# Copyright 2019-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -11,7 +11,6 @@ IUSE="git gitea gitolite"
REQUIRED_USE="^^ ( git gitea gitolite )"
ACCT_USER_ID=196
ACCT_USER_HOME_OWNER=git:git
ACCT_USER_HOME_PERMS=750
ACCT_USER_SHELL=/bin/sh
ACCT_USER_GROUPS=( git )

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2022 Gentoo Authors
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -8,7 +8,6 @@ inherit acct-user
ACCT_USER_ID=523
ACCT_USER_GROUPS=( goaccess )
ACCT_USER_HOME="/var/lib/goaccess"
ACCT_USER_HOME_OWNER="goaccess:goaccess"
ACCT_USER_HOME_PERMS=0770
acct-user_add_deps

View File

@@ -1,4 +1,4 @@
# Copyright 2022 Gentoo Authors
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -8,7 +8,6 @@ inherit acct-user
DESCRIPTION="Headscale Server hosting user"
ACCT_USER_ID=514
ACCT_USER_HOME_OWNER=headscale:headscale
ACCT_USER_HOME_PERMS=750
ACCT_USER_GROUPS=( headscale )
ACCT_USER_HOME=/var/lib/headscale

View File

@@ -1,4 +1,4 @@
# Copyright 2019-2020 Gentoo Authors
# Copyright 2019-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -9,7 +9,6 @@ DESCRIPTION="user for munin async proxy node"
ACCT_USER_GROUPS=( munin )
ACCT_USER_HOME="/var/spool/munin-async"
ACCT_USER_HOME_OWNER="munin-async:munin"
ACCT_USER_ID=178
ACCT_USER_SHELL=/bin/sh

View File

@@ -1,4 +1,4 @@
# Copyright 2019-2020 Gentoo Authors
# Copyright 2019-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -9,7 +9,6 @@ DESCRIPTION="user for munin"
ACCT_USER_GROUPS=( munin )
ACCT_USER_HOME="/var/lib/munin"
ACCT_USER_HOME_OWNER="munin:munin"
ACCT_USER_ID=177
acct-user_add_deps

View File

@@ -1,4 +1,4 @@
# Copyright 2020 Gentoo Authors
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -9,7 +9,6 @@ DESCRIPTION="User for net-dns/bind"
ACCT_USER_ID=40
ACCT_USER_HOME=/etc/bind
ACCT_USER_HOME_OWNER=named:named
ACCT_USER_GROUPS=( named )
acct-user_add_deps

View File

@@ -1,4 +1,4 @@
# Copyright 2020 Gentoo Authors
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -8,7 +8,6 @@ inherit acct-user
DESCRIPTION="Server user for media-sound/snapcast"
ACCT_USER_GROUPS=( "snapserver" )
ACCT_USER_HOME_OWNER="snapserver"
ACCT_USER_HOME_PERMS=0770
ACCT_USER_ID=374

View File

@@ -1,4 +1,4 @@
# Copyright 2019-2020 Gentoo Authors
# Copyright 2019-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -9,7 +9,6 @@ DESCRIPTION="A user for the UniFi Controller"
ACCT_USER_GROUPS=( "unifi" )
ACCT_USER_HOME="/var/lib/unifi"
ACCT_USER_HOME_OWNER="unifi:unifi"
ACCT_USER_ID="113"
acct-user_add_deps