Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 710862 - acct-user.eclass: ACCT_USER_GROUPS should _add_ groups not override
Summary: acct-user.eclass: ACCT_USER_GROUPS should _add_ groups not override
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-26 12:50 UTC by Horst Prote
Modified: 2020-03-06 13:46 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Horst Prote 2020-02-26 12:50:48 UTC
In my nextcloud setup I need user lighttpd being member of a group cloud:
  getent group cloud
  cloud:x:996:lighttpd

Installing of cct-user/lighttpd-0 removed user lighttpd from the cloud group because by the
  ACCT_USER_GROUPS=( lighttpd )
setting in the ebuild the acct-user.eclass sets the group list if user lighttpd to ( lighttpd ). I think the ACCT_USER_GROUPS groups should be _added_ only.

Reproducible: Always
Comment 1 Horst Prote 2020-02-26 14:08:14 UTC
Is there a way to correct my typos in the description above?

- "cct-user/lighttpd-0" should be "acct-user/lighttpd-0"
- "the group list if user lighttpd" should be "the group list of user lighttpd"
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-03-01 11:12:14 UTC
If you need a custom setup, copy the ebuild to a local overlay and modify it.
Comment 3 Horst Prote 2020-03-06 13:46:45 UTC
Surely I could do that for this special case.
But nevertheless I think it's wrong that the acct-user.eclass _sets_ the users groups to the ACCT_USER_GROUPS list instead of _adding_ the ACCT_USER_GROUPS list to the current groups of the user. At least I should be warned about this, maybe like:
  The current groups of <user> are: <list of current groups>
  We will change this to: <list of new groups>