Usually, most of the TDB files are stored in the lock directory. Since Samba 3.4.0, it is possible to differentiate between TDB files with persistent data and TDB files with non-persistent data using the state directory and the cache directory options. This option specifies the directory where TDB files containing persistent data will be stored. ${prefix}/var/locks /var/run/samba/locks/state