Bug 1651450
| Summary: | [RFE] Allow usernames to be numeric when SHADOW_ALLOW_ALL_NUMERIC_USER environment variable is set | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Sandeep MJ <sjayapra> | |
| Component: | shadow-utils | Assignee: | Tomas Mraz <tmraz> | |
| Status: | CLOSED ERRATA | QA Contact: | Filip Dvorak <fdvorak> | |
| Severity: | high | Docs Contact: | ||
| Priority: | high | |||
| Version: | 7.6 | CC: | abroy, bc_unixadm, cww, dapospis, dbodnarc, dsimes, ebenes, jowood, mthacker, m.verkerk, tmraz, tscherf | |
| Target Milestone: | rc | Keywords: | FutureFeature, Reopened, ZStream | |
| Target Release: | --- | |||
| Hardware: | x86_64 | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | shadow-utils-4.6-1.el7 | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1671670 (view as bug list) | Environment: | ||
| Last Closed: | 2019-08-06 12:47:34 UTC | Type: | Bug | |
| 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: | 1671670 | |||
|
Description
Sandeep MJ
2018-11-20 06:41:01 UTC
Hi, Is there any workaround except downgrading the shadow-util package. Hi Thomas, Could you please help me how to do that? Thank you. *** This bug has been marked as a duplicate of bug 1498628 *** This will be fixed as part of the rebase as described in the summary. When SHADOW_ALLOW_ALL_NUMERIC_USER environment variable is set to any value the useradd command will allow creating user with all-numeric username. This is only temporary measure for RHEL-7, no such override will be available in RHEL-8. In our organization we use numerical user names. I believe making it harder to create users with numerical user names is solving the problem in a wrong way! I have been using two workarounds: Rename valid usernames: - create a new user with a 'valid' username - adjust /etc/passwd /etc/shadow and change the username to something definite (numerical) - rename user's home dir Downgrading to previous version (4.1.5.1-24): - Download via https://access.redhat.com/downloads - yum downgrade shadow-utils-4.1.5.1-24.el7.x86_64.rpm (as root) I hope there will be a proper configuration option available for future (el8) versions as well. (In reply to m.verkerk from comment #20) > In our organization we use numerical user names. I believe making it harder > to create users with numerical user names is solving the problem in a wrong > way! > > I have been using two workarounds: > > Rename valid usernames: > - create a new user with a 'valid' username > - adjust /etc/passwd /etc/shadow and change the username to something > definite (numerical) > - rename user's home dir > > Downgrading to previous version (4.1.5.1-24): > - Download via https://access.redhat.com/downloads > - yum downgrade shadow-utils-4.1.5.1-24.el7.x86_64.rpm (as root) > > I hope there will be a proper configuration option available for future > (el8) versions as well. Please see https://bugzilla.redhat.com/show_bug.cgi?id=1651450#c12 It was a serious mistake that all-numeric user names were ever allowed in RHEL. This was never allowed in the upstream shadow-utils code for good reasons. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2019:2102 The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days |