Web Hosting Talk







View Full Version : Is removing double entry from /etc/password ok?


nogi
01-28-2003, 09:10 PM
Hi,

I don't know why this is happening. I have an account domain.com which were recreated with another username. But the same domain.com is still listed in WHM's 'Change Passwords'.

So this account is listed twice in WHM but with different usernames:

domain.com username1
domain.com username2

I checked out /etc/passwords and removed the entry for username2, but it is still listed twice in WHM so that didn't help.

What file/entry should I look for to remove this double listing in WHM? Hoping for some input.

Thanks
John

MotleyFool
01-28-2003, 11:41 PM
Dont meddle with /etc/passwd

cant you delete the user2 in whm? If not delete both accounts and recreate

cant imagine how WHM will allow duplicate domain names

nogi
01-29-2003, 12:09 AM
No, because I had 2 users with the same account. So it couldn't be moved. A tech has just removed the duplicate entry and I'm waiting for his reply telling what he did to remove it. But thanks for responding.

John

nogi
01-29-2003, 08:50 AM
The solution:

WHM reads its list of users from the user files located in /var/cpanel/users/. Found files named after usernames listed in WHM. In this case there were two usernames which owned the same domain. That was the reason why those showed up in the password list in WHM (Change passwords). Removed the invalid one solved the issue.

UH-Matt
01-29-2003, 10:34 AM
How did the issue arise though ? surely it shouldnt have been possible to allocate the same domain to 2 users ?

nogi
01-29-2003, 11:13 AM
No, it were not listed when choosing 'Listing account' - only the one domain were listed there, but in 'Change password' the domain were listed twice with two different usernames.

I don't know what happened behind the scenes. The only thing we did were to remove the domain and then recreate it with another username, as we have done so many times before :)

John