]> arthur.barton.de Git - netatalk.git/blob - config/AppleVolumes.default.tmpl
Set DEFAULTS for volumes upriv and usedots
[netatalk.git] / config / AppleVolumes.default.tmpl
1 # This file looks empty when viewed with "vi".  In fact, there is one
2 # '~', so users with no AppleVolumes file in their home directory get
3 # their home directory by default.
4
5 #
6 # volume format:
7 # :DEFAULT: [all of the default options except volume name]
8 # path [name] [casefold:x] [options:z,l,j] \
9 #   [allow:a,@b,c,d] [deny:a,@b,c,d] [dbpath:path] [password:p] \
10 #   [rwlist:a,@b,c,d] [rolist:a,@b,c,d] [limitsize:value in bytes] \
11 #   [preexec:cmd] [root_preexec:cmd] [postexec:cmd]  [root_postexec:cmd] \
12 #   [allowed_hosts:IPv4 address[/IPv4 netmask bits]] \
13 #   [denied_hosts:IPv4 address[/IPv4 netmask bits]] \
14 #   ... more, see below ...
15 #   
16 # name:      volume name. it can't include the ':' character
17 #
18
19 #
20 # variable substitutions:
21 # you can use variables for both <path> and <name> now. here are the
22 # rules:
23 #     1) if you specify an unknown variable, it will not get converted. 
24 #     2) if you specify a known variable, but that variable doesn't have
25 #        a value, it will get ignored.
26 #
27 # the variables:
28 # $b   -> basename of path
29 # $c   -> client's ip or appletalk address
30 # $d   -> volume pathname on server    
31 # $f   -> full name (whatever's in the gecos field)
32 # $g   -> group
33 # $h   -> hostname 
34 # $i   -> client ip without tcp port or appletalk network   
35 # $s   -> server name (can be the hostname)
36 # $u   -> username (if guest, it's whatever user guest is running as)
37 # $v   -> volume name (either ADEID_NAME or basename of path)
38 # $z   -> zone (may not exist)
39 # $$   -> $
40 #
41
42 #
43 # casefold options [syntax: casefold:option]:
44 # tolower    -> lowercases names in both directions
45 # toupper    -> uppercases names in both directions
46 # xlatelower -> client sees lowercase, server sees uppercase
47 # xlateupper -> client sees uppercase, server sees lowercase
48 #
49 # allow/deny/rwlist/rolist format [syntax: allow:user1,@group]:
50 # user1,@group,user2  -> allows/denies access from listed users/groups
51 #                        rwlist/rolist control whether or not the
52 #                        volume is ro for those users.
53 # allowed_hosts       -> Only listed hosts and networks are allowed,
54 #                        all others are rejected. Example:
55 #                        allowed_hosts:10.1.0.0/16,10.2.1.100
56 # denied_hosts        -> Listed hosts and nets are rejected,
57 #                        all others are allowed. Example:
58 #                        denied_hosts: 192.168.100/24,10.1.1.1
59 # preexec             -> command to be run when the volume is mounted,
60 #                        ignore for user defined volumes
61 # root_preexec        -> command to be run as root when the volume is mounted,
62 #                        ignore for user defined volumes
63 # postexec            -> command to be run when the volume is closed,
64 #                        ignore for user defined volumes
65 # root_postexec       -> command to be run as root when the volume is closed,
66 #                        ignore for user defined volumes
67 # veto                -> hide files and directories,where the path matches
68 #                        one of the "/" delimited vetoed names. Matches are
69 #                        partial, e.g. path is /abc/def/file and veto:/abc/
70 #                        will hide the file.
71 # adouble             -> specify the format of the metadata files.
72 #                        default is "v2". netatalk 1.x used "v1".
73 #                        "osx" cannot be treated normally any longer.
74
75
76 #
77 # codepage options [syntax: options:charsetname]
78 # volcharset          -> specifies the charset to be used
79 #                        as the volume codepage
80 #                        e.g. "UTF8", "UTF8-MAC", "ISO-8859-15"
81 # maccharset          -> specifies the charset to be used
82 #                        as the mac client codepage
83 #                        e.g. "MAC_ROMAN", "MAC_CYRILLIC"
84 #
85 # perm                -> default permission value
86 #                        OR with the client requested perm
87 # dperm               -> default permission value for directories
88 #                        OR with the client requested perm
89 # fperm               -> default permission value for files
90 #                        OR with the client requested perm
91 # umask               -> set perm mask
92 # dbpath:path         -> store the database stuff in the following path.
93 # cnidserver:server[:port]
94 #                     -> Query this servername or IP address
95 #                        (default:localhost) and port (default: 4700)
96 #                        for CNIDs. Only used with CNID backend "dbd".
97 #                        This option here overrides any setting from
98 #                        afpd.conf:cnidserver.
99 # password:password   -> set a volume password (8 characters max)
100 # cnidscheme:scheme   -> set the cnid scheme for the volume,
101 #                        default is [:DEFAULT_CNID_SCHEME:]
102 #                        available schemes: [:COMPILED_BACKENDS:]
103 # ea                  -> none|auto|sys|ad
104 #                        Specify how Extended Attributes are stores. default
105 #                        is auto.
106 #                        auto: try "sys" (by setting an EA on the shared
107 #                              directory itself), fallback to "ad".  Requires
108 #                              writable volume for performing the test.
109 #                              Note: options:ro overwrites "auto" with "none."
110 #                        sys:  Use filesystem EAs
111 #                        ad:   Use files in AppleDouble directories
112 #                        none: No EA support
113 #
114
115 #
116 # miscellaneous options [syntax: options:option1,option2]:
117 # tm                  -> enable TimeMachine support
118 # prodos              -> make compatible with appleII clients.
119 # crlf                -> enable crlf translation for TEXT files.
120 # noadouble           -> don't create .AppleDouble unless a resource
121 #                        fork needs to be created.
122 # ro                  -> mount the volume as read-only.
123 # mswindows           -> enforce filename restrictions imposed by MS
124 #                        Windows. this will also invoke a default
125 #                        codepage (iso8859-1) if one isn't already 
126 #                        specified.
127 # nohex               -> don't do :hex translations for anything
128 #                        except dot files. specify usedots as well if
129 #                        you want that turned off. note: this option
130 #                         makes the / character illegal.
131 # usedots             -> don't do :hex translation for dot files. note: when 
132 #                        this option gets set, certain file names
133 #                        become illegal. these are .Parent and
134 #                        anything that starts with .Apple.
135 # invisibledots       -> don't do :hex translation for dot files. note: when 
136 #                        this option gets set, certain file names
137 #                        become illegal. these are .Parent and
138 #                        anything that starts with .Apple. also, dot
139 #                        files created on the unix side are marked invisible. 
140 # limitsize           -> limit disk size reporting to 2GB. this is
141 #                        here for older macintoshes using newer
142 #                        appleshare clients. yucko.
143 # nofileid            -> don't advertise createfileid, resolveid, deleteid 
144 #                        calls
145 # root_preexec_close  -> a non-zero return code from root_preexec close the 
146 #                        volume being mounted.
147 # preexec_close       -> a non-zero return code from preexec close the 
148 #                        volume being mounted.
149 # nostat              -> don't stat volume path when enumerating volumes list
150 # upriv               -> use unix privilege.  
151 # illegalseq          -> encode illegal sequence in filename asis,
152 #                        ex "\217-", which is not a valid SHIFT-JIS char,
153 #                        is encoded  as U\217 -
154 # acls                -> Enable ACLs on this volume. Requires a NFSv4 ACLs
155 #                        compatible filesystem (e.g. ZFS) and an ACL API
156 #                        compatible to *Solaris. In other words: this requires
157 #                        Solaris, Opensolaris or a derived distribution.
158 # nocnidcache         -> Don't store and read CNID to/from AppleDouble file.
159 #                        This should not be used as it also prevents a CNID
160 #                        database rebuild with `dbd`!
161 # caseinsensitive     -> The underlying FS is case insensitive (only 
162 #                        test with JFS in OS2 mode)
163 # dropbox             -> Allows a volume to be declared as being a "dropbox."
164 #                        Note that netatalk must be compiled with dropkludge
165 #                        support for this to function. Warning: This option
166 #                        is deprecated and might not work as expected.
167 # dropkludge          -> same as "dropbox"
168 # nodev               -> always use 0 for device number, helps when the
169 #                        device number is not constant across a reboot,
170 #                        cluster, ...
171 #
172
173 # The line below sets some DEFAULTS, starting with Netatalk 2.1.
174 :DEFAULTS: options:upriv,usedots
175
176 # The "~" below indicates that Home directories are visible by default.
177 # If you do not wish to have people accessing their Home directories,
178 # please put a pound sign in front of the tilde or delete it.
179 ~
180
181 # End of File