user exists

Posted on 2013-06-03
Medium Priority
Last Modified: 2013-06-06
/usr/sbin/useradd -u 502 -c "Oracle RDBMS Owner" -g oinstall -G dba,oper,asmdba oracle
useradd: user oracle exists
Question by:walkerdba
LVL 78

Accepted Solution

slightwv (䄆 Netminder) earned 1000 total points
ID: 39216558
>>useradd: user oracle exists


The error seems self-explanatory  You are trying to add a user that already exists.
LVL 21

Expert Comment

ID: 39216605
id oracle

Open in new window

LVL 40

Assisted Solution

omarfarid earned 1000 total points
ID: 39216654
you can see from the error that the user exists with the same name

you can check this by

grep username /etc/passwd

or you could run

finger username

to see if user exists

Author Comment

ID: 39218317
LVL 78

Expert Comment

by:slightwv (䄆 Netminder)
ID: 39219757

Can you explain why you did not at least split the points?  The post you accepted was basically the same thing that I posted.  The only difference was a couple of commands to confirm the user already exists which is sort of unnecessary based on the error message.

Featured Post

A proven path to a career in data science

At Springboard, we know how to get you a job in data science. With Springboard’s Data Science Career Track, you’ll master data science  with a curriculum built by industry experts. You’ll work on real projects, and get 1-on-1 mentorship from a data scientist.

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.

Join & Write a Comment

From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
This article will show you step-by-step instructions to build your own NTP CentOS server.  The network diagram shows the best practice to setup the NTP server farm for redundancy.  This article also serves as your NTP server documentation.
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

597 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