Operating System - HP-UX
1827892 Members
1903 Online
109969 Solutions
New Discussion

Unable to login using a duplicate user ID

 
SOLVED
Go to solution
niranjan_9
Advisor

Unable to login using a duplicate user ID

Hi,
We have HP-UX B.11.11 U 9000/800 (model 9000/800/rp7410).

We have user id "mfg" used for login to an ERP application MFG/Pro.

Today I found that there were duplicate entry for "mfg" in the /etc/passwd as below:

mfg:qDfssss:65535:65535::/home/mfg:/usr/bin/ksh

mfg:Yg2kg/6Q:65535:20:Q/Admin,mfg,mfg,:/home/mfg:/usr/bin/ksh

When I tried to login using "mfg", it gives error "incorrect login", but when I logged in with my userid "niranjan" & then under Unix prompt I again typed "login mfg", it allows me to get in.

ANy help??

Thanks
Niranjan
9 REPLIES 9
Michael Tully
Honored Contributor

Re: Unable to login using a duplicate user ID

Determine which is the correct entry and remove the duplicate using the 'vipw' command.

# vipw
remove the entry and the save the file.
Anyone for a Mutiny ?
Sanjay Kumar Suri
Honored Contributor

Re: Unable to login using a duplicate user ID

You can also run pwck for any inconsistencies in /etc/passwd file.

sks
A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.
SureshKumar_2
Valued Contributor

Re: Unable to login using a duplicate user ID

Hi niranjan

Duplicate user name is not allowed.

User login name is unique. Unless ids other can be shared.

U have to remove one user ID.


By seeing the lines, both the ids are having same home directory, and shell

Note down, UID is same but GID is different) Have a look which one is required, only that!!!

suresh
Things are very easy, when u know about it...
SureshKumar_2
Valued Contributor

Re: Unable to login using a duplicate user ID

i am sorry u have to remove username/login name not the userid
Things are very easy, when u know about it...
niranjan_9
Advisor

Re: Unable to login using a duplicate user ID

Hi,
Thanks for the response.

I deleted the following line from passwd file using vipw:

mfg:Yg2kg/6Q:65535:20:Q/Admin,mfg,mfg,:/home/mfg:/usr/bin/ksh

And then I tried to login with "mfg", I am still facing the same problem. I cannot login directly with "mfg" id. It says login incorrect.

Any insight on this ?


Thanks
Niranjan
SureshKumar_2
Valued Contributor
Solution

Re: Unable to login using a duplicate user ID

Hi
set passwd and try
#pwck
#passwd mfg

this will do

suresh
Things are very easy, when u know about it...
Sanjay Kumar Suri
Honored Contributor

Re: Unable to login using a duplicate user ID

1. Check /etc/passwd with pwck.
2. If that also doesn;t work, delete all existing mfg and create the user again with SAM or useradd command.

sks
A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.
niranjan_9
Advisor

Re: Unable to login using a duplicate user ID

Hi Suresh,
Thanks for the solution.
After changing the password I am now able to login.

The problem was: the old password contained "#" b-coz of which the unix is NOT allowing direct login.

But why is it like that? Is there any connection between "#" in passwords and direct login ? It allows us to change the password to "#" but it restricts us from direct login with that password.

Regards,
Niranjan
SureshKumar_2
Valued Contributor

Re: Unable to login using a duplicate user ID

Hi niranjan

special character allowed is
- _ *

suresh
Things are very easy, when u know about it...