(no commit message)
[openafs-wiki.git] / AFSLore / UsageFAQ.mdwn
1 ## <a name="2  Using AFS"></a> 2 Using AFS
2
3 The Usage Section of the [[AFSFrequentlyAskedQuestions]].
4
5 - [[PreambleFAQ]]
6 - [[GeneralFAQ]]
7
8 <div>
9   <ul>
10     <li><a href="#2  Using AFS"> 2 Using AFS</a><ul>
11         <li><a href="#2.01  What are the differences b"> 2.01 What are the differences between AFS and a unix filesystem?</a></li>
12         <li><a href="#2.02  What is an AFS protection"> 2.02 What is an AFS protection group?</a></li>
13         <li><a href="#2.03  What are the AFS defined p"> 2.03 What are the AFS defined protection groups?</a></li>
14         <li><a href="#2.04  What is an AFS access cont"> 2.04 What is an AFS access control list (ACL)?</a></li>
15         <li><a href="#2.05  What are the AFS access ri"> 2.05 What are the AFS access rights?</a></li>
16         <li><a href="#2.06  What is pagsh?"> 2.06 What is pagsh?</a></li>
17         <li><a href="#2.07  Why use a PAG?"> 2.07 Why use a PAG?</a></li>
18         <li><a href="#2.08  How can I tell if I have a"> 2.08 How can I tell if I have a PAG?</a></li>
19         <li><a href="#2.09  Can I still run cron jobs"> 2.09 Can I still run cron jobs with AFS?</a></li>
20         <li><a href="#2.10  How much disk space does a"> 2.10 How much disk space does a 1 byte file occupy in AFS?</a></li>
21         <li><a href="#2.11  Is it possible to specify"> 2.11 Is it possible to specify a user who is external to the current AFS cell on an ACL?</a></li>
22         <li><a href="#2.12  Are there any problems pri"> 2.12 Are there any problems printing files in /afs?</a></li>
23         <li><a href="#2.13  Can I create a fifo (aka n"> 2.13 Can I create a fifo (aka named pipe) in /afs?</a></li>
24         <li><a href="#2.14  If an AFS server crashes,"> 2.14 If an AFS server crashes, do I have to reboot my AFS client?</a></li>
25         <li><a href="#2.15  Can I use AFS on my diskle"> 2.15 Can I use AFS on my diskless workstation?</a></li>
26         <li><a href="#2.16  Can I test for AFS tokens"> 2.16 Can I test for AFS tokens from within my program?</a></li>
27         <li><a href="#2.17  What's the difference betw"> 2.17 What's the difference between /afs/cellname and /afs/.cellname?</a></li>
28         <li><a href="#2.18  Can I klog as two users on"> 2.18 Can I klog as two users on a machine in the same cell?</a></li>
29         <li><a href="#2.19  What are the ~/._afsXXXX f"> 2.19 What are the ~/.__afsXXXX files?</a></li>
30         <li><a href="#2.20  How do you set up IP-based"> 2.20 How do you set up IP-based ACLs?</a></li>
31         <li><a href="#2.21 What meaning do the owner,"> 2.21 What meaning do the owner, group, and mode bits have in AFS?</a></li>
32         <li><a href="#2.22 What are "dropboxes"?"> 2.22 What are "dropboxes"?</a></li>
33       </ul>
34     </li>
35   </ul>
36 </div>
37
38 - [[AdminFAQ]]
39 - [[ResourcesFAQ]]
40 - [[AboutTheFAQ]]
41 - [[FurtherReading]]
42
43 ### <a name="2.01  What are the differences b"></a> 2.01 What are the differences between AFS and a unix filesystem?
44
45 Essentially, from a user's point of view, there is little difference between AFS and local unix filestore. Nearly all the commands normally used to access local files can be used to access files in /afs.
46
47 In the following set of sections, I have attempted to "target" each section to an appropriate type of user by including to the right of each section heading one of: User, Programmer, [[SysAdmin]].
48
49 Here is a summary of the differences:
50
51 **Authentication:** [ User ]
52
53 Before a user can access protected AFS files (s)he needs to become authenticated to AFS using the klog command (Kerberos login) to get a Kerberos "ticket granting ticket" (called a token from here on).
54
55 Without a token, an unauthenticated user is given the AFS identity "system:anyuser" and as such is only able to access files in directories that have ACLs granting system:anyuser access.
56
57 Many systems have the klog function built into the system login program. So a user would not even have to know they gain a token on logging in. If you use a system where you have to issue the klog command after login then you should run the pagsh command first (see below).
58
59 AFS provides access control lists to give more precise control to users wishing to protect their files (see AFS ACL below).
60
61 **File permissions:** [ User ]
62
63 Unix mode bits for group and other are ignored. The mode bits for the file owner don't work the way they used to. See also question 2.21.
64
65 Users should protect their AFS files with (directory) ACLs only. Just use mode bits to make a file executable.
66
67 **Data protection with AFS ACLs:** [ User ]
68
69 Some versions of unix (eg IBM's AIX version 3) allow ACLs on local files. In AFS, ACLs protect directories and used with AFS protection groups (see below) provide a finer granularity of protection than can be achieved with basic unix file permissions. (AFS ACLs are described in more detail below.)
70
71 **Protection groups:** [ User ]
72
73 Users can create and maintain their own protection groups in AFS - as opposed to unix where only sys admins can manage protection groups.
74
75 **Hard links:** [ User ]
76
77 In AFS, hard links (eg: ln old new) are only valid within a directory. This is because AFS ACLs protect directories (not individual files) and allowing hard links that span directories would subvert ACL protection.
78
79 Symbolic links work in AFS because they reference a pathname and not an i-node directly. (Hard links reference an i-node directly.)
80
81 **Changing file protection by moving a file:** [ User ]
82
83 Moving a file to a different directory will change the protection of a file if the ACL on the new directory if different to the ACL on the original directory.
84
85 **chown and chgrp:** [ User ]
86
87 Only members of the AFS group "system:administrators" can use these commands on files in /afs.
88
89 **Save on close:** [ Programmer ]
90
91 AFS Cache Manager does not send file modifications to a file server until the close() or fsync() system call.
92
93 write() system calls only update the local cache copy on the client.
94
95 Note the difference in semantic of writing a file:
96
97 <table border="1" cellpadding="0" cellspacing="0">
98   <tr>
99     <th bgcolor="#99CCCC"><strong> local unix file: </strong></th>
100     <td> writes update the file "immediately" </td>
101   </tr>
102   <tr>
103     <th align="center" bgcolor="#99CCCC"><strong> AFS file: </strong></th>
104     <td> local cached copy updated "immediately" but the server copy is only updated when the file is closed or fsync'ed. </td>
105   </tr>
106 </table>
107
108 It is important to understand that most applications (eg: vi, emacs, frame, interleaf, wingz, dogz, etc) issue the close() system call when the user chooses/issues the "save" command in the application.
109
110 Users are not required to exit the application to "save" their changes back to the server.
111
112 **byte-range file locking:** [ Programmer ]
113
114 AFS does not support byte-range locking within a file, although lockf() and fcntl() calls will return 0 (success). The first time a byte-range lock is attempted, AFS will display:
115
116 "afs: byte-range lock/unlock ignored; make sure no one else else is running this program."
117
118 **whole file locking:** [ Programmer ]
119
120 AFS does support advisory locking an entire file with flock(). Processes on the same client workstation that attempt to lock a file obey the proper locking semantics.
121
122 Processes on different AFS clients requesting a lock on the same file would get EWOULDBLOCK returned.
123
124 **character and block special files:** [ [[SysAdmin]] ]
125
126 AFS does not support character and block special files. The mknod command does not create either character or block special files in /afs.
127
128 **AFS version of fsck:** [ [[SysAdmin]] ]
129
130 On an AFS server, the partitions containing served files are NOT unix filesystems and standard fsck **must** not be used - use the AFS version instead.
131
132 ### <a name="2.02  What is an AFS protection"></a><a name="2.02  What is an AFS protection "></a> 2.02 What is an AFS protection group?
133
134 A named list of users.
135
136 Group names are used in AFS ACLs to identify lists of users with particular access permissions.
137
138 In AFS, users can create and maintain their own protection groups. This is different to unix where only the system administrator can manage /etc/group.
139
140 AFS groups are stored in the protection database on fileserver(s) and managed by using the "pts" command.
141
142 An AFS group typically has the format:
143
144 - owner-id:group-name
145
146 By default, only the owner of a group can change its members.
147
148 It is possible to have both users and IP addresses as members of an AFS group. By using an IP address like this you can specify all the users from the host with that IP address.
149
150 ### <a name="2.03  What are the AFS defined p"></a> 2.03 What are the AFS defined protection groups?
151
152 - system:anyuser
153   - Everyone who has access to an AFS client in any cell that is on the same network as your cell.
154
155 - system:authuser
156   - Everyone who has access to an AFS client in any cell that is on the same network as your cell **and** has valid tokens for your cell (ie has been authenticated in your cell).
157
158 - system:administrators
159   - Users who have privileges to execute some but not all system administrator commands.
160
161 ### <a name="2.04  What is an AFS access cont"></a> 2.04 What is an AFS access control list (ACL)?
162
163 There is an ACL for every directory in AFS. The ACL specifies protection at the directory level (not file level) by listing permissions of users and/or groups to a directory. There is a maximum of 20 entries on an ACL.
164
165 For example:
166
167 An AFS ACL is displayed by using the "fs" command as shown below:
168
169        tweety@toontown $ fs listacl .
170        Access list for . is
171        Normal rights:
172          fac:coords rlidwka
173          system:anyuser rl
174
175 This ACL shows that members of the AFS protection group "fac:coords" have full access rights to the current directory and "system:anyuser" has only read and lookup rights.
176
177 The members of "fac:coords" can be determined by accessing the protection group database using the "pts" command as shown below:
178
179        tweety@toontown $ pts membership fac:coords
180        Members of fac:coords (id: -1577) are:
181          sylvester
182          roadrunner
183          yosemite.sam
184
185 ### <a name="2.05  What are the AFS access ri"></a> 2.05 What are the AFS access rights?
186
187 In AFS, there are seven access rights that may be set or not set:
188
189 <table border="1" cellpadding="0" cellspacing="0">
190   <tr>
191     <th bgcolor="#99CCCC"><strong> lookup </strong></th>
192     <td><code>l</code></td>
193     <td> Permission to examine the ACL and traverse the directory (needed with most other access rights). Permission to look up filenames in a directory. </td>
194   </tr>
195   <tr>
196     <th bgcolor="#99CCCC"><strong> read </strong></th>
197     <td><code>r</code></td>
198     <td> View the contents of files in the directory </td>
199   </tr>
200   <tr>
201     <th bgcolor="#99CCCC"><strong> insert </strong></th>
202     <td><code>i</code></td>
203     <td> Add new files or sub-directories </td>
204   </tr>
205   <tr>
206     <th bgcolor="#99CCCC"><strong> write </strong></th>
207     <td><code>w</code></td>
208     <td> Modify file contents, use "chmod" </td>
209   </tr>
210   <tr>
211     <th bgcolor="#99CCCC"><strong> delete </strong></th>
212     <td><code>d</code></td>
213     <td> Remove file(s) in directory </td>
214   </tr>
215   <tr>
216     <th bgcolor="#99CCCC"><strong> lock </strong></th>
217     <td><code>k</code></td>
218     <td> Permission for programs to "flock" files in the directory </td>
219   </tr>
220   <tr>
221     <th bgcolor="#99CCCC"><strong> administer </strong></th>
222     <td><code>a</code></td>
223     <td> Ability to change the ACL </td>
224   </tr>
225 </table>
226
227 There are short-hand forms:
228
229 <table border="1" cellpadding="0" cellspacing="0">
230   <tr>
231     <th bgcolor="#99CCCC"><strong> read </strong></th>
232     <td><code>rl</code></td>
233     <td> read and lookup </td>
234   </tr>
235   <tr>
236     <th bgcolor="#99CCCC"><strong> write </strong></th>
237     <td><code>rlidwk</code></td>
238     <td> all rights except administer </td>
239   </tr>
240   <tr>
241     <th bgcolor="#99CCCC"><strong> all </strong></th>
242     <td><code>rlidwka</code></td>
243     <td> all rights </td>
244   </tr>
245   <tr>
246     <th bgcolor="#99CCCC"><strong> none </strong></th>
247     <td> Â  </td>
248     <td> removes all rights </td>
249   </tr>
250 </table>
251
252 ### <a name="2.06  What is pagsh?"></a> 2.06 What is pagsh?
253
254 A command to get a new shell with a process authentication group (PAG).
255
256 This is normally used if your system does not use the AFS version of login. It is used to get a PAG prior to running klog.
257
258 The PAG uniquely identifies the user to the Cache Manager. Without a PAG the Cache Manager uses the unix UID to identify a user.
259
260 ### <a name="2.07  Why use a PAG?"></a> 2.07 Why use a PAG?
261
262 There are two reasons:
263
264 1. Child processes inherit the PAG and the Kerberos token so they are AFS authenticated.
265
266 1. For security: if you don't have a PAG then the Cache Manager identifies you by unix UID. Another user with root access to the client could su to you and therefore use your token.
267
268 ### <a name="2.08  How can I tell if I have a"></a> 2.08 How can I tell if I have a PAG?
269
270 You can tell if you have a PAG by typing "groups". A PAG is indicated by the appearance of two integers in the list of groups.
271
272 For example:
273
274        sylvester@toontown $ groups
275        33536 32533 staff catz
276
277 ### <a name="2.09  Can I still run cron jobs"></a><a name="2.09  Can I still run cron jobs "></a> 2.09 Can I still run cron jobs with AFS?
278
279 Yes, but remember that in order to fully access files in AFS you have to be AFS authenticated. If your cron job doesn't klog then it only gets system:anyuser access.
280
281 The klog command has a "-pipe" option which will read a password from stdin. IF (yes, that's a big if :-) you are prepared to store your password in a local (non-AFS) file then you might use the following:
282
283 (a) create a "wrapper" script to get a PAG, get your AFS token and execute a command:
284
285     #!/usr/afsws/bin/pagsh
286     #
287     # NAME          afs_wrap_cron
288     # AUTHOR        Paul Blackburn <mpb@acm.org>
289     # PURPOSE       Run an AFS authenticated cron job.
290     #               Get a PAG, get the user's token,
291     #               then exec user's command
292
293     CMD=`basename ${0}`
294
295     usage() {
296        echo "Usage: ${CMD} [ -principal AFSID ] passwordfile command" >&2
297     }
298
299     if [ ${1} = "-principal" ]; then
300             PRINCIPAL="${1} ${2}"
301             shift 2
302     fi
303
304     if [ -z "${1}" ]; then
305             echo "${CMD} error: need name of password file" >&2
306             usage
307             exit 1
308     else
309             passwordfile=${1}
310             shift
311     fi
312
313     /usr/afsws/bin/klog ${PRINCIPAL} -pipe < ${passwordfile}
314
315     if [ -z "${1}" ]; then
316             echo "${CMD} error: need name of command to run" >&2
317             usage
318             exit 1
319     else
320             command_line="$*"
321             command=`echo ${command_line} | awk '{print $1}'`
322
323     # Check if we can run the command.
324     # If we got this far, it is likely that the command name is correct
325     # but there may be a problem in accessing the command file.
326     # If there is an error, log it via syslog (logger) rather than ">&2"
327
328             if [ ! -x "${command}" ]; then
329                     M="error: unable to execute command ${command}"
330                     logger -i -t "${CMD}" "${M}"
331                     exit 1
332             fi
333     fi
334     exec ${command_line}
335
336 (b) Store your password in a local (non-AFS) file that only you have access to (perhaps: /home/$USER/.p).
337
338 Make sure that this file is mode 600 and also be sure that you trust whoever has root access on this system and whoever has access to backup tapes! Also, don't forget to change this file if you change your AFS password.
339
340 (c) In your crontab file, run afs\_wrap\_cron followed by unlog:
341
342           0 6 * * * /usr/local/bin/afs_wrap_cron /home/$USER/.p \
343                        $HOME/bin/6AMdaily; /usr/afsws/bin/unlog
344
345 Note that you can still run a cron job without getting a token if the task does not need to be AFS authenticated. In this case, you may get stderr from the cron job if your .profile is not accessible because of the ACL protecting your $HOME. Simply redirect to /dev/null:
346
347           0 7 * * * $sys_anyuser_readable_dir/7AMdaily 2>/dev/null
348
349 ### <a name="2.10  How much disk space does a"></a> 2.10 How much disk space does a 1 byte file occupy in AFS?
350
351 One kilobyte.
352
353 Other filesystems allocate different file block sizes. For example, IBM's AIX version 3 journaled file system (JFS) uses 4K blocks (exception: 2K for the 160MB disk drive).
354
355 Such blocksize differences lead to variations on the amount of disk space required to store files. Copying a directory from AFS to AIX JFS would require more space in JFS because of the block fragmentation.
356
357 Example:
358
359 (a) Create a one byte file in AFS and use "ls -s" to show how many kilobytes it occupies:
360
361           ariel@atlantica $ echo z >/afs/dsea/tmp/one_byte_file
362           ariel@atlantica $ ls -s /afs/dsea/tmp/one_byte_file
363              1 /afs/dsea/tmp/one_byte_file
364
365 (b) Create same file in local filesystem (AIX JFS):
366
367           ariel@atlantica $ echo z >/tmp/one_byte_file
368           ariel@atlantica $ ls -s /tmp/one_byte_file
369              4 /tmp/one_byte_file
370
371 ### <a name="2.11  Is it possible to specify"></a><a name="2.11  Is it possible to specify "></a> 2.11 Is it possible to specify a user who is external to the current AFS cell on an ACL?
372
373 No. You cannot reference a particular user from another AFS cell.
374
375 You can specify an IP address on the ACL; this means any and all users from the host with that IP address.
376
377 Another solution to this problem is to give the external user an "authentication-only" account in your AFS cell. This means that (s)he can klog (but has no home directory) in your cell.
378
379     # Example: AFS administrator creates an authentication-only user
380     $ uss add daffy "Daffy Duck" -t /dev/null
381     $ kas setpassword daffy -admin admin
382
383 Cross-realm authentication (where co-operating cells are able to specify remore users as "user@remote.cell" on an ACL) is an **unsupported** feature of AFS 3.3a. That means that Transarc doesn't promise to make it work for you, nor keep it running in future releases.
384
385 ### <a name="2.12  Are there any problems pri"></a> 2.12 Are there any problems printing files in /afs?
386
387 The issue of printing in AFS is almost always the same: what do you send to the printing daemon? Do you send it the bytes you want to print or do you just send the file name containing those bytes? If you send it a file name, you have to be sure that the printing daemon can read it. Most daemons run with no AFS tokens, so can't access directories unless they are open for system:anyuser read access. Often, printing commands (lpr, lp, enq) have an option that allows for both modes of operation, though the default behavior varies from system to system. If you're interested in making your daemons authenticate to AFS, check out the example scripts in AFS-Contrib:
388
389 - <file:///afs/transarc.com/public/afs-contrib/tools/reauth-example>
390 - <ftp://ftp.transarc.com/pub/afs-contrib/tools/reauth-example/MANIFEST>
391
392 Another common problem is setuid printing commands. For instance, the "enq" command runs as root, daemon, or some such user. If you aren't using the AFS login and simply issue "klog" to get tokens, those tokens are associated with your uid. When setuid programs run, they lose access to your token and often can't read the file name given as an argument. The solution in this case is to use "pagsh" before "klog" so that your tokens are transferred to subprocesses automatically by group membership. This works even if the uid changes, as for setuid programs.
393
394 ### <a name="2.13  Can I create a fifo (aka n"></a> 2.13 Can I create a fifo (aka named pipe) in /afs?
395
396 No. AFS does not support "mknod fifofile p".
397
398 ### <a name="2.14  If an AFS server crashes,"></a><a name="2.14  If an AFS server crashes, "></a> 2.14 If an AFS server crashes, do I have to reboot my AFS client?
399
400 No.
401
402 Typically, if an AFS server becomes unavailable, the AFS Cache Manager on your AFS client will see you through the outage until the server returns. This robustness is dependent on the way your AFS cell has been configured including the following factors:
403
404 - On the client side:
405   - How big is the cache?
406   - Are the files you need already in the cache?
407
408 - On the server side:
409   - How many servers? It's best to have a minimum of three.
410   - Is the data you are accessing replicated? In AFS, replicas are [[ReadOnly]] copies.
411
412 With replicated volumes, the AFS Cache Manager knows about all of the servers on which the replicas are located. Therefore, when the Cache Manager accesses a replicated volume, if the RPC times out, the Cache Manager automatically retrys the RPC, using a different file server.
413
414 If necessary, the Cache Manager will attempt to contact all file servers on which a replica of the volume resides.
415
416 If you are accessing [[ReadWrite]] volumes on a crashed server then you will not be able to save changes back to the server until it returns.
417
418 You don't need to reboot, and the Cache Manager activity is "invisible" to the user.
419
420 ### <a name="2.15  Can I use AFS on my diskle"></a> 2.15 Can I use AFS on my diskless workstation?
421
422 Yes. The AFS Cache Manager can be configured to work with either a disk based cache or a memory (RAM) based cache. With the latter, you can expect file access from the cache with a whizz!
423
424 <http://www.uni-hohenheim.de/~schaefer/afs/info-afs/1306.html>
425
426 ### <a name="2.16  Can I test for AFS tokens"></a><a name="2.16  Can I test for AFS tokens "></a> 2.16 Can I test for AFS tokens from within my program?
427
428 Yes. Some sample code showing how to do this can be found in:
429
430 <file:///afs/transarc.com/public/afs-contrib/tools/auth-samples/listtokens.c> <ftp://ftp.transarc.com/pub/afs-contrib/tools/auth-samples/listtokens.c>
431
432 ### <a name="2.17  What&#39;s the difference betw"></a> 2.17 What's the difference between /afs/cellname and /afs/.cellname?
433
434 AFS has [[ReadOnly]] (RO) and [[ReadWrite]] (RW) volumes.
435
436 The convention in AFS is to mount the RW volume "root.cell" as /afs/.cellname and the RO volume "root.cell.readonly" as /afs/cellname.
437
438 This is so that when you travel down the /afs/.cellname link, AFS will always use the RW site of any volumes that have RO clones.
439
440 This allows your administrator to update the RW copy of a volume and "vos release $volname" so that it will appear in /afs/cellname.
441
442 ### <a name="2.18  Can I klog as two users on"></a> 2.18 Can I klog as two users on a machine in the same cell?
443
444 Yes, if you use two different PAGs.
445
446 It's: "One token per PAG per client system."
447
448 From one shell you can only authenticate as a single user of a cell. If you open another shell (with another PAG) you can klog as a different user of the same cell from the same client.
449
450 You can authenticate into many cells from one client shell.
451
452 ### <a name="2.19  What are the ~/._afsXXXX f"></a> 2.19 What are the ~/.\_\_afsXXXX files?
453
454 They are temporary reference files used by the AFS Cache Manager.
455
456 In UNIX filesystems, when you a remove a file that is kept open by a process, the file stays around physically while it is no longer referenced in any directory (which you will see as a mismatch between disk space usage according to df and du).
457
458 Some applications rely on that feature, e.g. they create a temporary file and remove it immediatley while keeping the file descriptor open. The file then disappears from the filesystem automagically when the process terminates or the file descriptor gets closed otherwise. Such applications could get into trouble with older versions of AFS, where the file could really disappear while it was held open.
459
460 Newer versions of AFS rename such files to .\_\_afsXXXX, thus making sure that the data stays around as expected by the application. As soon as the file gets closed, the associated .\_\_afsXXXX should disappear.
461
462 ### <a name="2.20  How do you set up IP-based"></a> 2.20 How do you set up IP-based ACLs?
463
464 See [[IPAccessControl]].
465
466 ### <a name="2.21 What meaning do the owner,"></a><a name="2.21 What meaning do the owner, "></a> 2.21 What meaning do the owner, group, and mode bits have in AFS?
467
468 In order to appear more like a local filesystem, AFS will faithfully store the numeric UID (owner), GID (group), for both files and directories, as well as the permission bits (read, write, and execute for user, group, and other, plus setuid, setgid, and sticky bits) for files. Note that permission bits for directories are not stored.
469
470 For the most part, these values are simply recorded and reported back when requested. However, in some instances the fileserver and/or cache manager will make access control decisions based in part on these values. The following is believed to be a complete list of those circumstances. Below, "owner" refers to the user whose numeric pts identity is equal to the owner of the file or directory; this might not bear any relationship to the UNIX UID associated with the client process that created the file.
471
472 - implicit ACLs
473   - the owner of the root directory of a volume has implicit administer (a) rights on all directories in the volume
474   - the owner of a file has implicit read (r) and write (w) rights on a file if that user has insert (i) rights on its parent directory
475 - to **read** from a file you must have read (r) rights _and_ at least one of the following must be true:
476   - the file's u+r (user read) bit is set
477   - you are the owner of the file
478   - you are a member of system:administrators
479 - to **write** to a file you must have write (w) rights _and_ at least one of the following must be true:
480   - the file's u+w (user write) bit is set
481   - you are the owner of the file
482   - you are a member of system:administrators
483
484 - changing mode bits and owner/group:
485   - the fileserver will only allow the mode bits on a file (ugo+rwx) to be changed if the user has write (w) and lookup (l) rights on file's parent directory.
486   - the fileserver will only allow the mode bits on a directory to be changed if the user has delete (d) insert (i) and lookup (l) rights on the directory.
487   - only members of system:administrators can change the owner or group of a file.
488   - only members of system:administrators can change the setuid and setgid bits on a file.
489
490 The sticky bit, group of a file, g+rwx, and o+rwx bits are completely ignored by all AFS components. Additionally, the u+rwx bits are ignored on directories.
491
492 Newly created files and directories are given an owner numerically equal to the pts identity of the user who created the file or directory. Initial mode bits are assigned by the AFS cilent, typically based on the creating user's umask.
493
494 ### <a name="2.22 What are &quot;dropboxes&quot;?"></a> 2.22 What are "dropboxes"?
495
496 When the ACL on a directory is set to "irl", this creates what is called a "dropbox". In theory, users should be able to deposit files in the directory, but not modify them once deposited.
497
498 In practice, the "not modify them once deposited" part is not enforced by the fileserver; only the [[OpenAFS]] client enforces this restriction. Thus, you should not depend on this for security.
499
500 Also, note that system:anyuser=irl has additional problems: because dropbox semantics are based on pts identities (see question 2.21), the fileserver cannot distinguish between two unauthenticated users. So, not only can a user come back days later and modify the "dropped" file, but **any** user can modify a file dropped by an unauthenticated user, at any time. 
501