PDA

View Full Version : Working with users and usernames


mdgill
2003-09-16, 19:09 PM
I have been having trouble with cPanel not freeing usernames once the domain is deleted. When I try to add another account with that username, I get the following error message:

"Ouch, sorry, that username is taken"

I have been able to resolve some of these problems by using shell to userdel the offending usernames. Unfortunately, one of the usernames cannot be deleted because it cannot be found.

I have tried looking for the username using the "users" command, but I believe that only lists users currently logged on.

Does anyone know any other commands that might help?

BTW: the username I am trying to add is similar to my primary user id (I am just adding my middle initial).

elderban
2003-09-26, 16:05 PM
I'm not familiar with CPanel, so I dont know if this will work, but...

Have you checked the /home directory to see if the unknown users name still exists as a directory in there?

I know Webmin wont let you create a user if a directory by the same name is in the /home directory.

RH used to have a program called userconf, which I liked very much, but that disappeared after RH 7. :(

QT
2003-09-26, 19:34 PM
Originally posted by mdgill
I have been having trouble with cPanel not freeing usernames once the domain is deleted. When I try to add another account with that username, I get the following error message:

"Ouch, sorry, that username is taken"

I have been able to resolve some of these problems by using shell to userdel the offending usernames. Unfortunately, one of the usernames cannot be deleted because it cannot be found.

I have tried looking for the username using the "users" command, but I believe that only lists users currently logged on.

Does anyone know any other commands that might help?

BTW: the username I am trying to add is similar to my primary user id (I am just adding my middle initial).

The users can be completely removed by logging in via SSH, switching to root, and using the userdel command.