r/linuxadmin • • Oct 03 '25
groups: cannot find name for group ID 490400572
I removed a host from an AD domain
Joined it to another AD domain
Logged in using an AD account
'groups: cannot find name for group ID 490400572' pops up
It only does it to groups that had the same name on the other domain
1
Upvotes
3
u/ralfD- Oct 03 '25
The Linux kernel doen't really know about group names, only about group IDs. The mapping of ID->group name is done by Samba (and configured in Samba's configuration). You can't just join another AD domain and expect the group name to map to the same group ID.
1
u/MrMeeseeks263 Oct 04 '25
Have you tried fully clearing the sssd cache? It was 90% of my problems when I had IDM/freeipa issues. My understanding is that direct AD joins use sssd in the same way.
sss_cache -Eonly worked for limited situations, generally the IDM server itself, not the clients. So try this:1
u/michaelpaoli Oct 04 '25
Yes, so? That's quite to be expected.
Same if you remove entries from, e.g. /etc/passwd or /etc/group and don't remove (or change the ownerships of) the files. The mapping from the numeric ID(s) to name(s) for those #s is gone. So, now you just get the #(s).
See also the -nouser and -nogroup options to find(1).