The following procedures describe how to add users to the sysadmin group for each name service. If you have access to the Solstice AdminSuite software, you should use Group Manager instead of these procedures to add users to the sysadmin group.
Log in to a system in your NIS+ domain as an authorized user with read and write access rights to the group table.
Save the group table to a temporary file.
$ niscat group.org_dir > /var/tmp/group-file |
Edit the file, adding the users you want to authorize to use the Solstice AutoClient software.
The following sample shows users added to the sysadmin entry in the group file.
. . . sysadmin::14:user1,user2,user3 nobody::60001: noaccess::60002: |
In this example,
|
user1,user2,user3 |
Represent the user IDs you are adding to the sysadmin group. |
Merge the file with the NIS+ group table.
$ /usr/lib/nis/nisaddent -mv -f /var/tmp/group-file group |
The results of the merge are displayed.
Remove the temporary file.
$ rm /var/tmp/group-file |
Verify that the user is a member of the sysadmin group by entering the following commands. Perform this step for each user you added to the file.
# su - user1 $ groups staff sysadmin $ exit |
Log in as root on the NIS master server.
Edit the group file (the default directory location is /etc).
Add a comma-separated list of members to the sysadmin group.
. . . sysadmin::14:user1,user2,user3 |
The directory location of the group file is specified in the NIS makefile using the $DIR variable. Consult this file if you are uncertain of the location of the group file.
Change directory to the location of the NIS makefile (the default is /var/yp) and remake the NIS map.
# cd /var/yp # make group |
Depending on the size of the NIS map, it may take several minutes or several hours to update the maps and propagate the changes throughout the network.
(Optional) If the NIS master server is running the Solaris 1.x OS Release, create a .rhosts entry in the root (/) directory on the NIS master server for users authorized to modify NIS maps. Use the following format:
host-name user-name |
Use this procedure if you will use the Solstice AutoClient software on the local system only.