Koozali.org: home of the SME Server

Removing machine account

Rick

Removing machine account
« on: October 20, 2001, 10:57:03 PM »
When I create a user called rick on my e-smith box I get the following message:

Error: account "rick" is an existing machine account.

I remember doing some things with the WIN2K domain login witch could be related to this. Since I have no WIN2K machine in my domain anymore I could delete this machine account. The problem is: How do I do this?

Patrick Basile

Re: Removing machine account
« Reply #1 on: October 21, 2001, 06:36:57 AM »
I'm not positive about this, but you could take a look at your smbpasswd file in /etc/samba.  You will see lines that look like this:

spress:5028:0AB2EE2B244A85F0AAD3B435B51404EE::...
maple$:5044:36DA8ECD41D327D6AAD3B435B51404EE:...
tbc007$:5045:9F4644892058E928AAD3B435B51404EE:...
jhummer:5047:C23413A8A1E7665FAAD3B435B51404EE::...
lshellenberg:5048:C23413A8A1E7665FAAD3B435B51404EE:...

The line you need to concern yourself with is obviously the computer name, ie in my case for example 'maple$'.

I think you could probably just delete the line referencing the computer name.  I would make sure to backup the smbpasswd file BEFORE doing this - just in case this causes a problem.

Good luck!

Regards,
Patrick

Darrell May

Re: Removing machine account
« Reply #2 on: October 21, 2001, 09:56:55 AM »
Rick wrote:
>
> When I create a user called rick on my e-smith box I get the
> following message:
>
> Error: account "rick" is an existing machine account.

As long as your positive rick is not an existing user account, your looking for this command:

/sbin/e-smith/db accounts delete rick

Regards,

Darrell

Rick

Re: Removing machine account
« Reply #3 on: October 21, 2001, 12:41:24 PM »
Thanks guys. I did both and it worked. Thanks for the quick response.