[SOLVED] Cannot create user


(warren_midgley) #1

Hi,

I am trying to add a new user account (for a user which has previously been deleted, many weeks and reboots ago) and I am getting the below error message:-

User name
User name warren has been already registered

I have checked and no FTP account or email address exists for this user just in case this was getting in the way.

Any help you can offer will be greatly appreciated :smile:

Thanks,
Warren


(Stefano) #2

Hi… AFAIK when you delete an user you delete his profile, but his account is still here, disabled… you can’t add another user with the same username


(warren_midgley) #3

Thanks for the info Zamboni,

So how do I delete the user account?


(Stefano) #4

try

db accounts show deleted_username

and post here the output…

Thank you


(warren_midgley) #5

Hi,

I have just ran the command and it provided no output.
If I run the command without specifying a username it lists all users on my nethserver, but not the account in question (warren)

Thanks,
Warren


(Stefano) #6

ok… @alefattorini and other guys from nethesis’ crew, it’s up to you (my guess is that info are stored into ldap)


(Giacomo Sanchietti) #7

@davidep something on this?


(Davide Principi) #8

Please check if warren is in passwd

 getent passwd warren

If exists, remove the account

luserdel warren

If not exists, check if warren is in Accounts DB:

db accounts get warren

and delete the record

db accounts delete warren

Let us know if it works :wink:


I can't delete a user on nethserver
(Jose "Martin" Abeleira. AKA Marto) #9

Did you deleted the user from the nethserver graphic admin? how are you
triyng to add it?

I want to be able to reproduce the error.


(warren_midgley) #10

Thanks so much for all your help :smile:

getent passwd warren was in passwd so I deleted it as suggested with luserdel warren

This has fixed this issue as I have been able to add this user account from scratch with mailbox from the GUI

Mabeleira, I did indeed create, delete and now recreated this account using the GUI.


(Filippo Carletti) #11

I think that if you go back in /var/log/messages at the time of user deletion you’ll find an error.


(Alessio Fattorini) #12

Love such group action :wink: :+1:


#13

I have the same problem, but I don’t want to delete my account. Is there a way to have it back in the graphical interface of Nethserver? If not, deleting the account will remove all data?
I can reinitialize this account, but I would definitively prefer to keep it and just repair it.
Thanks


#14

I could have this account back in the interface, but with a locker. What does the locker means? How can I unlock the account?
Thanks


(Giacomo Sanchietti) #15

You need to enable it or set a password.


#16

It works, great!
Thanks!