can not add user with useradd ?

Hi Experts,

I am getting below error message on one of the Prod box ( solaris 10 )

 #  useradd  -u 61403 -g  users -d /home/mtouch -c "VP user account (Lev1)"  -m  -s /bin/bash  mtouch
UX: useradd: ERROR: mtouch is already in use.  Choose another.

The weird thing happening here is the user account is not created on the box, I searched the user
in passwd file the user is not there. Next I thought that the group might not be present thats why this
error But the group is there in the /etc/group file.

Please help me to find out the reason behind this,

Thanks in Advance.
Who is Participating?
TintinConnect With a Mentor Commented:
That's a different error and means your /etc/passwd and /etc/shadow files are out of sync.

As root, run


and it will create any missing entries in /etc/shadow
Check the entry doesn't exist in /etc/shadow
TintinConnect With a Mentor Commented:
Do you have NIS, NIS+ or LDAP in use?

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

rajsolarisAuthor Commented:
UX: useradd: ERROR: Inconsistent password files.  See pwconv(1M).

There are some entries in the shadow files with *LK* option. Do I have to use PWCONV ?
I haven't troubleshoot such issue before. Please throw some light on this utility with example and How to use it. if applicable.

Thanks a lot for replying experts.
also check if there is /home/mtouch directory already exisiting
rajsolarisAuthor Commented:
Thanks for you help tintin.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.