Koozali.org: home of the SME Server

A user-deleted account of that name

floreseo

A user-deleted account of that name
« on: September 08, 2005, 03:19:14 AM »
Hi,

Recently I deleted a user by mistake.  Now I'm trying to add the user again and I get an error saying:

Error: the account "johndoe" can't be created because there is already a user-deleted account of that name.

How can I reinstate this user?

Thanks in advance.

 :-(

floreseo

:-D Problem Solved.
« Reply #1 on: September 08, 2005, 04:21:37 AM »
:-D Problem Solved.

Sorry Someone already asked this issue, but no fix was provided.  After a little reseach I was able to fix my problem.  Since I can not delete this Post.

I'll share with you my fix.

My particular problem lies on the sip-pbx server software running with the SME.  If you are using a sip-pbx with the SME then if you have an account on the SME and at the sip-pbx end, then both accounts should be delete.  If you delete the SME account but leave the sip-pbx account active you won't be able to reinstate the user again as an sme user.

See you next post!

aux2006

A user-deleted account of that name
« Reply #2 on: June 21, 2007, 08:18:59 PM »
i encounter this problem how do you solved this?

aux

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
A user-deleted account of that name
« Reply #3 on: June 21, 2007, 08:58:36 PM »
Quote
i encounter this problem how do you solved this?

Read his last post. He answered your question.
"It should just work" if it doesn't report it. Thanks!

aux2006

A user-deleted account of that name
« Reply #4 on: June 26, 2007, 11:54:48 AM »
Quote from: "bpivk"
Quote
i encounter this problem how do you solved this?

Read his last post. He answered your question.


what is this sip-pbx?

i look at the processes it seems i can't find with that name...

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
A user-deleted account of that name
« Reply #5 on: June 26, 2007, 04:24:38 PM »
Ok so you have another problem.

Try this
Code: [Select]
signal-event user-delete <username>
db accounts delete <username>


Then recreate the user.
"It should just work" if it doesn't report it. Thanks!

michaelzeke

deleting and recreating a user
« Reply #6 on: July 17, 2007, 03:07:15 PM »
I had the same problem and the way it worked for me was to do this:

userdel (user)
db accounts delete user

then rmdir /home/e-smith/files/user/username

then useradd user
passwd user


after this i went back into sme server server-manager and reset the password there as well.
I had a problem with an account just not accepting any password i set and this seems to be the only way I could delete and recreate the user.

Hope it helps some what!