Hi,
adduser has been putting newly created 'dynamically allocated system
users' (adduser --system) into the nogroup group. It is also
documented to do so. There is an ancient bug report complaining about
this, and I think this is a valid complaint. However, /usr/share/doc/base-passwd/users-and-groups.txt.gz says that no files
should ever be owned by nogroup, making adduser do the right thing in
its current state.
Can you come up with a better default for users created with adduser
--system without requesting a dedicated group?
Greetings
Marc
On Mon, 2022-07-04 at 09:12 +0200, Marc Haber wrote:
adduser has been putting newly created 'dynamically allocated system
users' (adduser --system) into the nogroup group. It is also
documented to do so. There is an ancient bug report complaining about
this, and I think this is a valid complaint. However,
/usr/share/doc/base-passwd/users-and-groups.txt.gz says that no files
should ever be owned by nogroup, making adduser do the right thing in
its current state.
Can you come up with a better default for users created with adduser
--system without requesting a dedicated group?
One idea worth considering, imho, is what the reporter [0] suggests:
make --group the default for --system.
Sysadmin hat, I can think of situations
where having a dedicated service group is useful (eg. giving r/o access
to logs).
Can you come up with a better default for users created with
adduser
--system without requesting a dedicated group?
One idea worth considering, imho, is what the reporter [0]
suggests:
make --group the default for --system.
I don't like that idea at all, it'll introduce an avalanche of new
groups. That should be in the responsibility of the individual
package
maintainer.
From users-and-groups.txt.gz:
Sysadmin hat, I can think of situations
where having a dedicated service group is useful (eg. giving r/o
access
to logs).
We do have the adm group for that.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 152:15:50 |
Calls: | 10,383 |
Files: | 14,054 |
Messages: | 6,417,816 |