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.
Bug 1651450 - [RFE] Allow usernames to be numeric when SHADOW_ALLOW_ALL_NUMERIC_USER environment variable is set
Summary: [RFE] Allow usernames to be numeric when SHADOW_ALLOW_ALL_NUMERIC_USER enviro...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: shadow-utils
Version: 7.6
Hardware: x86_64
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Tomas Mraz
QA Contact: Filip Dvorak
URL:
Whiteboard:
Depends On:
Blocks: 1671670
TreeView+ depends on / blocked
 
Reported: 2018-11-20 06:41 UTC by Sandeep MJ
Modified: 2023-09-15 00:14 UTC (History)
12 users (show)

Fixed In Version: shadow-utils-4.6-1.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1671670 (view as bug list)
Environment:
Last Closed: 2019-08-06 12:47:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 3732441 0 None None None 2018-12-04 02:17:13 UTC
Red Hat Product Errata RHBA-2019:2102 0 None None None 2019-08-06 12:47:46 UTC

Description Sandeep MJ 2018-11-20 06:41:01 UTC
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

Comment 7 Abhijit Roy 2019-01-16 16:17:35 UTC
Hi,

Is there any workaround except downgrading the shadow-util package.

Comment 10 Abhijit Roy 2019-01-22 10:43:41 UTC
Hi Thomas,

Could you please help me how to do that?

Thank you.

Comment 11 Tomas Mraz 2019-01-22 10:56:25 UTC

*** This bug has been marked as a duplicate of bug 1498628 ***

Comment 12 Tomas Mraz 2019-01-22 10:59:46 UTC
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.

Comment 20 m.verkerk 2019-02-06 10:22:09 UTC
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.

Comment 21 Thorsten Scherf 2019-02-06 11:17:40 UTC
(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

Comment 22 Tomas Mraz 2019-02-06 11:45:05 UTC
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.

Comment 26 errata-xmlrpc 2019-08-06 12:47:34 UTC
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 27 Red 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


Note You need to log in before you can comment on or make changes to this bug.