?
Solved

can not add user with useradd ?

Posted on 2009-07-13
6
Medium Priority
?
1,881 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 2000 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
Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

 
LVL 48

Accepted Solution

by:
Tintin earned 2000 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses
Course of the Month14 days, 3 hours left to enroll

801 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