[Samba] samba / tdb recovery

Kaleb Pederson kibab at icehouse.net
Thu Jan 1 01:17:09 GMT 2004

Hash: SHA1

I'm currently in the process of recovering a system and wanted to mention my 
thoughts and process for feedback and, if necessary, corrections:

1) I had my original version of samba (2.2.8) compiled with:

./configure  --with-fhs --prefix=/usr --sysconfdir=/etc 
- --with-privatedir=/etc/samba --with-lockdir=/var/state/samba 
- --localstatedir=/var --with-netatalk --with-smbmount --with-pam --with-syslog 
- --with-sambabook --with-utmp --with-acl-support --no-create --no-recursion

2) I have a copy of everything in /etc/samba, and /var/state/samba (see 
configuration above).

Based on the backup files that I'm seeing, --with-lockdir seems to make samba 
store not only the lockfiles (as I would have presumed by the parameter name) 
but also most of the .tdb files in /var/state/samba

So, when I restore to my system to my new samba configuration, I just need to 
make sure that all the files in /var/state/samba get restored to the 
- --with-lockdir location, whatever that might be (in my 
case /var/cache/samba)?  I also presume that if I restore all the files 
in /etc/samba to the --with-privatedir location that I should be set.

3) When building the new system, I made sure to maintain all the user IDs and 
samba group IDs, so that it would match up with all the UID information 
specified in smbpasswd.

4) Is there anything else that I should have made sure matched up?  [I guess 
I'll find out soon enough ;) ].

Considering that I still have all the roaming profile information (and 
therefore the SIDs specified in NTUSER.dat, and hopefully the correct .tdb 
files), I presume that if I can restore the above configuration files, that 
everything should still be in tact?

Any other thoughts on restoring a samba system?  I'm sure I have all the 
files, its just a matter of getting them in the right place, which was an 
oversite my first time through, as I didn't consider the fact that the 
directory structure was configured differently.

Thanks for the help.

- --Kaleb
Version: GnuPG v1.2.3 (GNU/Linux)


More information about the samba mailing list