Description of problem: In bug #2149036 anaconda team reported failure during install. It fails to add group from %pre script. Because I am not able to step it interactively, I am just guessing what might be the cause of it. I think if file open fails, it should print also reason given by errno. Version-Release number of selected component (if applicable): shadow-utils-4.13-3.fc38.x86_64 How reproducible: not straightforward, but reliable Steps to Reproduce: 1. make groupadd fail 2. printed error message should make it clear what is the cause. 3. Actual results: groupadd: cannot open /etc/group useradd: group 'unbound' does not exist Expected results: Also a reason should be printed. I expect it to be EPERM or ENOENT, but I should not need to guess. Additional info: Details in bug #2149036 comment #9.