UX: useradd: ERROR: Inconsistent password files. See pwconv(1M).
Recently I was trying to create an Oracle user on Solaris 10 and i got this error while giving useradd command.
bash-3.2# useradd -g oinstall -G dba -d /export/home/oracle -s /usr/bin/bash oracle
UX: useradd: ERROR: Inconsistent password files. See pwconv(1M).
bash-3.2#
To resolve this error i did some search and find out to verify content of /etc/passwd file along with /etc/shadow file, however it did not resolve my error. Basically we need to see if we had this user before and deleted it for some reason, however in my case it was not the case.
Then i came to know one important file which we should check is /etc/user_attr.
I checked the content of this file and found oracle user is already there – (I did not remember if i created it or updated this file ever, but it was there).
I edited this file and removed the oracle entry. Now my file was like below:
Now try creating the user and it went well without any problem.
So now we have an entry in /etc/passwd and /etc/shadow file.
Hope it helps…