Initial IBM OpenAFS 1.0 tree
[openafs.git] / src / WINNT / doc / install / Documentation / en_US / html / CmdRef / auarf222.htm
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3//EN">
2 <HTML><HEAD>
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">
10 </HEAD><BODY>
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="auarf221.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="auarf223.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> 
17 <P>
18 <H2><A NAME="HDRPTS_MEMBERSHIP" HREF="auarf002.htm#ToC_236">pts membership</A></H2>
19 <A NAME="IDX5374"></A>
20 <A NAME="IDX5375"></A>
21 <A NAME="IDX5376"></A>
22 <A NAME="IDX5377"></A>
23 <A NAME="IDX5378"></A>
24 <A NAME="IDX5379"></A>
25 <A NAME="IDX5380"></A>
26 <A NAME="IDX5381"></A>
27 <P><STRONG>Purpose</STRONG>
28 <P>Displays the membership list for a user or group
29 <P><STRONG>Synopsis</STRONG>
30 <PRE><B>pts membership -nameorid</B> &lt;<VAR>user&nbsp;or&nbsp;group&nbsp;name&nbsp;or&nbsp;id</VAR>><SUP>+</SUP>  [<B>-cell</B> &lt;<VAR>cell&nbsp;name</VAR>>]  
31                [<B>-noauth</B>]  [<B>-force</B>]  [<B>-help</B>]
32    
33 <B>pts m -na</B> &lt;<VAR>user&nbsp;or&nbsp;group&nbsp;name&nbsp;or&nbsp;id</VAR>><SUP>+</SUP>  [<B>-c</B> &lt;<VAR>cell&nbsp;name</VAR>>]  [<B>-no</B>]  [<B>-f</B>]  [<B>-h</B>]
34    
35 <B>pts groups -na</B> &lt;<VAR>user&nbsp;or&nbsp;group&nbsp;name&nbsp;or&nbsp;id</VAR>><SUP>+</SUP>  [<B>-c</B> &lt;<VAR>cell&nbsp;name</VAR>>]
36            [<B>-no</B>] [<B>-f</B>]  [<B>-h</B>]
37    
38 <B>pts g -na</B> &lt;<VAR>user&nbsp;or&nbsp;group&nbsp;name&nbsp;or&nbsp;id</VAR>><SUP>+</SUP>  [<B>-c</B> &lt;<VAR>cell&nbsp;name</VAR>>]  [<B>-no</B>]  [<B>-f</B>]  [<B>-h</B>]
39 </PRE>
40 <P><STRONG>Description</STRONG>
41 <P>The <B>pts membership</B> command lists the groups to which each user
42 or machine specified by the <B>-nameorid</B> argument belongs, or lists
43 the users and machines that belong to each group specified by the
44 <B>-nameorid</B> argument.
45 <P>It is not possible to list the members of the
46 <B>system&#58;anyuser</B> or <B>system&#58;authuser</B> groups,
47 and they do not appear in the list of groups to which a user belongs.
48 <P>To add users or machine to groups, use the <B>pts adduser</B>
49 command; to remove them, use the <B>pts removeuser</B>
50 command.
51 <P><STRONG>Options</STRONG>
52 <DL>
53 <P><DT><B>-nameorid
54 </B><DD>Specifies the name or AFS UID of each user entry, the IP address (complete
55 or wildcard-style) or AFS UID of each machine entry, or the name or AFS GID of
56 each group, for which to list group membership. It is acceptable to mix
57 users, machines, and groups on the same command line, as well as names and
58 IDs. Precede the GID of each group with a hyphen to indicate that it is
59 negative.
60 <P><DT><B>-cell
61 </B><DD>Names the cell in which to run the command. For more details, see
62 the introductory <B>pts</B> reference page.
63 <P><DT><B>-noauth
64 </B><DD>Assigns the unprivileged identity <B>anonymous</B> to the
65 issuer. For more details, see the introductory <B>pts</B> reference
66 page.
67 <P><DT><B>-force
68 </B><DD>Enables the command to continue executing as far as possible when errors
69 or other problems occur, rather than halting execution at the first
70 error.
71 <P><DT><B>-help
72 </B><DD>Prints the online help for this command. All other valid options
73 are ignored.
74 </DL>
75 <P><STRONG>Output</STRONG>
76 <P>For each user and machine, the output begins with the following header
77 line, followed by a list of the groups to which the user or machine
78 belongs&#58;
79 <PRE>   Groups <VAR>name</VAR> (id&#58; <VAR>AFS UID</VAR>) is a member of&#58;
80    
81 </PRE>
82 <P>For each group, the output begins with the following header line, followed
83 by a list of the users and machines who belong to the group&#58;
84 <PRE>   Members of <VAR>group_name</VAR> (id&#58; <VAR>AFS GID</VAR>) are&#58;
85    
86 </PRE>
87 <P><STRONG>Examples</STRONG>
88 <P>The following example lists the groups to which the user <B>pat</B>
89 belongs and the members of the group <B>smith&#58;friends</B>.
90 Note that third privacy flag for the <B>pat</B> entry was changed from the
91 default hyphen to enable a non-administrative user to obtain this
92 listing.
93 <PRE>   % <B>pts membership pat smith&#58;friends</B>
94    Groups pat (id&#58; 1144) is a member of&#58;
95      smith&#58;friends
96      staff
97      johnson&#58;project-team
98    Members of smith&#58;friends (id&#58; -562) are&#58;
99      pat
100      terry
101      jones
102      richard
103      thompson
104    
105 </PRE>
106 <P><STRONG>Privilege Required</STRONG>
107 <P>The required privilege depends on the setting of the third privacy flag in
108 the Protection Database entry of each user or group indicated by the
109 <B>-nameorid</B> argument (use the <B>pts examine</B> command to
110 display the flags)&#58;
111 <UL>
112 <P><LI>If it is the hyphen and the <B>-nameorid</B> argument specifies a
113 user, only the associated user and members of the
114 <B>system&#58;administrators</B> group can list the groups to which the
115 user belongs.
116 <P><LI>If it is the hyphen and the <B>-nameorid</B> argument specifies a
117 machine, only the members of the <B>system&#58;administrators</B> group
118 can list the groups to which the machine belongs.
119 <P><LI>If it is the hyphen and the <B>-nameorid</B> argument specifies a
120 group, only the owner of the group and members of the
121 <B>system&#58;administrators</B> group can list the members of the
122 group.
123 <P><LI>If it is lowercase <TT>m</TT> and the <B>-nameorid</B> argument
124 specifies a user or machine entry, the meaning is equivalent to the
125 hyphen.
126 <P><LI>If it is lowercase <TT>m</TT> and the <B>-nameorid</B> argument
127 specifies a group, members of the group can also list the other
128 members.
129 <P><LI>If it is uppercase <TT>M</TT>, anyone who can access the cell&#39;s
130 database server machines can list group memberships.
131 </UL>
132 <P><STRONG>Related Information</STRONG>
133 <P><A HREF="auarf210.htm#HDRPTS_INTRO">pts</A>
134 <P><A HREF="auarf211.htm#HDRPTS_ADDUSER">pts adduser</A>
135 <P><A HREF="auarf217.htm#HDRPTS_EXAMINE">pts examine</A>
136 <P><A HREF="auarf223.htm#HDRPTS_REMOVEUSER">pts removeuser</A>
137 <P><A HREF="auarf225.htm#HDRPTS_SETFIELDS">pts setfields</A>
138 <P>
139 <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="auarf221.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="auarf223.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> 
140 <!-- Begin Footer Records  ========================================== -->
141 <P><HR><B> 
142 <br>&#169; <A HREF="http://www.ibm.com/">IBM Corporation 2000.</A>  All Rights Reserved 
143 </B> 
144 <!-- End Footer Records  ============================================ -->
145 <A NAME="Bot_Of_Page"></A>
146 </BODY></HTML>