Hi, I recently did a complete upgrade and reinstall of one of our Samba servers. No problem, I backed up all the data, the Samba configuration files, and the secrets.tdb. Just compiled 3.0.8 on the new server (which has the same hostname), copied the smb.conf to /usr/local/samba/lib and copied th secrets.tdb to /usr/local/samba/private. Started Samba, did 'net getlocalsid' and it reports a different SID than my old server had. Just to be sure that the secrets.tdb copied correctly: furnsrv:/data/backup/mnt1/usr/local/samba/var/locks # md5sum /usr/local/samba/private/secrets.tdb /data/backup/mnt1/usr/local/samba/private/secrets.tdb 375cf198c84d026ccb9739bba4f600d5 /usr/local/samba/private/secrets.tdb 375cf198c84d026ccb9739bba4f600d5 /data/backup/mnt1/usr/local/samba/private/secrets.tdb So I can change the SID back to the correct one by hand but I'd rather know what I did wrong. Thanks for any help! Misty -- System Administrator Borkholder Corporation
Misty Stanley-Jones
2004-Nov-14 15:24 UTC
CANCEL Re: [Samba] Changed SID after copied secrets.tdb
This was my stupid mistake. Sorry for the knee-jerk panic email! On Sunday 14 November 2004 09:00 am, Misty Stanley-Jones wrote:> Hi, > > I recently did a complete upgrade and reinstall of one of our Samba > servers. No problem, I backed up all the data, the Samba configuration > files, and the secrets.tdb. Just compiled 3.0.8 on the new server (which > has the same hostname), copied the smb.conf to /usr/local/samba/lib and > copied th secrets.tdb to /usr/local/samba/private. Started Samba, did 'net > getlocalsid' and it reports a different SID than my old server had. Just > to be sure that the secrets.tdb copied correctly: > furnsrv:/data/backup/mnt1/usr/local/samba/var/locks # > md5sum /usr/local/samba/private/secrets.tdb > /data/backup/mnt1/usr/local/samba/private/secrets.tdb > 375cf198c84d026ccb9739bba4f600d5 /usr/local/samba/private/secrets.tdb > 375cf198c84d026ccb9739bba4f600d5 > /data/backup/mnt1/usr/local/samba/private/secrets.tdb > > So I can change the SID back to the correct one by hand but I'd rather know > what I did wrong. Thanks for any help! > > Misty > -- > System Administrator > Borkholder Corporation
did you backup all of the tdb files in /var/lib/samba as well? Yang On Sun, 14 Nov 2004 09:00:19 -0500, Misty Stanley-Jones <misty@borkholder.com> wrote:> Hi, > > I recently did a complete upgrade and reinstall of one of our Samba servers. > No problem, I backed up all the data, the Samba configuration files, and the > secrets.tdb. Just compiled 3.0.8 on the new server (which has the same > hostname), copied the smb.conf to /usr/local/samba/lib and copied th > secrets.tdb to /usr/local/samba/private. Started Samba, did 'net > getlocalsid' and it reports a different SID than my old server had. Just to > be sure that the secrets.tdb copied correctly: > furnsrv:/data/backup/mnt1/usr/local/samba/var/locks # > md5sum /usr/local/samba/private/secrets.tdb /data/backup/mnt1/usr/local/samba/private/secrets.tdb > 375cf198c84d026ccb9739bba4f600d5 /usr/local/samba/private/secrets.tdb > 375cf198c84d026ccb9739bba4f600d5 /data/backup/mnt1/usr/local/samba/private/secrets.tdb > > So I can change the SID back to the correct one by hand but I'd rather know > what I did wrong. Thanks for any help! > > Misty > -- > System Administrator > Borkholder Corporation > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >
On Monday 15 November 2004 17:08, Yang Xiao wrote:> did you backup all of the tdb files in /var/lib/samba as well? > > YangThank you for replying to this. This was my own foolish mistake. It was a new install of SuSE and I had forgotten that SuSE would have installed its own Samba. I had compiled it and put everything where it needed to be, but net getlocalsid was looking at the wrong smb.conf. I apologize for that silly mistake! Misty