Bug 201991

Summary: useradd can't find group
Product: [Fedora] Fedora Reporter: Karsten Hopp <karsten>
Component: shadow-utilsAssignee: Peter Vrabec <pvrabec>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: wart
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-08-11 11:00:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 150224    

Description Karsten Hopp 2006-08-10 08:23:01 UTC
Description of problem:
I found this in cron/anacron's logs:
/etc/cron.daily/beagle-crawl-system:
chown: `beaglidx': invalid user

/etc/passwd has no entry for beaglidx

Version-Release number of selected component (if applicable):
beagle-0.2.7-6
setup-2.5.53-1

Comment 1 Karsten Hopp 2006-08-10 08:28:18 UTC
As this was a fresh install there are more infos in install.log:
Installing beagle - 0.2.7-6.x86_64
warning: user beaglidx does not exist - using root
warning: user beaglidx does not exist - using root

This looks like a missing Requires(pre): shadow-utils as shadow-utils is installed
much later than beagle

Comment 2 Alexander Larsson 2006-08-10 14:50:29 UTC
0.2.7-7 adds the prereq.

Comment 3 Alexander Larsson 2006-08-10 16:14:58 UTC
That didn't help. Seems to be a useradd bug:

/usr/sbin/groupadd -g 1000 blah
/usr/sbin/useradd -r -u 1000 -s /sbin/nologin -c "blah" -d / -g 1000 blah
useradd: unknown group 1000

This doesn't happen in fc5.

Comment 4 Alexander Larsson 2006-08-10 16:20:23 UTC
Using -g blah gives:
useradd: "invalid numeric argument 'blah'

Note, the groupadd works. The problem is in useradd.


Comment 5 Wart 2006-08-10 23:37:00 UTC
For reference:  shadow-utils-4.0.17-4 in rawhide is affected by this bug.

Comment 6 Peter Vrabec 2006-08-11 11:00:20 UTC
fixed in shadow-utils-4.0.17-5

Comment 7 Martin Stransky 2006-08-17 10:53:03 UTC
*** Bug 201993 has been marked as a duplicate of this bug. ***