1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3//EN">
3
<TITLE>Administration Reference</TITLE>
4
<!-- Begin Header Records ========================================== -->
5
<!-- /tmp/idwt3190/auarf000.scr converted by idb2h R4.2 (359) ID -->
6
<!-- Workbench Version (AIX) on 5 Nov 1999 at 13:58:29 -->
7
<META HTTP-EQUIV="updated" CONTENT="Fri, 05 Nov 1999 13:58:29">
8
<META HTTP-EQUIV="review" CONTENT="Sun, 05 Nov 2000 13:58:29">
9
<META HTTP-EQUIV="expires" CONTENT="Mon, 05 Nov 2001 13:58:29">
11
<!-- (C) IBM Corporation 2000. All Rights Reserved -->
12
<BODY bgcolor="ffffff">
13
<!-- End Header Records ============================================ -->
14
<A NAME="Top_Of_Page"></A>
15
<H1>Administration Reference</H1>
16
<HR><P ALIGN="center"> <A HREF="../index.htm"><IMG SRC="../books.gif" BORDER="0" ALT="[Return to Library]"></A> <A HREF="auarf002.htm#ToC"><IMG SRC="../toc.gif" BORDER="0" ALT="[Contents]"></A> <A HREF="auarf156.htm"><IMG SRC="../prev.gif" BORDER="0" ALT="[Previous Topic]"></A> <A HREF="#Bot_Of_Page"><IMG SRC="../bot.gif" BORDER="0" ALT="[Bottom of Topic]"></A> <A HREF="auarf158.htm"><IMG SRC="../next.gif" BORDER="0" ALT="[Next Topic]"></A> <A HREF="auarf284.htm#HDRINDEX"><IMG SRC="../index.gif" BORDER="0" ALT="[Index]"></A> <P>
18
<H2><A NAME="HDRFS_SETACL" HREF="auarf002.htm#ToC_171">fs setacl</A></H2>
19
<A NAME="IDX4924"></A>
20
<A NAME="IDX4925"></A>
21
<A NAME="IDX4926"></A>
22
<A NAME="IDX4927"></A>
23
<A NAME="IDX4928"></A>
24
<A NAME="IDX4929"></A>
25
<A NAME="IDX4930"></A>
26
<A NAME="IDX4931"></A>
27
<A NAME="IDX4932"></A>
28
<A NAME="IDX4933"></A>
29
<A NAME="IDX4934"></A>
30
<A NAME="IDX4935"></A>
31
<A NAME="IDX4936"></A>
32
<P><STRONG>Purpose</STRONG>
33
<P>Sets the ACL for a directory
34
<P><STRONG>Synopsis</STRONG>
35
<PRE><B>fs setacl -dir</B> <<VAR>directory</VAR>><SUP>+</SUP> <B>-acl</B> <<VAR>access list entries</VAR>><SUP>+</SUP>
36
[<B>-clear</B>] [<B>-negative</B>] [<B>-id</B>] [<B>-if</B>] [<B>-help</B>]
38
<B>fs sa -d</B> <<VAR>directory</VAR>><SUP>+</SUP> <B>-a</B> <<VAR>access list entries</VAR>><SUP>+</SUP>
39
[<B>-c</B>] [<B>-n</B>] [<B>-id</B>] [<B>-if</B>] [<B>-h</B>]
41
<B>fs seta -d</B> <<VAR>directory</VAR>><SUP>+</SUP> <B>-a</B> <<VAR>access list entries</VAR>><SUP>+</SUP>
42
[<B>-c</B>] [<B>-n</B>] [<B>-id</B>] [<B>-if</B>] [<B>-h</B>]
44
<P><STRONG>Description</STRONG>
45
<P>The <B>fs setacl</B> command adds the access control list (ACL) entries
46
specified with the <B>-acl</B> argument to the ACL of each directory named
47
by the <B>-dir</B> argument.
48
<P>If the <B>-dir</B> argument designates a pathname in DFS filespace
49
(accessed via the AFS/DFS Migration Toolkit Protocol Translator), it can be a
50
file as well as a directory. The ACL must already include an entry for
51
<B>mask_obj</B>, however. For more details, refer to the
52
<I>AFS/DFS Migration Toolkit Administration Guide and
54
<P>Only user and group entries are acceptable values for the <B>-acl</B>
55
argument. Do not place machine entries (IP addresses) directly on an
56
ACL; instead, make the machine entry a group member and place the group
58
<P>To completely erase the existing ACL before adding the new entries, provide
59
the <B>-clear</B> flag. To add the specified entries to the
60
<TT>Negative</TT> <TT>rights</TT> section of the ACL (deny rights to
61
specified users or groups), provide the <B>-negative</B> flag.
62
<P>To display an ACL, use the <B>fs listacl</B> command. To copy an
63
ACL from one directory to another, use the <B>fs copyacl</B>
65
<P><STRONG>Cautions</STRONG>
66
<P>If the ACL already grants certain permissions to a user or group, the
67
permissions specified with the <B>fs setacl</B> command replace the
68
existing permissions, rather than being added to them.
69
<P>Setting negative permissions is generally unnecessary and not
70
recommended. Simply omitting a user or group from the <TT>Normal</TT>
71
<TT>rights</TT> section of the ACL is normally adequate to prevent
72
access. In particular, note that it is futile to deny permissions that
73
are granted to members of the <B>system:anyuser</B> group on the
74
same ACL; the user needs only to issue the <B>unlog</B> command to
75
receive the denied permissions.
76
<P>When including the <B>-clear</B> option, be sure to reinstate an entry
77
for each directory's owner that includes at least the <B>l</B>
78
(<B>lookup</B>) permission. Without that permission, it is
79
impossible to resolve the "dot" ( . ) and "dot dot" ( . .
80
) shorthand from within the directory. (The directory's owner does
81
implicitly have the <B>a</B> [<B>administer</B>] permission even on a
82
cleared ACL, but must know to use it to add other permissions.)
83
<P><STRONG>Options</STRONG>
86
</B><DD>Names each AFS directory, or DFS directory or file, for which the set the
87
ACL. Partial pathnames are interpreted relative to the current working
89
<P>Specify the read/write path to each directory (or DFS file), to avoid the
90
failure that results from attempting to change a read-only volume. By
91
convention, the read/write path is indicated by placing a period before the
92
cell name at the pathname's second level (for example,
93
<B>/afs/.abc.com</B>). For further discussion of the
94
concept of read/write and read-only paths through the filespace, see the
95
<B>fs mkmount</B> reference page.
97
</B><DD>Defines a list of one or more ACL entries, each a pair that names
99
<P><LI>A user name or group name as listed in the Protection Database
100
<P><LI>One or more ACL permissions, indicated either by combining the individual
101
letters or by one of the four acceptable shorthand words
104
<P>in that order, separated by a space (thus every instance of this argument
105
has two parts). The accepted AFS abbreviations and shorthand words, and
106
the meaning of each, are as follows:
109
</B><DD>(<B>administer</B>): change the entries on the ACL
111
</B><DD>(<B>delete</B>): remove files and subdirectories from the
112
directory or move them to other directories
114
</B><DD>(<B>insert</B>): add files or subdirectories to the directory by
115
copying, moving or creating
117
</B><DD>(<B>lock</B>): set read locks or write locks on the files in the
120
</B><DD>(<B>lookup</B>): list the files and subdirectories in the
121
directory, stat the directory itself, and issue the <B>fs listacl</B>
122
command to examine the directory's ACL
124
</B><DD>(<B>read</B>): read the contents of files in the directory;
125
issue the <B>ls -l</B> command to stat the elements in the directory
127
</B><DD>(<B>write</B>): modify the contents of files in the directory,
128
and issue the UNIX <B>chmod</B> command to change their mode bits
129
<P><DT><B>A, B, C, D, E, F, G, H
130
</B><DD>Have no default meaning to the AFS server processes, but are made
131
available for applications to use in controlling access to the
132
directory's contents in additional ways. The letters must be
135
</B><DD>Equals all seven permissions (<B>rlidwka</B>).
136
<A NAME="IDX4937"></A>
137
<A NAME="IDX4938"></A>
138
<A NAME="IDX4939"></A>
139
<A NAME="IDX4940"></A>
141
</B><DD>No permissions. Removes the user/group from the ACL, but does not
142
guarantee they have no permissions if they belong to groups that remain on the
144
<A NAME="IDX4941"></A>
145
<A NAME="IDX4942"></A>
147
</B><DD>Equals the <B>r</B> (<B>read</B>) and <B>l</B>
148
(<B>lookup</B>) permissions.
149
<A NAME="IDX4943"></A>
150
<A NAME="IDX4944"></A>
152
</B><DD>Equals all permissions except <B>a</B> (<B>administer</B>), that
154
<A NAME="IDX4945"></A>
155
<A NAME="IDX4946"></A>
158
<P>It is acceptable to mix entries that combine the individual letters with
159
entries that use the shorthand words, but not use both types of notation
160
within an individual pairing of user or group and permissions.
161
<P>To learn the proper format and acceptable values for DFS ACL entries, see
162
the <I>AFS/DFS Migration Toolkit Administration Guide and
165
</B><DD>Removes all existing entries on each ACL before adding the entries
166
specified with the <B>-acl</B> argument.
168
</B><DD>Places the specified ACL entries in the <TT>Negative</TT>
169
<TT>rights</TT> section of each ACL, explicitly denying the rights to the
170
user or group, even if entries on the accompanying <TT>Normal</TT>
171
<TT>rights</TT> section of the ACL grant them permissions.
172
<P>This argument is not supported for DFS files or directories, because DFS
173
does not implement negative ACL permissions.
175
</B><DD>Places the ACL entries on the Initial Container ACL of each DFS directory,
176
which are the only file system objects for which this flag is
179
</B><DD>Places the ACL entries on the Initial Object ACL of each DFS directory,
180
which are the only file system objects for which this flag is
183
</B><DD>Prints the online help for this command. All other valid options
186
<P><STRONG>Examples</STRONG>
187
<P>The following example adds two entries to the <TT>Normal rights</TT>
188
section of the current working directory's ACL: the first entry
189
grants <B>r</B> (<B>read</B>) and <B>l</B> (<B>lookup</B>)
190
permissions to the group <B>pat:friends</B>, while the other (using
191
the <B>write</B> shorthand) gives all permissions except <B>a</B>
192
(<B>administer</B>) to the user <B>smith</B>.
193
<PRE> % <B>fs setacl -dir . -acl pat:friends rl smith write</B>
195
% <B>fs listacl -path </B>.
202
<P>The following example includes the <B>-clear</B> flag, which removes
203
the existing permissions (as displayed with the <B>fs listacl</B> command)
204
from the current working directory's <B>reports</B> subdirectory and
205
replaces them with a new set.
206
<PRE> % <B>fs listacl -dir reports</B>
207
Access list for reports is
209
system:authuser rl
216
% <B>fs setacl -clear -dir reports -acl pat all smith write system:anyuser rl</B>
218
% <B>fs listacl -dir reports</B>
219
Access list for reports is
221
system:anyuser rl
226
<P>The following example use the <B>-dir</B> and <B>-acl</B> switches
227
because it sets the ACL for more than one directory (both the current working
228
directory and its <B>public</B> subdirectory).
229
<PRE> % <B>fs setacl -dir . public -acl pat:friends rli</B>
231
% <B>fs listacl -path . public</B>
236
Access list for public is
242
<P><STRONG>Privilege Required</STRONG>
243
<P>The issuer must have the <B>a</B> (<B>administer</B>) permission on
244
the directory's ACL; the directory's owner and the members of
245
the <B>system:administrators</B> group have the right implicitly,
246
even if it does not appear on the ACL.
247
<P><STRONG>Related Information</STRONG>
248
<P><A HREF="auarf136.htm#HDRFS_COPYACL">fs copyacl</A>
249
<P><A HREF="auarf148.htm#HDRFS_LISTACL">fs listacl</A>
250
<P><A HREF="auarf153.htm#HDRFS_MKMOUNT">fs mkmount</A>
251
<P><I>AFS/DFS Migration Toolkit Administration Guide and Reference</I>
253
<HR><P ALIGN="center"> <A HREF="../index.htm"><IMG SRC="../books.gif" BORDER="0" ALT="[Return to Library]"></A> <A HREF="auarf002.htm#ToC"><IMG SRC="../toc.gif" BORDER="0" ALT="[Contents]"></A> <A HREF="auarf156.htm"><IMG SRC="../prev.gif" BORDER="0" ALT="[Previous Topic]"></A> <A HREF="#Top_Of_Page"><IMG SRC="../top.gif" BORDER="0" ALT="[Top of Topic]"></A> <A HREF="auarf158.htm"><IMG SRC="../next.gif" BORDER="0" ALT="[Next Topic]"></A> <A HREF="auarf284.htm#HDRINDEX"><IMG SRC="../index.gif" BORDER="0" ALT="[Index]"></A> <P>
254
<!-- Begin Footer Records ========================================== -->
256
<br>© <A HREF="http://www.ibm.com/">IBM Corporation 2000.</A> All Rights Reserved
258
<!-- End Footer Records ============================================ -->
259
<A NAME="Bot_Of_Page"></A>