Bug 103643
| Summary: | shadow-utils-4.0.3-6 on Red Hat 9 ignores upper case | ||
|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | Eddie Quinteros <eddie> |
| Component: | shadow-utils | Assignee: | Nalin Dahyabhai <nalin> |
| Status: | CLOSED DUPLICATE | QA Contact: | David Lawrence <dkl> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 9 | ||
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i386 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2006-02-21 18:58:24 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: | |||
*** This bug has been marked as a duplicate of 89677 *** Changed to 'CLOSED' state since 'RESOLVED' has been deprecated. |
From Bugzilla Helper: User-Agent: Mozilla/4.5 [en] (WinNT; U) Description of problem: The only available shadow-utils rpm for Red Hat 9.0 is shadow-utils-4.0.3-6. It seems that this rpm ignores users whose usernames are in upper case. ie: The following releases: 7.2 = shadow-utils-20000902-9.7 7.3 = shadow-utils-20000902-9.7 8.0 = shadow-utils-20000902-12.8 have the following code in the file libmisc/chkname.c good_name(const char *name) { /* * User/group names must start with a letter, and may not * contain colons, commas, newlines (used in passwd/group * files...) or any non-printable characters. */ if (!*name || !isalpha(*name)) return 0; While the shadow-utils-4.0.3-6 has good_name(const char *name) { /* * User/group names must match [a-z_][a-z0-9_-]* */ if (!*name || !((*name >= 'a' && *name <= 'z') || *name == '_')) return 0; Thus this rpm ignores characters from A-Z. This issue is casing problem in utilities such as useradd Version-Release number of selected component (if applicable): shadow-utils-4.0.3-6 How reproducible: Always Steps to Reproduce: 1. 2. 3. Additional info