From 5e09bcd936f60a9b3f6547299ab2baf98111bba6 Mon Sep 17 00:00:00 2001 From: Michael Meffie Date: Mon, 3 May 2010 15:51:40 -0400 Subject: [PATCH] pts mem -expandgroups and -supergroups examples Examples of the pts mem -expandgroups and -supergroups options for the man page. Change-Id: Idea0509797212397eff87aa5975eaf5364c8414c Reviewed-on: http://gerrit.openafs.org/1896 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- doc/man-pages/pod1/pts_membership.pod | 61 +++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/doc/man-pages/pod1/pts_membership.pod b/doc/man-pages/pod1/pts_membership.pod index a4f0fa15b..36c1ed3fd 100644 --- a/doc/man-pages/pod1/pts_membership.pod +++ b/doc/man-pages/pod1/pts_membership.pod @@ -135,6 +135,67 @@ non-administrative user to obtain this listing. richard thompson +The following example shows how to list the groups to which nested groups +belong. In this example the group C is a member of the group +C and the group C is a member of the group C. +The group C is called a supergroup of the group C and the +group C is called a supergroup of the group C. + + % pts membership executives + Members of executives (id: -208) are: + jane + + % pts membership executives -supergroups + Members of executives (id: -208) are: + jane + Groups executives (id: -208) is a member of: + management + + % pts membership management -supergroups + Members of management (id: -207) are: + executives + mary + sarah + carol + Groups management (id: -207) is a member of: + staff + + % pts membership staff -supergroups + Members of staff (id: -206) are: + sales + marketing + engineering + management + Groups staff (id: -206) is a member of: + +The following example shows how to find all the users which belong +to a group, including users of nested groups. In this example, the +user C is listed as an expanded member of the group C +instead of the group C. + + % pts membership management -expandgroups + Expanded Members of management (id: -207) are: + jane + mary + sarah + carol + +The following example shows how to find all the groups a user +is a member of, including membership due to nested groups. In +this example the user C is a direct member of the group +C. The C<-expandgroups> flag shows all the groups +to which C has membership status. + + % pts membership jane + Groups jane (id: 7) is a member of: + executives + + % pts membership jane -expandgroups + Expanded Groups jane (id: 7) is a member of: + staff + management + executives + =head1 PRIVILEGE REQUIRED Members of the system:ptsviewers and system:administrators groups can -- 2.39.5