Solstice AutoClient 2.1 Administration Guide

Adding Users to the sysadmin Group

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.

How to Add a User to the sysadmin Group Using NIS+

  1. Log in to a system in your NIS+ domain as an authorized user with read and write access rights to the group table.

  2. Save the group table to a temporary file.


    $ niscat group.org_dir > /var/tmp/group-file
    
  3. 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. 

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

  5. Remove the temporary file.


    $ rm /var/tmp/group-file
    

Verification of Adding Users to the sysadmin Group

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

How to Add a User to the sysadmin Group Using NIS

  1. Log in as root on the NIS master server.

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

    Note -

    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.


  3. Change directory to the location of the NIS makefile (the default is /var/yp) and remake the NIS map.


    # cd /var/yp
    # make group
    

    Note -

    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.


  4. (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
    

How to Add a User to the sysadmin Group Without a Name Service

Use this procedure if you will use the Solstice AutoClient software on the local system only.

  1. Become root on your system.

  2. Edit the /etc/group file.

    Add a comma-separated list of members to the sysadmin group.


    .
    .
    .
    sysadmin::14:user1,user2,user3