Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
The ability to create numeric usernames were removed with the implementation of Bug 1373645.
Customer requests a workaround/override for this to be implemented, perhaps using "/etc/login.defs"
Version-Release number of selected component (if applicable):
shadow-utils-4.1.5.1-25.el7
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
Comment 27Red Hat Bugzilla
2023-09-15 00:14:06 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days