Can't remember if this tecnique would affect something else, but you may try this: delete secrets.tdb set the new SID in MACHINE.SID, start samba. finding MACHINE:SID samba will think it is a first time you run it and will "upgrade" the machine.sid file into the secret.tdb database.
Simo. On Fri, 2002-05-31 at 16:24, Mike Brodbelt wrote: > Hi, > > I need to change the SID of a Samba server I have running. This used to > be relatively straightforward - one simply shut down Samba, backed up > the MACHINE.SID file, edited it to reflect the new SID for the machine, > and started up again. > > However, recent versions of Samba have done away with the MACHINE.SID > file in favour of secrets.tdb. I've looked at the tdb tools in the > source/tdb directory shipped with Samba, but it's unobvious to me how to > go about changing the SID. Is there a simple way to change this > information? I've found reference to a tdbimport and tdbexport, but > mailing list threads seem to suggest that they are imperfect. I had old > versions (I think I got them with TNG), but they won't even open > secrets.tdb. > > Any help/hints - before I go of on a wild goose chase - would be much > appreciated. > > Mike. > > -- Simo Sorce ---------- Una scelta di liberta': Software Libero. A choice of freedom: Free Software. http://www.softwarelibero.it
