Add all the source files from the old CVS tree,
[Samba.git] / docs / smbdotconf / security / rootdirectory.xml
blob337eccdda2a9e8f0f8e768d600270c66faff3b45
1 <samba:parameter name="root directory"
2         context="G"
3         type="string"
4                  advanced="1" developer="1"
5                  xmlns:samba="http://samba.org/common">
6 <synonym>root</synonym>
7 <synonym>root dir</synonym>
8 <description>
9     <para>The server will <command moreinfo="none">chroot()</command> (i.e. 
10     Change its root directory) to this directory on startup. This is 
11     not strictly necessary for secure operation. Even without it the 
12     server will deny access to files not in one of the service entries. 
13     It may also check for, and deny access to, soft links to other 
14     parts of the filesystem, or attempts to use &quot;..&quot; in file names 
15     to access other directories (depending on the setting of the <link linkend="WIDELINKS">
16     <parameter moreinfo="none">wide links</parameter></link> 
17     parameter).
18     </para>
20     <para>Adding a <parameter moreinfo="none">root directory</parameter> entry other 
21     than &quot;/&quot; adds an extra level of security, but at a price. It 
22     absolutely ensures that no access is given to files not in the 
23     sub-tree specified in the <parameter moreinfo="none">root directory</parameter> 
24     option, <emphasis>including</emphasis> some files needed for 
25     complete operation of the server. To maintain full operability 
26     of the server you will need to mirror some system files 
27     into the <parameter moreinfo="none">root directory</parameter> tree. In particular 
28     you will need to mirror <filename moreinfo="none">/etc/passwd</filename> (or a 
29     subset of it), and any binaries or configuration files needed for 
30     printing (if required). The set of files that must be mirrored is
31     operating system dependent.</para>
32 </description>
34 <value type="default">/</value>
35 <value type="example">/homes/smb</value>
36 </samba:parameter>