extracting SID from user profile

Bradley W. Langhorst brad at langhorst.com
Tue Dec 17 16:09:01 GMT 2002

I accidentally wiped out my /etc/samba directory 
during an upgrade so I restored from a backup which had a MACHINE.SID
in it.

now i've changed my domain SID and everything is funky.
logins work but permissions are all screwed up.

So i want to figure out what my SID was before the restore and 
switch back.

I'm pretty sure that the Domain SID is stored in the user profiles but
not as text.

I though with richard sharpe's new reg editor i might be able to extract
the SID.

Suprisingly - nothing in the archives about how to get an SID out of a

I'm currently restoring secrets.tdb from tape and will try replacing my
current secrets.tdb with the old one and run rpcclient's lsaquery to get
the old sid... but that's going to take some time as the tape is not in
the jukebox.


Bradley W. Langhorst <brad at langhorst.com>

More information about the samba-technical mailing list