~ubuntu-branches/ubuntu/maverick/samba/maverick-security

« back to all changes in this revision

Viewing changes to docs/htmldocs/Samba3-HOWTO/tdb.html

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2010-01-29 06:16:15 UTC
  • mfrom: (0.27.9 upstream) (0.34.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100129061615-37hs6xqpsdhjq3ld
Tags: 2:3.4.5~dfsg-1ubuntu1
* Merge from debian testing.  Remaining changes:
  + debian/patches/VERSION.patch:
    - set SAMBA_VERSION_SUFFIX to Ubuntu.
  + debian/smb.conf:
    - Add "(Samba, Ubuntu)" to server string.
    - Comment out the default [homes] share, and add a comment about "valid users = %s"
      to show users how to restrict access to \\server\username to only username.
    - Set 'usershare allow guests', so that usershare admins are allowed to create
      public shares in additon to authenticated ones.
    - add map to guest = Bad user, maps bad username to gues access.
  + debian/samba-common.conf:
    - Do not change priority to high if dhclient3 is installed.
    - Use priority medium instead of high for the workgroup question.
  + debian/mksambapasswd.awk:
    - Do not add user with UID less than 1000 to smbpasswd.
  + debian/control: 
    - Make libswbclient0 replace/conflict with hardy's likewise-open.
    - Don't build against ctdb, since its not in main yet.
  + debian/rules:
    - Enable "native" PIE hardening.
    - Add BIND_NOW to maximize benefit of RELRO hardening.
  + Add ufw integration:
    - Created debian/samba.ufw.profile.
    - debian/rules, debian/samba.dirs, debian/samba.files: install
  + Add apoort hook:
    - Created debian/source_samba.py.
    - debian/rules, debian/samba.dirs, debian/samba-common-bin.files: install
  + debian/rules, debian/samba.if-up: allow "NetworkManager" as a recognized address
    family... it's obviously /not/ an address family, but it's what gets
    sent when using NM, so we'll cope for now.  (LP: #462169). Taken from karmic-proposed.
  + debian/control: Recommend keyutils for smbfs (LP: #493565)
  + Dropped patches:
    - debian/patches/security-CVE-2009-3297.patch: No longer needed
    - debian/patches/fix-too-many-open-files.patch: No longer needed

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Chapter�41.�Managing TDB Files</title><link rel="stylesheet" href="../samba.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.74.0"><link rel="home" href="index.html" title="The Official Samba 3.4.x HOWTO and Reference Guide"><link rel="up" href="troubleshooting.html" title="Part�V.�Troubleshooting"><link rel="prev" href="bugreport.html" title="Chapter�40.�Reporting Bugs"><link rel="next" href="Appendix.html" title="Part�VI.�Reference Section"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter�41.�Managing TDB Files</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="bugreport.html">Prev</a>�</td><th width="60%" align="center">Part�V.�Troubleshooting</th><td width="20%" align="right">�<a accesskey="n" href="Appendix.html">Next</a></td></tr></table><hr></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="tdb"></a>Chapter�41.�Managing TDB Files</h2></div><div><div class="author"><h3 class="author"><span class="firstname">John</span> <span class="othername">H.</span> <span class="orgname">Samba Team</span> <span class="surname">Terpstra</span></h3><div class="affiliation"><span class="orgname">Samba Team<br></span><div class="address"><p><code class="email">&lt;<a class="email" href="mailto:jht@samba.org">jht@samba.org</a>&gt;</code></p></div></div></div></div><div><p class="pubdate">May 28, 2008</p></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="sect1"><a href="tdb.html#id2686919">Features and Benefits</a></span></dt><dt><span class="sect1"><a href="tdb.html#id2687381">Managing TDB Files</a></span></dt></dl></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2686919"></a>Features and Benefits</h2></div></div></div><p>
2
 
<a class="indexterm" name="id2686927"></a>
3
 
<a class="indexterm" name="id2686934"></a>
 
1
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Chapter�41.�Managing TDB Files</title><link rel="stylesheet" href="../samba.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.75.2"><link rel="home" href="index.html" title="The Official Samba 3.4.x HOWTO and Reference Guide"><link rel="up" href="troubleshooting.html" title="Part�V.�Troubleshooting"><link rel="prev" href="bugreport.html" title="Chapter�40.�Reporting Bugs"><link rel="next" href="Appendix.html" title="Part�VI.�Reference Section"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter�41.�Managing TDB Files</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="bugreport.html">Prev</a>�</td><th width="60%" align="center">Part�V.�Troubleshooting</th><td width="20%" align="right">�<a accesskey="n" href="Appendix.html">Next</a></td></tr></table><hr></div><div class="chapter" title="Chapter�41.�Managing TDB Files"><div class="titlepage"><div><div><h2 class="title"><a name="tdb"></a>Chapter�41.�Managing TDB Files</h2></div><div><div class="author"><h3 class="author"><span class="firstname">John</span> <span class="othername">H.</span> <span class="surname">Terpstra</span></h3><div class="affiliation"><span class="orgname">Samba Team<br></span><div class="address"><p><code class="email">&lt;<a class="email" href="mailto:jht@samba.org">jht@samba.org</a>&gt;</code></p></div></div></div></div><div><p class="pubdate">May 28, 2008</p></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="sect1"><a href="tdb.html#id2692976">Features and Benefits</a></span></dt><dt><span class="sect1"><a href="tdb.html#id2693437">Managing TDB Files</a></span></dt></dl></div><div class="sect1" title="Features and Benefits"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2692976"></a>Features and Benefits</h2></div></div></div><p>
 
2
<a class="indexterm" name="id2692984"></a>
 
3
<a class="indexterm" name="id2692990"></a>
4
4
        Samba uses a lightweight database called Trivial Database (tdb) in which it stores persistent and transient data.
5
5
        Some tdb files can be disposed of before restarting Samba, but others are used to store information that is vital
6
6
        to Samba configuration and behavior. The following information is provided to help administrators who are seeking
7
7
        to better manage their Samba installations.
8
8
        </p><p>
9
 
<a class="indexterm" name="id2686950"></a>
10
 
<a class="indexterm" name="id2686957"></a>
11
 
<a class="indexterm" name="id2686964"></a>
12
 
<a class="indexterm" name="id2686971"></a>
 
9
<a class="indexterm" name="id2693007"></a>
 
10
<a class="indexterm" name="id2693014"></a>
 
11
<a class="indexterm" name="id2693020"></a>
 
12
<a class="indexterm" name="id2693027"></a>
13
13
        Those who package Samba for commercial distribution with operating systems and appliances would do well to take
14
14
        note that tdb files can get corrupted, and for this reason ought to be backed up regularly.  An appropriate time
15
15
        is at system shutdown (backup) and startup (restore from backup).
37
37
                                This stores secure channel access token information used with SMB signing.
38
38
                                </p></td></tr><tr><td align="center">passdb.tdb</td><td align="center">Y</td><td align="center"><p>
39
39
                                This stores the Samba SAM account information when using a tdbsam password backend.
40
 
                                </p></td></tr></tbody></table></div></div><br class="table-break"></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2687381"></a>Managing TDB Files</h2></div></div></div><p>
 
40
                                </p></td></tr></tbody></table></div></div><br class="table-break"></div><div class="sect1" title="Managing TDB Files"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2693437"></a>Managing TDB Files</h2></div></div></div><p>
41
41
        The <code class="literal">tdbbackup</code> utility is a tool that may be used to backup samba tdb files.
42
42
        This tool may also be used to verify the integrity of the tdb files prior to Samba startup or
43
43
        during normal operation. If it finds file damage it will search for a prior backup the backup