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.
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 ...
16 # name: volume name. it can't include the ':' character
20 # variable substitutions:
21 # you can use variables for both <path> and <name> now. here are the
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.
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)
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)
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
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
68 # codepage options [syntax: options:charsetname]
69 # volcharset -> specifies the charset to be used
70 # as the volume codepage
71 # e.g. "UTF8", "UTF8-MAC", "ISO-8859-15"
72 # maccharset -> specifies the charset to be used
73 # as the mac client codepage
74 # e.g. "MAC_ROMAN", "MAC_CYRILLIC"
76 # perm -> default permission value
77 # OR with the client requested perm
78 # dperm -> default permission value for directories
79 # OR with the client requested perm
80 # fperm -> default permission value for files
81 # OR with the client requested perm
83 # dbpath:path -> store the database stuff in the following path.
84 # cnidserver:server[:port]
85 # -> Query this servername or IP address (default:localhost)
86 # and port (default: 4700) for CNIDs. Only used with
87 # CNID backend "dbd". This option here overrides any
88 # setting from afpd.conf:cnidserver.
89 # password:password -> set a volume password (8 characters max)
90 # cnidscheme:scheme -> set the cnid scheme for the volume,
91 # default is [:DEFAULT_CNID_SCHEME:]
92 # available schemes: [:COMPILED_BACKENDS:]
93 # ea -> none|auto|sys|ad
94 # Specify how Extended Attributes are stores. default
96 # auto: try "sys" (by setting an EA on the shared
97 # directory itself), fallback to "ad". Requires
98 # writable volume for performing the test.
99 # Note: options:ro overwrites "auto" with "none."
100 # sys: Use filesystem EAs
101 # ad: Use files in AppleDouble directories
102 # none: No EA support
106 # miscellaneous options [syntax: options:option1,option2]:
107 # tm -> enable TimeMachine support
108 # prodos -> make compatible with appleII clients.
109 # crlf -> enable crlf translation for TEXT files.
110 # noadouble -> don't create .AppleDouble unless a resource
111 # fork needs to be created.
112 # ro -> mount the volume as read-only.
113 # mswindows -> enforce filename restrictions imposed by MS
114 # Windows. this will also invoke a default
115 # codepage (iso8859-1) if one isn't already
117 # nohex -> don't do :hex translations for anything
118 # except dot files. specify usedots as well if
119 # you want that turned off. note: this option
120 # makes the / character illegal.
121 # usedots -> don't do :hex translation for dot files. note: when
122 # this option gets set, certain file names
123 # become illegal. these are .Parent and
124 # anything that starts with .Apple.
125 # invisibledots -> don't do :hex translation for dot files. note: when
126 # this option gets set, certain file names
127 # become illegal. these are .Parent and
128 # anything that starts with .Apple. also, dot
129 # files created on the unix side are marked invisible.
130 # limitsize -> limit disk size reporting to 2GB. this is
131 # here for older macintoshes using newer
132 # appleshare clients. yucko.
133 # nofileid -> don't advertise createfileid, resolveid, deleteid
135 # root_preexec_close -> a non-zero return code from root_preexec close the
136 # volume being mounted.
137 # preexec_close -> a non-zero return code from preexec close the
138 # volume being mounted.
139 # nostat -> don't stat volume path when enumerating volumes list
140 # upriv -> use unix privilege.
141 # illegalseq -> encode illegal sequence in filename asis,
142 # ex "\217-", which is not a valid SHIFT-JIS char,
143 # is encoded as U\217 -
144 # acls -> Enable ACLs on this volume. Requires a NFSv4 ACLs
145 # compatible filesystem (e.g. ZFS) and an ACL API
146 # compatible to *Solaris. In other words: this requires
147 # Solaris, Opensolaris or a derived distribution.
148 # nocnidcache -> Don't store and read CNID to/from AppleDouble file.
149 # This should not be used as it also prevents a CNID
150 # database rebuild with `dbd`!
151 # caseinsensitive -> The underlying FS is case insensitive (only
152 # test with JFS in OS2 mode)
155 # The "~" below indicates that Home directories are visible by default.
156 # If you do not wish to have people accessing their Home directories,
157 # please put a pound sign in front of the tilde or delete it.