How to use special characters while using useradd in RHEL 9 and later?

Solution Verified - Updated -

Issue

  • Why getting an error as "useradd: invalid user name" while creating a new user?
  • Is there any way to create userIDs using special character?
  • How to create an userid with special characters?
  • How to check an integrity of the users and authentication information?

Environment

  • Red Hat Enterprise Linux (RHEL)
    • 9.x
    • 10.x
  • useradd.
  • shadow-utils.
  • pwck.

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content