Bug 2157669 - Failure during useradd or groupadd does not print enough details
Summary: Failure during useradd or groupadd does not print enough details
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: shadow-utils
Version: rawhide
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: ---
Assignee: Iker Pedrosa
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2149036
TreeView+ depends on / blocked
 
Reported: 2023-01-02 14:59 UTC by Petr Menšík
Modified: 2023-01-02 15:56 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SSSD-5356 0 None None None 2023-01-02 15:56:17 UTC

Description Petr Menšík 2023-01-02 14:59:35 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.