Koozali.org: home of the SME Server

deleted users

avraham

deleted users
« on: July 11, 2006, 11:34:50 PM »
we deleted a user and cannot create the user again . Any Ideas

Offline dsemuk

  • *****
  • 269
  • +0/-0
deleted users
« Reply #1 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
--
Esmith/Mitel/SME server  :-D...

avraham

cant recreat user
« Reply #2 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.

Offline JonB

  • *
  • 351
  • +0/-0
deleted users
« Reply #3 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
...

gooseman

Add user
« Reply #4 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

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Re: Add user
« Reply #5 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.
Regards,
William

IF I give advise.. It's only if it was me....

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Add user
« Reply #6 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.

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
deleted users
« Reply #7 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.....
Regards,
William

IF I give advise.. It's only if it was me....

Offline mmccarn

  • *
  • 2,656
  • +10/-0
deleted users
« Reply #8 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