Bug 88358
Summary: | useradd not functioning correctly with periods | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Noel <noel> |
Component: | shadow-utils | Assignee: | Nalin Dahyabhai <nalin> |
Status: | CLOSED DUPLICATE | QA Contact: | David Lawrence <dkl> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 9 | CC: | david, noel |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2006-02-21 18:52:34 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: |
Description
Noel
2003-04-09 12:39:02 UTC
UNIX login names have never (as far as I can recall) allowed periods. They are of the form [a-z][0-9a-z]* to a maximum of 8 characters (just checked - apparently the length limit has changed - pwck is happy with 1-32 char names). Allowing periods would break the chown command as it treats a username of red.hat as user red and group hat. The real bug is that none of the man pages for useradd(8), pwck(1) or passwd(5) tell you what characters are valid - passwd(5) just mentions that it "should not contain capital letters". If you manage to get a username with a period in the passwd file, the pwck command simply reports "invalid username 'red.hat'" without explaining what is wrong with it. Furthermore, in section "6.1.1.1 Naming Conventions" of the "Red Hat Linux 9 Red Hat Linux System Administration Primer" the following are provided as suggested usernames: Department code followed by user's last name (029smith, 454jones, 191brown, etc.) None of these are valid according to pwck. Bug #88877 is a duplicate of this bug. David, Yes thats true with periods however as Red Hat have for past versions allowed it, I was hopeing to get an official word on whether they intend for compliancy with 9 and future releases to adhere to this and deny the period. This will have a major affect on some of the virtual hosting packages out there which offer a period or underscore when useing system password file, I can have the one I use changed away from period as I'm contact with its author over this issue, you are correct in as much as changeing the group, I never needed to try that before as all users on those boxes are fixed to 1 group, however trying to change something to it does break even when used red.hat:newgroup, just I couldn't find any mention on teh release for 9 saying this is to be discontinued. I notice the duplicate after I submitted this one, the keyworks I tried were different on initial search, I also notice RedHat have not commented to that one either which is some 4 months old. How about for us on legacy networks? The company I work for has a domain schema of firstname.lastname for logins. We already have tons (150+) in use and aren't about to change our entire schema. Our fileservers were running redhat 6.2 and allowed creation of usernames with periods in them just fine...now that we upgraded to redhat 9 suddenly we can't add users to the fileservers without removing the ., then manually editing it into the passwd and shadow files, which is a horrible way of doing things. It's ridiculous to not allow some sort of override switch for those of us that still *need* periods in our usernames. The bug #89205 has solution for this problem (a working patch). *** This bug has been marked as a duplicate of 89205 *** Changed to 'CLOSED' state since 'RESOLVED' has been deprecated. |