kaauxdb-fix-silly-comment-substitution-20010711
[openafs.git] / doc / html / AdminReference / auarf223.htm
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 4//EN">
2 <HTML><HEAD>
3 <TITLE>Administration Reference</TITLE>
4 <!-- Begin Header Records  ========================================== -->
5 <!-- /tmp/idwt3672/auarf000.scr converted by idb2h R4.2 (359) ID      -->
6 <!-- Workbench Version (AIX) on 3 Oct 2000 at 16:18:30                -->
7 <META HTTP-EQUIV="updated" CONTENT="Tue, 03 Oct 2000 16:18:29">
8 <META HTTP-EQUIV="review" CONTENT="Wed, 03 Oct 2001 16:18:29">
9 <META HTTP-EQUIV="expires" CONTENT="Thu, 03 Oct 2002 16:18: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="auarf222.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="auarf224.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_REMOVEUSER" HREF="auarf002.htm#ToC_237">pts removeuser</A></H2>
19 <A NAME="IDX5382"></A>
20 <A NAME="IDX5383"></A>
21 <A NAME="IDX5384"></A>
22 <A NAME="IDX5385"></A>
23 <A NAME="IDX5386"></A>
24 <A NAME="IDX5387"></A>
25 <A NAME="IDX5388"></A>
26 <A NAME="IDX5389"></A>
27 <P><STRONG>Purpose</STRONG>
28 <P>Removes a user from a Protection Database group
29 <P><STRONG>Synopsis</STRONG>
30 <PRE><B>pts removeuser -user</B> &lt;<VAR>user&nbsp;name</VAR>><SUP>+</SUP>  <B>-group</B> &lt;<VAR>group&nbsp;name</VAR>><SUP>+</SUP>
31                [<B>-cell</B> &lt;<VAR>cell&nbsp;name</VAR>>]  [<B>-noauth</B>]  [<B>-force</B>]  [<B>-help</B>]
32    
33 <B>pts rem -u</B> &lt;<VAR>user&nbsp;name</VAR>><SUP>+</SUP>  <B>-g</B> &lt;<VAR>group&nbsp;name</VAR>><SUP>+</SUP>  [<B>-c</B> &lt;<VAR>cell&nbsp;name</VAR>>]  
34         [<B>-n</B>]  [<B>-f</B>]  [<B>-h</B>]
35 </PRE>
36 <P><STRONG>Description</STRONG>
37 <P>The <B>pts removeuser</B> command removes each user or machine named by
38 the <B>-user</B> argument from each group named by the <B>-group</B>
39 argument.
40 <P>To add users to a group, use the <B>pts adduser</B> command. To
41 list group membership, use the <B>pts membership</B> command. To
42 remove users from a group and delete the group's entry completely in a
43 single step, use the <B>pts delete</B> command.
44 <P><STRONG>Cautions</STRONG>
45 <P>AFS compiles each user's group membership as he or she
46 authenticates. Any users who have valid tokens when they are removed
47 from a group retain the privileges extended to that group's members until
48 they discard their tokens or reauthenticate.
49 <P><STRONG>Options</STRONG>
50 <DL>
51 <P><DT><B>-name
52 </B><DD>Specifies the name of each user entry or the IP address (complete or
53 wildcard-style) of each machine entry to remove.
54 <P><DT><B>-group
55 </B><DD>Names each group from which to remove members.
56 <P><DT><B>-cell
57 </B><DD>Names the cell in which to run the command. For more details, see
58 the introductory <B>pts</B> reference page.
59 <P><DT><B>-noauth
60 </B><DD>Assigns the unprivileged identity <B>anonymous</B> to the
61 issuer. For more details, see the introductory <B>pts</B> reference
62 page.
63 <P><DT><B>-force
64 </B><DD>Enables the command to continue executing as far as possible when errors
65 or other problems occur, rather than halting execution at the first
66 error.
67 <P><DT><B>-help
68 </B><DD>Prints the online help for this command. All other valid options
69 are ignored.
70 </DL>
71 <P><STRONG>Examples</STRONG>
72 <P>The following example removes user <B>smith</B> from the groups
73 <B>staff</B> and <B>staff:finance</B>. Note that no
74 switch names are necessary because only a single instance is provided for the
75 first argument (the username).
76 <PRE>   % <B>pts removeuser smith staff staff:finance</B>
77    
78 </PRE>
79 <P>The following example removes three machine entries, which represent all
80 machines in the ABC Corporation network, from the group
81 <B>bin-prot</B>:
82 <PRE>   % <B>pts removeuser -user 138.255.0.0 192.12.105.0 192.12.106.0 -group bin-prot</B>
83    
84 </PRE>
85 <P><STRONG>Privilege Required</STRONG>
86 <P>The required privilege depends on the setting of the fifth privacy flag in
87 the Protection Database for the group named by the <B>-group</B> argument
88 (use the <B>pts examine</B> command to display the flags):
89 <UL>
90 <P><LI>If it is the hyphen, only the group's owner and members of the
91 <B>system:administrators</B> group can remove members.
92 <P><LI>If it is lowercase <TT>r</TT>, members of the group can also remove
93 other members.
94 </UL>
95 <P>(It is not possible to set the fifth flag to uppercase
96 <TT>R</TT>.)
97 <P><STRONG>Related Information</STRONG>
98 <P><A HREF="auarf210.htm#HDRPTS_INTRO">pts</A>
99 <P><A HREF="auarf211.htm#HDRPTS_ADDUSER">pts adduser</A>
100 <P><A HREF="auarf217.htm#HDRPTS_EXAMINE">pts examine</A>
101 <P><A HREF="auarf222.htm#HDRPTS_MEMBERSHIP">pts membership</A>
102 <P><A HREF="auarf225.htm#HDRPTS_SETFIELDS">pts setfields</A>
103 <P>
104 <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="auarf222.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="auarf224.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> 
105 <!-- Begin Footer Records  ========================================== -->
106 <P><HR><B> 
107 <br>&#169; <A HREF="http://www.ibm.com/">IBM Corporation 2000.</A>  All Rights Reserved 
108 </B> 
109 <!-- End Footer Records  ============================================ -->
110 <A NAME="Bot_Of_Page"></A>
111 </BODY></HTML>