Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / doc / man-pages / pod1 / fs_cleanacl.pod
CommitLineData
805e021f
CE
1=head1 NAME
2
3fs_cleanacl - Remove obsolete entries from an ACL
4
5=head1 SYNOPSIS
6
7=for html
8<div class="synopsis">
9
10B<fs cleanacl> S<<< [B<-path> <I<dir/file path>>+] >>> [B<-help>]
11
12B<fs cl> S<<< [B<-p> <I<dir/file path>>+] >>> [B<-h>]
13
14=for html
15</div>
16
17=head1 DESCRIPTION
18
19The B<fs cleanacl> command removes from the access control list (ACL) of
20each specified directory or file any entry that refers to a user or group
21that no longer has a Protection Database entry. Such an entry appears on
22the ACL as an AFS user ID number (UID) rather than a name, because without
23a Protection Database entry, the File Server cannot translate the UID into
24a name.
25
26Cleaning access control lists in this way not only keeps them from
27becoming crowded with irrelevant information, but also prevents the new
28possessor of a recycled AFS UID from obtaining access intended for the
29former possessor of the AFS UID. (Note that recycling UIDs is not
30recommended in any case.)
31
32=head1 OPTIONS
33
34=over 4
35
36=item B<-path> <I<dir/file path>>+
37
38Names each directory for which to clean the ACL (specifying a filename
39cleans its directory's ACL). If this argument is omitted, the current
40working directory's ACL is cleaned.
41
42Specify the read/write path to each directory, to avoid the failure that
43results from attempting to change a read-only volume. By convention, the
44read/write path is indicated by placing a period before the cell name at
45the pathname's second level (for example, F</afs/.example.com>). For further
46discussion of the concept of read/write and read-only paths through the
47filespace, see the B<fs mkmount> reference page.
48
49=item B<-help>
50
51Prints the online help for this command. All other valid options are
52ignored.
53
54=back
55
56=head1 OUTPUT
57
58If there are no obsolete entries on the ACL, the following message
59appears:
60
61 Access list for <path> is fine.
62
63Otherwise, the output reports the resulting state of the ACL, following the
64header
65
66 Access list for <path> is now
67
68At the same time, the following error message appears for each file in the
69cleaned directories:
70
71 fs: '<filename>': Not a directory
72
73=head1 EXAMPLES
74
75The following example illustrates the cleaning of the ACLs on the current
76working directory and two of its subdirectories. Only the second
77subdirectory had obsolete entries on it.
78
79 % fs cleanacl -path . ./reports ./sources
80 Access list for . is fine.
81 Access list for ./reports is fine.
82 Access list for ./sources is now
83 Normal rights:
84 system:authuser rl
85 pat rlidwka
86
87=head1 PRIVILEGE REQUIRED
88
89The issuer must have the C<a> (administer) permission on each directory's
90ACL (or the ACL of each file's parent directory); the directory's owner
91and the members of the system:administrators group have the right
92implicitly, even if it does not appear on the ACL.
93
94=head1 SEE ALSO
95
96L<fs_listacl(1)>,
97L<fs_mkmount(1)>
98
99=head1 COPYRIGHT
100
101IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
102
103This documentation is covered by the IBM Public License Version 1.0. It was
104converted from HTML to POD by software written by Chas Williams and Russ
105Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.