Bug 28773

Summary: [PATCH] Bug in pw, no $ in username
Product: Base System Reporter: howardjp <howardjp>
Component: binAssignee: Garance A Drosehn <gad>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.3-STABLE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description howardjp 2001-07-06 18:30:02 UTC
Part of the Samba documentation says pw(8) on FreeBSD will not create usernames with
a $ in them.  This can be problematic for Samba users because machine's need accounts
with the usernname equal to machinename$.  This REALLY simple patch removes the $
and a character which can invalidate a username.

How-To-Repeat: 
pw user add foobar$
Comment 1 Garance A Drosehn freebsd_committer freebsd_triage 2003-01-28 01:27:26 UTC
State Changed
From-To: open->closed

I have just committed more extensive changes to pw_user which will 
allow the '$' character as the last character in a user or group name. 
I have only installed the change in the freebsd-current branch.  Let 
me know if you really need it in the freebsd-stable branch.  I figure 
that in -stable most people are using the version of adduser which 
was written in perl, and AFAIK that version does not have this problem. 


Comment 2 Garance A Drosehn freebsd_committer freebsd_triage 2003-01-28 01:27:26 UTC
Responsible Changed
From-To: freebsd-bugs->gad

I've committed a change for this issue.