[Samba] How can I change the localSID for a SAMBA Server?

Byron Bogaert bbogaert at wikimedia.org
Mon Dec 14 22:47:08 UTC 2015


I am trying to change the localSID for a SAMBA server, however I am unable
to. I have tried the command "net setlocalsid" to no avail. To troubleshoot
I have also stopped the smbd and nmbd services, but this did not help. Any
help would be great!

root at TheWiggle:~# net getlocalsid
SID for domain THEWIGGLE is: S-1-5-21-748580849-194208185-3916830000

root at TheWiggle:~# net getdomainsid
SID for local machine THEWIGGLE is: S-1-5-21-748580849-194208185-3916830000
SID for domain THISDOMAIN is: S-1-5-21-748580849-194208185-3916830000

root at TheWiggle:~# net setlocalsid S-1-5-21-33300351-1172445578-3061011111

root at TheWiggle:~# net getlocalsid
SID for domain THEWIGGLE is: S-1-5-21-748580849-194208185-3916830000

root at TheWiggle:~# net getdomainsid
SID for local machine THEWIGGLE is: S-1-5-21-748580849-194208185-3916830000
SID for domain THISDOMAIN is: S-1-5-21-748580849-194208185-3916830000

root at TheWiggle:~# net setdomainsid S-1-5-21-33300351-1172445578-3061011111

root at TheWiggle:~# net getdomainsid
SID for local machine THEWIGGLE is: S-1-5-21-748580849-194208185-3916830000
SID for domain THISDOMAIN is: S-1-5-21-33300351-1172445578-3061011111

root at TheWiggle:~# net setlocalsid S-1-5-21-33300351-1172445578-3061011111

root at TheWiggle:~# net getlocalsid
SID for domain THEWIGGLE is: S-1-5-21-748580849-194208185-3916830000

root at TheWiggle:~# service smbd stop && service nmbd stop
smbd stop/waiting
nmbd stop/waiting

root at TheWiggle:~# net setlocalsid S-1-5-21-33300351-1172445578-3061011111

root at TheWiggle:~# net getlocalsid
SID for domain THEWIGGLE is: S-1-5-21-748580849-194208185-3916830000

root at TheWiggle:~# net setdomainsid S-1-5-21-33300351-1172445578-3061011111
-- 
*Byron Bogaert*

*IT System Administrator*
Wikimedia Foundation

Imagine a world in which every single human being can freely share in the
sum of all knowledge. Help us make it a reality!
https://donate.wikimedia.org


More information about the samba mailing list