Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: rmoria on November 23, 2004, 11:07:53 PM

Title: ReCreating deleted users
Post by: rmoria 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
Title: ReCreating deleted users
Post by: guest22 on November 24, 2004, 09:33:17 AM
What real [username] are we talking about here?
Title: ReCreating deleted users
Post by: rmoria 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 ?)
Title: ReCreating deleted users
Post by: rmoria 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 ?