Creating and managing groups

This section tells you how to create groups and add users to them. It also describes how to remove a user from a group. 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).

Windows NT

On Windows NT, use the User Manager to work with groups.

Creating a group

  1. From Administrative Tools (Common) on the Start Programs pulldown, select User Manager to display the User Manager panel.
  2. From the User pulldown, select New Local Group.
  3. Enter a name for the group. You can also add a description to help identify the group.
  4. Click Add to display the Add Users and Groups panel.
  5. Highlight the name of a user that you want to add to the group and click Add. The name appears on the list of names to add.
  6. If you want to add other users to the group, repeat step 5 for each user.
  7. When you have finished adding names to the list, click OK.
  8. Click OK to create the group.

Adding a user to a group

  1. From Administrative Tools (Common) on the Start Programs pulldown, select User Manager to display the User Manager panel.
  2. Highlight the name of the group from the list of groups and double click to display the Local Group Properties panel.
  3. Click Add to display the Add Users and Groups panel.
  4. Highlight the name of the user that you want to add to the group and click Add. The name appears on the list of names to add.
  5. If you want to add other users to the group, repeat step 4 for each user.
  6. When you have finished adding names to the list, click OK.
  7. Click OK to add the names to the group.

Displaying who is in a group

  1. From Administrative Tools (Common) on the Start Programs pulldown, select User Manager to display the User Manager panel.
  2. Highlight the name of the group from the list of groups and double click to display the Local Group Properties panel, showing a list of the members of the group.

Removing a user from a group

  1. From Administrative Tools (Common) on the Start Programs pulldown, select User Manager to display the User Manager panel.
  2. Highlight the name of the group from the list of groups and double click to display the Local Group Properties panel.
  3. Select the name of the user that you want to remove and click Remove.
  4. If you want to remove other users from the group, repeat Step 3.
  5. When you have finished removing names from the list, click OK.

HP-UX

On HP-UX, use the System Administration Manager (SAM) to work with groups.

Creating a group

  1. From the System Administration Manager (SAM), double click Accounts for Users and Groups.
  2. Double click Groups.
  3. Select Add from the Actions pull down to display the Add a New Group panel.
  4. Enter the name of the group and select the users that you want to add to the group.
  5. Click Apply to create the group.

Adding a user to a group

  1. From the System Administration Manager (SAM), double click Accounts for Users and Groups.
  2. Double click Groups.
  3. Highlight the name of the group and select Modify from the Actions pull down to display the Modify an Existing Group panel.
  4. Select a user that you want to add to the group and click Add.
  5. If you want to add other users to the group, repeat step 4 for each user.
  6. When you have finished adding names to the list, click OK.

Displaying who is in a group

  1. From the System Administration Manager (SAM), double click Accounts for Users and Groups.
  2. Double click Groups.
  3. 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

  1. From the System Administration Manager (SAM), double click Accounts for Users and Groups.
  2. Double click Groups.
  3. Highlight the name of the group and select Modify from the Actions pull down to display the Modify an Existing Group panel.
  4. Select a user that you want to remove from the group and click Remove.
  5. If you want to remove other users from the group, repeat step 4 for each user.
  6. When you have finished removing names from the list, click OK.

AIX

On AIX, use SMITTY to work with groups.

Creating a group

  1. From SMITTY, select Security and Users and press Enter.
  2. Select Groups and press Enter.
  3. Select Add a Group and press Enter.
  4. Enter the name of the group and the names of any users that you want to add to the group, separated by commas.
  5. Press Enter to create the group.

Adding a user to a group

  1. From SMITTY, select Security and Users and press Enter.
  2. Select Groups and press Enter.
  3. Select Change / Show Characteristics of Groups and press Enter.
  4. Enter the name of the group to show a list of the members of the group.
  5. Add the names of the users that you want to add to the group, separated by commas.
  6. Press Enter to add the names to the group.

Displaying who is in a group

  1. From SMITTY, select Security and Users and press Enter.
  2. Select Groups and press Enter.
  3. Select Change / Show Characteristics of Groups and press Enter.
  4. Enter the name of the group to show a list of the members of the group.

Removing a user from a group

  1. From SMITTY, select Security and Users and press Enter.
  2. Select Groups and press Enter.
  3. Select Change / Show Characteristics of Groups and press Enter.
  4. Enter the name of the group to show a list of the members of the group.
  5. Delete the names of the users that you want to remove from the group.
  6. 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-name

Where 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-name

Where 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.



© IBM Corporation 1994, 2002. All Rights Reserved