While using useradd command to add my user, I got this error:
UX: /usr/sbin/useradd: ERROR: Inconsistent password files. See pwconv(1M).
Logged in as root, I checked the no. of lines in /etc/passwd and /etc/shadow:
# cat /etc/shadow |wc -l
# cat /etc/passwd |wc -l
I saw that last line was a blank and removed the blank line.
Using useradd command worked now without issues.