[Samba] Samba 3.0.21c Available for Download

Thomas Bork tombork at web.de
Sun Feb 26 21:34:24 GMT 2006


Gerald (Jerry) Carter schrieb:

> Did you start smbd afetr 'net setlocalsid' ?  It's been a
> while since I looked at that code but I have this vague
> memory of smbd setting the DOMAIN sid from the machine
> SID if the box is setup as a DC.

deveis # /etc/init.d/samba stop
Stopping Samba...
smbd was stopped
nmbd was stopped
deveis # net getlocalsid
SID for domain DEVEIS is: S-1-5-21-1636569278-2151323032-2062914382
deveis # net getlocalsid TOMMAIK
SID for domain TOMMAIK is: S-1-5-21-1636569278-2151323032-2062914382
deveis # net setlocalsid S-1-5-21-1636569278-2151323032-1111111111
deveis # net getlocalsid TOMMAIK
SID for domain TOMMAIK is: S-1-5-21-1636569278-2151323032-2062914382
deveis # net getlocalsid
SID for domain DEVEIS is: S-1-5-21-1636569278-2151323032-1111111111
deveis # /etc/init.d/samba start
Starting Samba...
creating static groupmapping from windows groups to unix groups...
nmbd is now running
smbd is now running
deveis # net getlocalsid
SID for domain DEVEIS is: S-1-5-21-1636569278-2151323032-1111111111
deveis # net getlocalsid TOMMAIK
SID for domain TOMMAIK is: S-1-5-21-1636569278-2151323032-2062914382
deveis # tdbdump /etc/secrets.tdb
{
key(18) = "SECRETS/SID/DEVEIS"
data(68) = 
"\01\04\00\00\00\00\00\05\15\00\00\00\BE\10\8Ca\98\95:\80\C75:B\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
}
{
key(19) = "SECRETS/SID/TOMMAIK"
data(68) = 
"\01\04\00\00\00\00\00\05\15\00\00\00\BE\10\8Ca\98\95:\80N\93\F5z\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
}
deveis # /var/install/bin/samba-restore-sid
Restore Samba SID from /root/MACHINE.SID

Stop Samba first
Press ENTER to continue
deveis # /etc/init.d/samba stop
Stopping Samba...
smbd was stopped
nmbd was stopped
deveis # /var/install/bin/samba-restore-sid
Restore Samba SID from /root/MACHINE.SID

Do you really want to restore Samba SID from /root/MACHINE.SID (y/n) [yes]?

Samba SID

S-1-5-21-1636569278-2151323032-2062914382

restored from /root/MACHINE.SID

Press ENTER to continue
deveis # net getlocalsid
SID for domain DEVEIS is: S-1-5-21-1636569278-2151323032-2062914382
deveis # net getlocalsid TOMMAIK
SID for domain TOMMAIK is: S-1-5-21-1636569278-2151323032-2062914382
deveis #

The script /var/install/bin/samba-restore-sid restores the SID per 
deleting secrets.tdb and 'net setlocalsid $sid'.


der tom


More information about the samba mailing list