Redhat System admin Wiered user created

I created a user names apmadmin. The group name is apm admin and it is working on 10 other servers
Here is the /etc/passwd record
[collector8]root [ ~ ]# grep st2 /etc/passwd
[collector8]root [ ~ ]# grep apmadmin /etc/passwd
apmadmin:x:3520:2001::/home/apmadmin:/bin/bash


Now here is the group record
[collector8]root [ ~ ]# grep apmadmin /etc/group
apmadmin:x:2001:
[collector8]root [ ~ ]#


Each time I login to the apmadmin user .. You can see the prompt saying st2vodi.. I don't know this user and it does not exist in etc/passwd
[collector8]st2vodi [ /data ]$ cd /opt/CA/APM/
[collector8]st2vodi [ /opt/CA/APM ]$ ls -lai


files seem to be owned by this st2vodi...
[collector8]st2vodi [ /data ]$ ls -lai
total 5716
532494 drwx------   3 st2vodi apmadmin    4096 Jul 29 11:46 .
     2 dr-xr-xr-x. 25 root    root        4096 Jul 29 11:40 ..
532538 -rw-------   1 st2vodi apmadmin  306492 May 28 01:00 1432785615000.data
532539 -rw-------   1 st2vodi apmadmin  306924 May 28 02:00 1432789215000.data
532540 -rw-------   1 st2vodi apmadmin  304392 May 28 03:00 1432792815000.data
532541 -rw-------   1 st2vodi apmadmin  304908 May 28 04:00 1432796415000.data


I don't know how to solve this puzzle.  What is this st2vodi and why it replaces apmadmin the intended user.... Can you please help rectify the situation?
EmadGirgisAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

savoneCommented:
Are you recycling user ID's?

Why are you creating a user and group separately?  If you create a user with the basic useradd command it will create a user and a group, both with share the same UID and GUID.

Maybe st2 is create by an odd character set.  Try:

grep odi /etc/passwd
0
EmadGirgisAuthor Commented:
Sorry late responding
[collector8]st2vodi [ ~ ]$ grep odi /etc/passwd
[collector8]st2vodi [ ~ ]$


It returns nothing.
Another point... the setup was done a long ago.. I was today working on it and observed this issue. I looked in the whole passwd file and I can see no resemblance to this user
0
EmadGirgisAuthor Commented:
I have went ahead and deleted the home directory
I deleted the etc/passwd record
                  the /etc/shadow
                  the /etc/group
                  the /etc/gshadow

I recreated the user and did a chown...
Now things are straighten out.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
EmadGirgisAuthor Commented:
I have not got an actual solution for what the issue it. However, the issue is resolved by removing the user and re adding it ...
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.

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.