[Samba] Regenerate MACHINE.SID

Jeremy Allison jra at samba.org
Thu May 23 09:47:38 GMT 2002

On Thu, May 23, 2002 at 11:11:58AM -0500, Byars, Jason M wrote:
> I goofed adding some machines to my domain so now I have to do it all over.
> I removed the secrets.tdb and MACHINE.SID files, but when I join the domain
> again, the MACHINE.SID is not regenerated.  How do I force them to be
> correctly regenerated on 2.2.4?  Here's what I'm doing:
> 1. kill smb and winbind
> 2. delete secrets.tdb and MACHINE.SID
> 3. remove from NT4 PDC
> 4. add machine to NT4 PDC
> 5. smbpasswd -j .....
> 6. restart smb and winbind
> I get the secrets.tdb file back everytime, but nothing seems to bring back
> the MACHINE.SID.  I've tried rebooting incase I forgot to kill something.
> Ideas?  Thanks

The contents of the MACHINE.SID were moved into secrets.tdb for 2.2.4.
If a MACHINE.SID file exists it will be used, but if not the machine
SID is generated and stored in the secrets.tdb file.


More information about the samba mailing list