Create and managing groups
Overview
Any changes you make to a principal's group membership are not recognized until the queue manager is restarted, unless you issue the MQSC command REFRESH SECURITY (or the PCF equivalent).
HP-UX
On HP-UX, use the System Administration Manager (SAM) to work with groups.
Creating a group
- From the System Administration Manager (SAM), double click Accounts for Users and Groups.
- Double click Groups.
- Select Add from the Actions pull down to display the Add a New Group panel.
- Enter the name of the group and select the users that you want to add to the group.
- Click Apply to create the group.
Adding a user to a group
- From the System Administration Manager (SAM), double click Accounts for Users and Groups.
- Double click Groups.
- Highlight the name of the group and select Modify from the Actions pull down to display the Modify an Existing Group panel.
- Select a user that you want to add to the group and click Add.
- If you want to add other users to the group, repeat step 4 for each user.
- When you have finished adding names to the list, click OK.
Displaying who is in a group
- From the System Administration Manager (SAM), double click Accounts for Users and Groups.
- Double click Groups.
- Highlight the name of the group and select Modify from the Actions pull down to display the Modify an Existing Group panel, showing a list of the users in the group.
Removing a user from a group
- From the System Administration Manager (SAM), double click Accounts for Users and Groups.
- Double click Groups.
- Highlight the name of the group and select Modify from the Actions pull down to display the Modify an Existing Group panel.
- Select a user that you want to remove from the group and click Remove.
- If you want to remove other users from the group, repeat step 4 for each user.
- When you have finished removing names from the list, click OK.
AIX
On AIX, use SMITTY to work with groups.
Creating a group
- From SMITTY, select Security and Users and press Enter.
- Select Groups and press Enter.
- Select Add a Group and press Enter.
- Enter the name of the group and the names of any users that you want to add to the group, separated by commas.
- Press Enter to create the group.
Adding a user to a group
- From SMITTY, select Security and Users and press Enter.
- Select Groups and press Enter.
- Select Change / Show Characteristics of Groups and press Enter.
- Enter the name of the group to show a list of the members of the group.
- Add the names of the users that you want to add to the group, separated by commas.
- Press Enter to add the names to the group.
Displaying who is in a group
- From SMITTY, select Security and Users and press Enter.
- Select Groups and press Enter.
- Select Change / Show Characteristics of Groups and press Enter.
- Enter the name of the group to show a list of the members of the group.
Removing a user from a group
- From SMITTY, select Security and Users and press Enter.
- Select Groups and press Enter.
- Select Change / Show Characteristics of Groups and press Enter.
- Enter the name of the group to show a list of the members of the group.
- Delete the names of the users that you want to remove from the group.
- Press Enter to remove the names from the group.
Solaris
On Solaris, use the /etc/group file to work with groups.
Creating a group
To create a new group, type the following command:
groupadd group-nameWhere group-name is the name of the group.
Adding a user to a group
To add a user to a group, edit the /etc/group file.
Find the line defining the group to which you want to add a member, and add the user ID to the list of user IDs in that group.
For example, the entry for a group called mquser, containing members user1, user2, and user3 might look like this:
mquser::42428:root,user1,user2,user3
Displaying who is in a group
To display who is a member of a group, look at the entry for that group in the /etc/group file.
Removing a user from a group
To remove a member from a group, remove the user ID from the entry for that group in the /etc/group file.
Linux
On Linux, use the /etc/group file to work with groups.
Creating a group
To create a new group, type the following command:
groupadd -g group-ID group-nameWhere group-ID is the numeric identifier of the group, and group-name is the name of the group.
Adding a user to a group
To add a user to a group, edit the /etc/group file.
Find the line defining the group to which you want to add a member, and add the user ID to the list of user IDs in that group.
For example, the entry for a group called mquser, containing members user1, user2, and user3 might look like this:
mquser::42428:root,user1,user2,user3
Displaying who is in a group
To display who is a member of a group, look at the entry for that group in the /etc/group file.
Removing a user from a group
To remove a member from a the group, remove the user ID from the entry for that group in the /etc/group file.
WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.
IBM is a trademark of the IBM Corporation in the United States, other countries, or both.