user exists

/usr/sbin/useradd -u 502 -c "Oracle RDBMS Owner" -g oinstall -G dba,oper,asmdba oracle
useradd: user oracle exists
walkerdbaAsked:
Who is Participating?
 
slightwv (䄆 Netminder)Connect With a Mentor Commented:
>>useradd: user oracle exists

And?

The error seems self-explanatory  You are trying to add a user that already exists.
0
 
MazdajaiCommented:
id oracle

Open in new window

0
 
omarfaridConnect With a Mentor Commented:
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
0
 
walkerdbaAuthor Commented:
ok
0
 
slightwv (䄆 Netminder) Commented:
walkerdba,

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