Getgrnam(group) ignores login group

I just ran into the same exception as this thread.

I am not using Turnkey and had set-up 2 users using useradd name -g mc.
This does not add those users to the group like a supplementary group. I suspect the default mc user in the other thread is using mc as its login group too.

In, getgrnam(group) returns an empty array of members in this situation

Doing usermod name -G mc adds the user to the group list in /etc/group and creating a server works.

1 Like

Thanks for your report–I’ll take a look deeper into more gracefully handling users who lack default group memberships, as it may not be self-evident that users need group membership when creating the users themselves.