Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: avraham on July 11, 2006, 11:34:50 PM

Title: deleted users
Post by: avraham on July 11, 2006, 11:34:50 PM
we deleted a user and cannot create the user again . Any Ideas
Title: deleted users
Post by: dsemuk on July 11, 2006, 11:57:27 PM
The commands in this thread should get the user off your system so you can recreate said user.

You may also need to look in the bug tracker as well.

http://forums.contribs.org/index.php?topic=30763.0

Dave
Title: cant recreat user
Post by: avraham on July 12, 2006, 01:19:54 AM
Quote from: "dsemuk"
The commands in this thread should get the user off your system so you can recreate said user.

You may also need to look in the bug tracker as well.

http://forums.contribs.org/index.php?topic=30763.0

Dave


Thanks for the reply but it still didn't work. this is the error message

account "xxxx" can't be created because there is already a system account of that name.
Title: deleted users
Post by: JonB on July 12, 2006, 04:01:22 AM
The error tells you everything. The name you are trying to use is already in use on the server as a system name.

The system names already used are root, admin, primary, shared, mail, ftp, proxy, www, wpad and the hostname you have called the server.

If you let us know what name you are trying to use then we can tell you whether you can use it or not.

Jon
Title: Add user
Post by: gooseman on July 14, 2006, 05:48:47 PM
When you delete a user, all the system does is: 'mark' the user as 'deleted.  You have to navigate and edit a few files in the //home/usrs directory, and delete the entries of the username in order to recreate a user with the same name
Title: Re: Add user
Post by: william_syd on July 14, 2006, 06:24:51 PM
Quote from: "gooseman"
When you delete a user, all the system does is: 'mark' the user as 'deleted.  You have to navigate and edit a few files in the //home/usrs directory, and delete the entries of the username in order to recreate a user with the same name


Using SME 7.0 Final

Add user ftp

Code: [Select]
Error: the account "ftp" can't be created because there is already a system account of that name.

Add user aa (which already exist)

Code: [Select]
Error: the account "aa" can't be created because there is already a user account of that name.

Remove user aa then add user aa

Code: [Select]
Successfully created user account.
Title: Re: Add user
Post by: CharlieBrady on July 15, 2006, 12:02:05 AM
Quote from: "gooseman"
When you delete a user, all the system does is: 'mark' the user as 'deleted.


That is false.

Quote

You have to navigate and edit a few files in the //home/usrs directory, and delete the entries of the username in order to recreate a user with the same name


That is also false. There is no /home/usrs directory.

Perhaps you could detail exactly what you have found needs to be deleted from what files. Perhaps there is a bug. If so, please report via the Bug Tracker.
Title: deleted users
Post by: william_syd on July 15, 2006, 10:47:40 AM
I'm not sure on the interaction of users created via the command line and those created via server manager.

Maybe at the command line do
Code: [Select]
userdel XXX

Edit: Having a little play

Just created a user with
Code: [Select]
useradd idiot

I then tried creating the same user, "idiot" via the server manager.

 
Code: [Select]
Error: the account "idiot" can't be created because there is already a system account of that name.

Very interesting.....
Title: deleted users
Post by: mmccarn on July 15, 2006, 06:34:47 PM
Quote from: "william_syd"
Using SME 7.0 Final

Add user ftp

You can't add a user named "ftp" - it's a system account.

I've detailed as far as I can figure out how "system accounts" work.  Detailed notes can be found here: http://forums.contribs.org/index.php?topic=32869.msg139410#msg139410