System Administration Guide: Security Services

Creating or Changing a Rights Profile

To create or change a rights profile, you must either assume a role that has the Primary Administrator rights profile assigned to it, or run the User Tool Collection as root user if roles have not yet been set up. To learn more about rights profiles, see RBAC Roles and Configuring Recommended Roles.

How to Create or Change a Rights Profile by Using the Rights Tool
  1. Start the Rights tool.

    To run the Rights tool, you need to start the Solaris Management Console as described in How to Assume a Role in the Console Tools. Then, open the User Tool Collection, and click the Rights icon.

    After the Rights tool starts, the icons for the existing rights profiles are displayed in the view pane.

  2. Take the appropriate action for creating or changing a rights profile:

    • To create a new rights profile, select Add Right from the Action menu.

    • To change an existing rights profile, click the rights profile icon and select Properties from the Action menu (or simply double-click the rights profile icon).

    Both actions display a version of the Rights Properties dialog box. The Add Right version (which follows) has a writable Name field. The standard Rights Properties dialog box has a read-only Name field because the name of a rights profile cannot be changed after it has been defined.

    Figure 6–5 Add Right Dialog Box

    Dialog box titled Add Right shows the Help pane, and at the right the tabs for General, Supplementary Rights, Commands, and Authorizations.

  3. Type the new information. Click OK to save the rights profile.

    The following table lists the tabs and fields in the Right Properties dialog box.

    Tab 

    Field 

    Field Description 

    General 

    Name 

    Name of the new rights profile. 

     

    Description 

    Description of the new rights profile. 

     

    Help File Name 

    Name of the HTML help file for the new rights profile. 

    Commands 

    Add Directory 

    Opens a dialog box for adding directories that are not already in the Commands Denied or Commands Permitted columns. 

     

    Commands Denied / Commands Permitted 

    Assigns or removes a rights profile's commands. 

     

    Set Security Attributes

    Opens a dialog box for assigning or removing a command's security attributes, that is, real or effective UIDs or GIDs (see Figure 6–6).


    Note –

    Assigning effective IDs is preferred over assigning real IDs. Use real IDs only when they are required by the command, such as pkgadd.


     

    Find (command) 

    Searches the two command lists for the specified string. 

    Authorizations 

    Authorizations Excluded / Authorizations Included 

    Assigns or removes a rights profile's authorizations. 

    Supplementary Rights 

    Rights Excluded / Rights Included 

    Assigns or removes a rights profile's supplementary rights profiles. 

    Figure 6–6 Adding Security Attributes to Commands

    Dialog box titled Set Security Attributes shows the help and the fields for adding a command to a right, and for specifying the command's IDs.


Example 6–2 Creating a New Rights Profile With the Rights Tool

The data in the following table shows sample data for a hypothetical rights profile that is called “Restart” could be created. The example rights profile, Restart, has the commands in the subdirectory /etc/init.d assigned to it. These commands have an effective UID of 0. This rights profile would be useful for administrators who are permitted to stop and start the daemons in /etc/init.d.

Tab 

Field 

Example 

General 

Name 

Restart 

 

Description 

For starting and stopping daemons in /etc/init.d

 

Help File Name 

Restart.html

Commands 

Add Directory 

Click Add Directory, type /etc/init.d in the dialog box, and click OK.

 

Commands Denied / Commands Permitted 

Select /etc/init.d and click Add to move the command to the Commands Permitted column.

 

Set Security Attributes 

Select /etc/init.d, click Set Security Attributes, and set Effective UID = root (see Figure 6–6).

 

Find (command) 

 

Authorizations 

Authorizations Excluded / Authorizations Included 

 

Supplementary Rights 

Rights Excluded / Rights Included 

 


How to Change Rights Profiles From the Command Line
  1. Become superuser or assume a role with the PrimaryAdministration rights profile.

  2. Use the subcommand of smprofile that is appropriate for the task.

    This command requires authentication. You can apply the command to all name services. smprofile runs as a client of the Solaris Management Console server.

    • To add a new profile, use smprofile with the add subcommand.

    • To change an existing profile, use smprofile with the modify subcommand.