Assume a role of group_mgr:
$ ccm set role group_mgr
Note: if you do not have a group_mgr role assume the role of ccm_admin and add yourself the group_mgr role. End the session and start over.
Verify:
$ ccm set role
group_mgr
Create group:
$ ccm groups -c mygroup
This will open the vi (or any other text editor you have set as a default) session where you should write all the names of the users to be members of the group, in a single line, space-delimited.
Once you are done adding the users save the file and close editor session. The group will be created.
Do not bother sorting the names, next time you look at it via ccm groups -show mygroup you will see all the names sorted alphabetically. And they will be cut in several lines anyway.
List groups:
$ ccm query -i group
1) group/admin/mygroup/1 admin myuser admin <void> group <void>
List group attribute: (so we know what can be viewed or changed):
$ ccm attr -l @1
create_time (time) (local)
cvtype (string) (local)
is_asm (boolean) (local)
is_model (boolean) (local)
membership (text) (local)
modify_time (time) (local)
name (string) (local)
owner (string) (local)
status (string) (local)
subsystem (string) (local)
version (string) (local)
View group owner:
$ ccm attr -s owner @1
myuser
View group members:
$ ccm attr -s membership @1
OR
$ ccm groups -show mygroup
Change group membership:
$ ccm groups -e <group name>
e.g. ccm groups –e mygroup
Query for all the objects to assign to the group (all objects in the ABC_v721_00 project that belong to the ABC* releases):
$ ccm query "is_member_of('ABCAPP#V721_00') and is_associated_object_of(cvtype='task' and release match 'ABC*') and type !='dir'"
Assign ABCAPP#V721_00 721-only objects to the dp security group with read-deny access to others:
$ ccm groups -a -v mygroup:readsource @
No comments:
Post a Comment