]> arthur.barton.de Git - netatalk.git/blobdiff - man/man5/afp.conf.5.tmpl
Import manpage
[netatalk.git] / man / man5 / afp.conf.5.tmpl
index 48987e5396100fc377b0f6a9136a486b0c2b8f4c..c6db40f421ec72ef5bd19ebd2328023a0e1388e0 100644 (file)
@@ -57,19 +57,23 @@ Any line ending in a
 is continued on the next line in the customary UNIX fashion\&.
 .PP
 The values following the equals sign in parameters are all either a string (no quotes needed) or a boolean, which may be given as yes/no, 1/0 or true/false\&. Case is not significant in boolean values, but is preserved in string values\&. Some items such as create masks are numeric\&.
+.PP
+The parameter
+\fBinclude = \fR\fB\fIpath\fR\fR
+allows you to include one config file inside another\&. The file is included literally, as though typed in place\&. Nested includes are not supported\&.
 .SH "SECTION DESCRIPTIONS"
 .PP
 Each section in the configuration file (except for the [Global] section) describes a shared resource (known as a
 \(lqvolume\(rq)\&. The section name is the name of the volume and the parameters within the section define the volume attributes and options\&.
 .PP
-There is one special sections, [Global], which is described under
+There are two special sections, [Global] and [Homes], which are described under
 \fIspecial sections\fR\&. The following notes apply to ordinary section descriptions\&.
 .PP
 A volume consists of a directory to which access is being given plus a description of the access rights which are granted to the user of the service\&. For volumes the
 \fBpath\fR
 option must specify the directory to share\&.
 .PP
-Any section without
+Any volume section without
 \fBpath\fR
 option is considered a
 \fIvol preset\fR
@@ -100,7 +104,40 @@ baz:
 .SH "SPECIAL SECTIONS"
 .SS "The [Global] section"
 .PP
-Parameters in this section apply to the server as a whole\&. Parameters denoted by a (G) below are must be set in this section\&. Parameters denoted by a (V) belong to volume sections\&.
+Parameters in this section apply to the server as a whole\&. Parameters denoted by a (G) below are must be set in this section\&.
+.SS "The [Homes] section"
+.PP
+This section enable sharing of the UNIX server user home directories\&. Specifying an optional
+\fBpath\fR
+parameter means that not the whole user home will be shared but the subdirectory
+\fBpath\fR\&. It is neccessary to define the
+\fBbasedir regex\fR
+option\&. It should be a regex which matches the parent directory of the user homes\&. Parameters denoted by a (H) belong to volume sections\&. The optional parameter
+\fBname\fR
+can be used to change the AFP volume name which
+\fIusers\'s home\fR
+by default\&. See below under VARIABLE SUBSTITUTIONS\&.
+.PP
+The following example illustrates this\&. Given all user home directories are stored under
+/home:
+.sp
+.if n \{\
+.RS 4
+.\}
+.nf
+        [Homes]
+        path = afp\-data
+        basedir regex = /home
+      
+.fi
+.if n \{\
+.RE
+.\}
+.sp
+For a user
+\fIjohn\fR
+this results in an AFP home volume with a path of
+/home/john/afp\-data\&.
 .SH "PARAMETERS"
 .PP
 Parameters define the specific attributes of sections\&.
@@ -111,8 +148,6 @@ Some parameters are specific to the [Global] section (e\&.g\&.,
 in parentheses indicates that a parameter is specific to the [Global] section\&. The letter
 \fIV\fR
 indicates that a parameter can be specified in a volume specific section\&.
-.PP
-Parameters are arranged here in alphabetical order \- this may not create best bedfellows, but at least you can find them! Where there are synonyms, the preferred synonym is described, others refer to the preferred synonym\&.
 .SH "VARIABLE SUBSTITUTIONS"
 .PP
 You can use variables in both volume path and volume name\&.
@@ -443,6 +478,20 @@ Allows a different TCP port to be used for AFP\&. The default is 548\&. Also set
 option\&.
 .RE
 .PP
+sleep time = \fInumber\fR \fB(G)\fR
+.RS 4
+Keep sleeping AFP sessions for
+\fInumber\fR
+hours before disconnecting clients in sleep mode\&. Default is 10 hours\&.
+.RE
+.PP
+disconnect time = \fInumber\fR \fB(G)\fR
+.RS 4
+Keep disconnected AFP sessions for
+\fInumber\fR
+hours before dropping them\&. Default is 24 hours\&.
+.RE
+.PP
 server_quantum = \fInumber\fR \fB(G)\fR
 .RS 4
 This specifies the DSI server quantum\&. The default value is 303840\&. The maximum value is 0xFFFFFFFFF, the minimum is 32000\&. If you specify a value that is out of range, the default value will be set\&. Do not change this value unless you\'re absolutely sure, what you\'re doing
@@ -465,6 +514,25 @@ Try to set TCP send buffer using setsockpt()\&. Often OSes impose restrictions o
 .RE
 .SS "Miscellaneous Options"
 .PP
+vol dbpath = \fIpath\fR \fB(G)\fR
+.RS 4
+Sets the database information to be stored in path\&. You have to specifiy a writable location, even if the volume is read only\&. The default is
+$localstatedir/netatalk/CNID/, where $localstatedir defaults to
+/var\&.
+.RE
+.PP
+basedir regex = \fIregex\fR \fB(H)\fR
+.RS 4
+Regular expression which matches the parent directory of the user homes\&. In the simple case this is just a path ie
+\fBbasedir regex = /home\fR
+.RE
+.PP
+name = \fIname\fR \fB(H)\fR
+.RS 4
+AFP user home volume name\&. The default is
+\fIusers\'s home\fR\&.
+.RE
+.PP
 vol preset = \fIname\fR \fB(G)/(V)\fR
 .RS 4
 Use section
@@ -689,13 +757,6 @@ keepsessions \fB(G)\fR
 Enable "Continuous AFP Service"\&. This means the ability to stop the master afpd process with a SIGQUIT signal, possibly install an afpd update and start the afpd process\&. Existing AFP sessions afpd processes will remain unaffected\&. Technically they will be notified of the master afpd shutdown, sleep 15\-20 seconds and then try to reconnect their IPC channel to the master afpd process\&. If this reconnect fails, the sessions are in an undefined state\&. Therefor it\'s absolutely critical to restart the master process in time!
 .RE
 .PP
-sleep \fInumber\fR \fB(G)\fR
-.RS 4
-AFP 3\&.x waits
-\fInumber\fR
-hours before disconnecting clients in sleep mode\&. Default is 10 hours\&.
-.RE
-.PP
 noacl2maccess \fB(G)\fR
 .RS 4
 Don\'t map filesystem ACLs to effective permissions\&.
@@ -771,11 +832,6 @@ cnidscheme = \fIbackend\fR \fB(V)\fR
 set the CNID backend to be used for the volume, default is [:DEFAULT_CNID_SCHEME:] available schemes: [:COMPILED_BACKENDS:]
 .RE
 .PP
-dbpath = \fIpath\fR \fB(V)\fR
-.RS 4
-Sets the database information to be stored in path\&. You have to specifiy a writable location, even if the volume is read only\&.
-.RE
-.PP
 cnidserver = \fIhost[:port]\fR \fB(V)\fR
 .RS 4
 Query this servername or IP address (default:\fIlocalhost\fR) and port (default: