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).

12

I edited this file and removed the oracle entry. Now my file was like below:

23

Now try creating the user and it went well without any problem.

34

So now we have an entry in /etc/passwd and /etc/shadow file.

Hope it helps…

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s