usermod -p allows a colon (ie. ':' ) in encrypted password which then breaks /etc/shadow
Issue
usermod -pallows a colon (ie. ':' ) in encrypted password which then breaks/etc/shadowusermod: 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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
