Solved

can not add user with useradd ?

Posted on 2009-07-13
6
1,762 Views
Last Modified: 2013-12-27
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.
-Raj
0
Comment
Question by:rajsolaris
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 21

Expert Comment

by:tfewster
ID: 24842816
Check the entry doesn't exist in /etc/shadow
0
 
LVL 48

Assisted Solution

by:Tintin
Tintin earned 500 total points
ID: 24842928
Do you have NIS, NIS+ or LDAP in use?

0
 

Author Comment

by:rajsolaris
ID: 24843852
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.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 48

Accepted Solution

by:
Tintin earned 500 total points
ID: 24844354
That's a different error and means your /etc/passwd and /etc/shadow files are out of sync.

As root, run

pwconv

and it will create any missing entries in /etc/shadow
0
 
LVL 4

Expert Comment

by:joules17
ID: 24848975
also check if there is /home/mtouch directory already exisiting
0
 

Author Comment

by:rajsolaris
ID: 24881811
Thanks for you help tintin.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Best way to handle awk return value 6 75
Write an app 10 74
Solaris 4.1.3 cloning and booting 13 87
Log File Creation with Header and Footer 17 160
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question