admin-doc-sysname-20040713
[openafs.git] / doc / html / AdminReference / auarf221.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="auarf220.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="auarf222.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_LISTOWNED" HREF="auarf002.htm#ToC_235">pts listowned</A></H2>
19 <A NAME="IDX5367"></A>
20 <A NAME="IDX5368"></A>
21 <A NAME="IDX5369"></A>
22 <A NAME="IDX5370"></A>
23 <A NAME="IDX5371"></A>
24 <A NAME="IDX5372"></A>
25 <A NAME="IDX5373"></A>
26 <P><STRONG>Purpose</STRONG>
27 <P>Displays the Protection Database groups owned by a user or group
28 <P><STRONG>Synopsis</STRONG>
29 <PRE><B>pts listowned -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>>]  
30               [<B>-noauth</B>]  [<B>-force</B>]  [<B>-help</B>]
31    
32 <B>pts listo -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>>]  
33           [<B>-no</B>]  [<B>-f</B>]  [<B>-h</B>]
34 </PRE>
35 <P><STRONG>Description</STRONG>
36 <P>The <B>pts listowned</B> command lists the groups owned by each user or
37 group specified by the <B>-nameorid</B> argument.
38 <P>To list any <I>orphaned group</I>s, whose owners have themselves been
39 deleted from the Protection Database, provide a value of <B>0</B> (zero)
40 for the <B>-nameorid</B> argument. To change the owner to a user or
41 group that still exists, use the <B>pts chown</B> command.
42 <P><STRONG>Options</STRONG>
43 <DL>
44 <P><DT><B>-nameorid
45 </B><DD>Specifies the name or AFS UID of each user, or the name or AFS GID of each
46 group, for which to display the list of owned groups. It is acceptable
47 to mix users and groups on the same command line, as well as names and
48 IDs. Precede the GID of each group with a hyphen to indicate that it is
49 negative.
50 <P>A value of <B>0</B> (zero) lists group entries for groups whose owners
51 no longer have entries in the Protection Database.
52 <P><DT><B>-cell
53 </B><DD>Names the cell in which to run the command. For more details, see
54 the introductory <B>pts</B> reference page.
55 <P><DT><B>-noauth
56 </B><DD>Assigns the unprivileged identity <B>anonymous</B> to the
57 issuer. For more details, see the introductory <B>pts</B> reference
58 page.
59 <P><DT><B>-force
60 </B><DD>Enables the command to continue executing as far as possible when errors
61 or other problems occur, rather than halting execution at the first
62 error.
63 <P><DT><B>-help
64 </B><DD>Prints the online help for this command. All other valid options
65 are ignored.
66 </DL>
67 <P><STRONG>Output</STRONG>
68 <P>The first line of the output indicates the name and AFS UID or AFS GID of
69 each user or group for which ownership information is requested, in the
70 following format:
71 <PRE>   Groups owned by <VAR>name</VAR> (id: <VAR>ID</VAR>) are:
72    
73 </PRE>
74 <P>A list of groups follows. The list does not include groups owned by
75 groups that the user or group owns, or to which the user or group
76 belongs. If the user or group does not own any groups, only the header
77 line appears.
78 <P>The following error message appears if the issuer is not privileged to view
79 ownership information. By default, for both user and group entries the
80 second privacy flag is the hyphen, which denies permission to anyone other
81 than the user (for a user entry) and the members of the
82 <B>system:administrators</B> group.
83 <PRE>   pts: Permission denied so failed to get owner list for <VAR>name</VAR> (id: <VAR>ID</VAR>)
84    
85 </PRE>
86 <P><STRONG>Examples</STRONG>
87 <P>The following example lists the groups owned by user <B>terry</B> and
88 shows that the group <B>terry:friends</B> does not own any
89 groups:
90 <PRE>   % <B>pts listowned terry terry:friends</B>
91    Groups owned by terry (id: 1045) are:
92      terry:friends
93      terry:project1
94      terry:project2
95    Groups owned by terry:friends (id: -673) are:
96    
97 </PRE>
98 <P><STRONG>Privilege Required</STRONG>
99 <P>The required privilege depends on the setting of the second privacy flag in
100 the Protection Database entry of each user or group indicated by the
101 <B>-nameorid</B> argument (use the <B>pts examine</B> command to
102 display the flags):
103 <UL>
104 <P><LI>If it is the hyphen and the <B>-nameorid</B> argument specifies a
105 group, only the members of the <B>system:administrators</B> group
106 and the owner of a group can list the groups it owns.
107 <P><LI>If it is the hyphen and the <B>-nameorid</B> argument specifies a
108 user, only the members of the <B>system:administrators</B> group and
109 the associated user can list the groups he or she owns.
110 <P><LI>If it is uppercase letter <TT>O</TT>, anyone who can access the
111 cell's database server machines can list the groups owned by this user or
112 group.
113 </UL>
114 <P><STRONG>Related Information</STRONG>
115 <P><A HREF="auarf210.htm#HDRPTS_INTRO">pts</A>
116 <P><A HREF="auarf213.htm#HDRPTS_CHOWN">pts chown</A>
117 <P><A HREF="auarf217.htm#HDRPTS_EXAMINE">pts examine</A>
118 <P><A HREF="auarf225.htm#HDRPTS_SETFIELDS">pts setfields</A>
119 <P>
120 <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="auarf220.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="auarf222.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> 
121 <!-- Begin Footer Records  ========================================== -->
122 <P><HR><B> 
123 <br>&#169; <A HREF="http://www.ibm.com/">IBM Corporation 2000.</A>  All Rights Reserved 
124 </B> 
125 <!-- End Footer Records  ============================================ -->
126 <A NAME="Bot_Of_Page"></A>
127 </BODY></HTML>