OpenSolaris 2008.11 Media Management System Administration Guide

Table of Contents

Setting Up User Access

You have the following options for controlling a user's access:

  • Assign RBAC profiles to users. A profile is a set of authorizations for a typical activity.
  • Assign authorizations to users. This controls access with precision.
  • Assign a combination of profiles and authorizations. Use profiles for common activities and assign specific authorizations to specific users as required. See About User Access for descriptions of each profile and authorization.

How To Assign a Profile to a User Account

Edit the /etc/security/prof_attr file to assign a profile to an account.
To assign a profile:

  1. Log in with superuser access.
  2. Open the file in a text editor, for example:
    vi /etc/security/prof_attr 
  3. Enter the following text:

    account_name::::type=normal;profiles=profile_name

    For example, to assign the MMS User profile to the account LEE1108:

    LEE1108::::type=normal;profiles=MMS User
    
  4. Save and exit the editor.
  5. Verify the assignment.

    % profiles account_name

    In the example, the resulting RBAC profile:

    MMS User
    Basic Solaris User
    All
    

How to Assign an Authorization to an Account

You can assign the authorization to perform a specific operation in addition to the set of authorizations defined in a profile. To add an authorizations:

  1. Log in with superuser access.
  2. Edit the file in a text editor.
     vi /etc/security/prof_attr
  3. Add the name of the specific authorization. The following example adds the solaris.mms.io. authorizations to the account LEE1108.*
    LEE1108::::type=normal;auths=solaris.mms.io.* 
  4. Save and exit the editor.
  5. Verify the profile assignment.

    % profiles account_name

    Basic Solaris User
    All
    
  6. Verify the authorizations for the user.

    % auths account_name

    solaris.mms.io.*,...