Koozali.org: home of the SME Server

ReCreating deleted users

Offline rmoria

  • ****
  • 78
  • +0/-0
    • http://www.osvorca.nl
ReCreating deleted users
« on: November 23, 2004, 11:07:53 PM »
When trying top recreate a user after a restore I get the following error :
Error: the account "username" can't be created because there is already a system account of that name.

Searching the forum like a good beginner :hammer:  i found:
/sbin/e-smith/db accounts delete username

To bad... This didn't work :-o
Not even after relocating all homedir and profiles.

Recreating a ibay gives the same problem
...
Yes, I can ask more questions then you can answer  8-)
...

guest22

ReCreating deleted users
« Reply #1 on: November 24, 2004, 09:33:17 AM »
What real [username] are we talking about here?

Offline rmoria

  • ****
  • 78
  • +0/-0
    • http://www.osvorca.nl
ReCreating deleted users
« Reply #2 on: November 24, 2004, 10:01:36 AM »
username:
leenknegt
fmoria

ibay name:
orca
waertje

Aditional info:
I do see the ibay directory (../ibay/orca & ../ibay/waertje) when I ftp to the server.
I do NOT see the ibay when I use the windows explorer (SMB ?)
...
Yes, I can ask more questions then you can answer  8-)
...

Offline rmoria

  • ****
  • 78
  • +0/-0
    • http://www.osvorca.nl
ReCreating deleted users
« Reply #3 on: November 28, 2004, 06:44:36 PM »
I don't know the answer, but I found a work-around  8-) :

Install lazyadmin tools

Code: [Select]
lat-users -d -c "username"
Can't find user 'username'.
lat-users -a -c "username"
An error occurred while creating account 'username'.
lat-users -d -c "username"
Do you want to delete user 'username'?
All files belonging to this user account will be deleted! [yes/NO/all] yes
Deleting user account 'username'.


And the user can be made again.
It also worked for the ibays.

Maybe it had something to do with UID ?
...
Yes, I can ask more questions then you can answer  8-)
...