Running this: sudo dnf install bind bind-utils -y worked before but now it produces these warnings:
warning: group named does not exist - using root
warning: user named does not exist - using root
...
/usr/lib/tmpfiles.d/named.conf:1: Failed to resolve user 'named': No such process
Shouldn’t bind create user/group named like it did before?
Ok, I did it again and the group and user have been created okay.
I deleted the user and the group and tried to intall bind and bind-utils again and I’m getting the same error.
Interestingly, when I install bind and bind-utils AFTER I run these two commands to create user and group manually the bind and bind-utils installation proceeds without warning or errors.
I know something is fishy.
Well, let’s troubleshooot. I tested individual useradd and groupadd commands and they work now, for now. I’m still getting no user and group created though when I install bind and bind-utils (and others like pesign so it’s a blanket problem). I can create users and groups manually and when I do that and reinstall packages things are installed and function correctly, it seems. So what is wrong with dnf/rpm and how to look further into it?
Ok, I’m getting these errors because SELinux denies the groupadd action. I’m not sure I understand what’s going on and what’s calling what. (/usr)/sbin/groupadd seems to have a properly labeled context.
Is it the rpm script that’s not properly labeled or something with DNF? How would I go about tracking this down please? I know none of DNF installations right now are able to create groups it seems.
Thanks, Barry. This fixed this error. How could this have happened that I need to relabel after a fresh install? Someone in the thread said I must’ve booted with SELinux on - and the only time this may have happened was when I did systemd-nspawn -b -D /mnt/root to set a couple of things up during install. Could this have been it?