sympl-filesystem-security: public-group doesn't work
When putting a group into
sympl-filesystem-security produces the output
id: ‘<group>’: no such user. Found on sympl-core/stretch 9.0.200510.0.
Steps to reproduce
Place the name of a group that isn't
<domain>/config/public-group and run
https://gitlab.mythic-beasts.com/sympl/sympl/-/blob/buster/core/sbin/sympl-filesystem-security#L50 (and 51) use
id -g $gid, which seems like it should find the GID of a group, but actually finds the GID of the primary group of user $gid. If no user of the same name as the requested group exists, this fails. The script seems like it will need to use
getent group and
awk to get the right fields.