![]() If this succeeds, a normal session is created for the original connecting user. Specifying eg " admin auth user = root" whenever a normal user login fails, afpd will try to authenticate as the specified admin auth user. Useful in Active Directory environments that otherwise would require the user to enter the full string. Prints dollar sign ($) Explanation of Global Parameters Authentication Options ad domain = DOMAIN (G)Īppend to username when authenticating. User name (if guest, it is the user that guest is running as) $v Server name (this can be the hostname) $u The variables which can be used for substitutions are: $bįull name (contents of the gecos field in the passwd file) $g if you specify a known variable, but that variable doesn't have a value, it will get ignored. ![]() if you specify an unknown variable, it will not get converted.The use of variables in paths is limited to $u. The letter V indicates that a parameter can be specified in a volume specific section. ![]() The letter G in parentheses indicates that a parameter is specific to the section. All others are permissible only in volume sections. Some parameters are specific to the section (e.g., log type). Parameters define the specific attributes of sections. If basedir regex contains symlink, set the canonicalized absolute path. Given all user home directories are stored under /home: įor a user john this results in an AFP home volume with a path of /home/john/afp-data. The optional parameter home name can be used to change the AFP volume name which $u's home by default. Parameters denoted by a (H) belong to volume sections. It should be a regex which matches the parent directory of the user homes. It is necessary to define the basedir regex option. Specifying an optional path parameter means that not the whole user home will be shared but the subdirectory path. This section enable sharing of the UNIX server user home directories. Parameters denoted by a (G) below are must be set in this section. Parameters in this section apply to the server as a whole. Path = /foo/bar Special Sections The section The share is accessed via the share name baz: The user has full access to the path /foo/bar. The following sample section defines an AFP volume. The server does not grant more access than the host system grants. The access rights granted by the server are masked by the access rights granted to the specified or guest UNIX user by the host system. For any option specified both in a preset and in a volume section the volume section setting completely substitutes the preset option. For volumes the path option must specify the directory to share.Īny volume section without path option is considered a vol preset which can be selected in other volume sections via the vol preset option and constitutes defaults for the volume. The following notes apply to ordinary section descriptions.Ī 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. There are two special sections, and, which are described under special sections. The section name is the name of the volume and the parameters within the section define the volume attributes and options. Section DescriptionsĮach section in the configuration file (except for the section) describes a shared resource (known as a “volume”). The file is included literally, as though typed in place. The parameter include = path allows you to include one config file inside another. Some items such as "file perm"s are numeric. Case is not significant in boolean values, but is preserved in string values. 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. Internal whitespace within a parameter value is retained verbatim.Īny line beginning with a semicolon (“ ”) or a hash (“#”) character is ignored, as are lines containing only whitespace.Īny line ending in a “ \ ” is continued on the next line in the customary UNIX fashion. Leading and trailing whitespace in a parameter value is discarded. Leading, trailing and internal whitespace in section and parameter names is irrelevant. Whitespace before or after the first equals sign is discarded. ![]() Only the first equals sign in a parameter is significant. Section and parameter names are case sensitive. The file is line-based - that is, each newline-terminated line represents either a comment, a section name or a parameter. Sections contain parameters of the form: name = value A section begins with the name of the section in square brackets and continues until the next section begins. The file consists of sections and parameters. The afp.conf file is the configuration file for the Netatalk AFP file server.Īll AFP specific configuration and AFP volume definitions are done via this file.
0 Comments
Leave a Reply. |