7.3 Shell Script - Copying OS X groups into Macintosh Manager |
|
|
Macintosh Manager controls log-ins from Mac OS 9 clients. It also allows administrators to assign system rights to MM users & MM workgroups. Before a MM user can log in, he must be assigned to at least one workgroup. If you spend time organising users into groups for OS X - it can be quite dissapointing to find that you have to do it all again in Macintosh Manager for Mac OS 9. This is because Mac OS X groups are not imported into MM when you import users - meaning MM Workgroups have to be set up separately. Macintosh Manager does allow you to import WorkGroup information from a file - so if we could export the Mac OS X groups we would have the problem licked. The following describes how to use a script (provided) to export group information into a text file compatible with the Macintosh Manager import function. |
|
| Make sure that you are logged into the server as "root". | |
| Copy the script "lsgroups.sh" into roots' home directory (/private/var/root/Documents). | ![]() |
| Start a new shell. | |
|
Change directory to roots' home directory, type:
|
![]() |
|
Make sure that the execute flag is set on the script "lsgroups.sh" by typing:
|
![]() |
|
Execute the "lsgroups.sh" script by typing the following:
...the script will print several lines containing the following information:
|
![]() |
|
Execute the "lsgroups.sh" script again, but this time redirect the output to a file by typing the following:
...this command will tell the script to save all group information to the file "mmgroups.txt" |
![]() |
|
The resulting file "mmgroups.txt" should now be imported into Macintosh Manager. |
![]() |
| Launch "Macintosh Manager.app". | |
| Enter the administrators name and password into the authentication box. | |
| Click on "Users" tab, and then click on the "Import all" button. | |
|
User names will be imported from the server. |
|
| Select "Import User List..." from the "File" menu. | |
| Select the workgroup users text file and click the "Import" button. | |
|
Click on "Name #1" in the "Available Fields" list, then click on the "Add >" button. "Name #1" should appear in the "Import" list. Next, click on "WorkGroup" in the "Available Fields" list, then click on the "Add >" button. "WorkGroup" should appear in the "Import" list. |
|
|
Click on "Open Sample Import..." button to check the import. A sample import will be displayed.
Click the "OK" button to close this sample screen. |
|
|
If you are not happy with the sample import click the "Cancel" button. ...Otherwise, click the "OK" button to begin importing the WorkGroup info. |
|
| Mac OSX server - tech notes - © 2002 by Mark J Swift - msw AT blackpool.ac.uk | |