Lesson 4 presents the CHGROUP command:
changing groups by logging on
changing groups with the CHGROUP command
There are two ways to change the group that you are accessing.
At the colon prompt, use HELLO to log on again and specify the group that you want to be in.
At the colon prompt, use the CHGROUP command and specify the group that you want to be in.
Logging on |
 |
Logging on to another group certainly works, but it is time-consuming and uses a lot of system resources.
For example, this is how you would log on to your OTHERGRP group:
HELLO username.acctname,OTHERGRP
|
Now, using your logon identity, log on to your home group:
HELLO username.acctnameReturn
|
Recall that your home group is your logon default.
Using the CHGROUP command |
 |
The CHGROUP command allows you to switch from one group to another without logging on again.
To see which group you are in, enter:
Switch into your PUB group by entering:
Use SHOWME to discover which group you are now in. You should be logged on to the PUB group now.
 |
 |  |
 |
 | NOTE: If a group in your account is protected with a password, you will be prompted for that password. You must correctly provide the password in order to access that group. You will not be prompted for a password when changing back to your home group. |
 |
 |  |
 |
Use the CHGROUP command now to switch into OTHERGRP.
Enter:
Now enter:
Which group are you in now? You should be logged on to OTHERGRP now.
Lesson 4 Exercises |
 |
Name the two methods of changing groups from within your account?
Choose either method to change into another group within your account. Check to see if you were successful. Get back into your home group.
Repeat step 2 using the other method.