Bug 22278

Summary: [MFC] rmuser does not allow deletion of all usernames that adduser can create
Product: Base System Reporter: kway <kway>
Component: miscAssignee: Doug Barton <dougb>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description kway 2000-10-24 21:30:03 UTC
rmuser does not allow deletion of all usernames for which adduser allows
creation.  In particular, usernames with a - in them.

How-To-Repeat: adduser with foo-bar
rmuser foo-bar
Comment 1 Doug Barton freebsd_committer freebsd_triage 2000-11-02 08:19:35 UTC
State Changed
From-To: open->analyzed

Patch committed to -current, will MFC after the freeze. 
After long discussion it was decided that rmuser should 
be able to delete any user currently in the password 
database. Using getpwnam() allows us to determine 
whether the user is present, and get their data 
faster.  


Comment 2 Doug Barton freebsd_committer freebsd_triage 2000-11-02 08:19:35 UTC
Responsible Changed
From-To: freebsd-bugs->dougb

I'm taking responsibility for this PR
Comment 3 Doug Barton freebsd_committer freebsd_triage 2001-01-14 10:34:08 UTC
State Changed
From-To: analyzed->closed


A fix for this problem has been committed to -current 
and -stable. Thanks. :)