usermod -p allows a colon (ie. ':' ) in encrypted password which then breaks /etc/shadow
Issue
usermod -p
allows a colon (ie. ':' ) in encrypted password which then breaks/etc/shadow
usermod: The password field cannot contain a colon character.
usermod: failure while writing changes to /etc/shadow
Environment
- Red Hat Enterprise Linux (RHEL) 6
- Red Hat Enterprise Linux (RHEL) 7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.