Is there a way to do this? I have full access to the box (I'm typing this on it), and have extracted the SAM itself.

Our little Samba server here at home died, and I'd like to set up identical replacement machine accounts on the new server. Creating an account with the given SID is easy with samba (or so it seems), but I can't figure out how to get the SID itself.

Any tips? Or do I have to migrate each users profile manually (erg)?

Thanks in advance
-Onager