Home > Articles > Operating Systems, Server > Solaris

  • Print
  • + Share This
Like this article? We recommend

Like this article? We recommend

Chapter 5: Appendix 1--RBAC Example Instructions

This appendix contains four procedures useful for configuring RBAC:

  • Starting the Solaris Management Console Tools

  • Installing a Role

  • Creating a New Rights Profile

  • Adding a Rights Profile to a Role

Starting the Solaris Management Console Tools

This section demonstrates how to run the User Tool collection.

  1. Start the launcher from the command line by typing smc& or by clicking the Solaris Management Console icon in the Tools subpanel in the CDE front panel.

  2. The main window is displayed. No tools will be available until a toolbox has been loaded, and the user has been authenticated.

    If this is the first time using the Solaris Management Console program, click in the view pane for the online help overview. The online help provides context-sensitive help for both individual fields and general help topics.

  3. Navigate to the toolbox that covers the scope in which the change is to be made.

  4. If the system is new, the only toolbox available is the one that covers the local server (This Computer). Otherwise, one of the toolboxes for the other scope may be selected. Toolboxes are defined using the toolbox editor.

  5. Click on the toolbox icon and System Configuration folder to open them, and then click on the User collection icon.

  6. The authentication dialog box is displayed. It is required prior to the initial loading of all SMC tools and tool collections.

  7. Provide authentication and click the OK button.

  8. To make changes when the roles are not yet installed, enter root and the root password. Root can run all the tools.

    If no roles are assigned to you, enter your name and password to get access to those tools permitted for normal users.

    If any roles are assigned to your account, select a role (or no role) and click Login with Role or Login without Role (Figure 12), and authenticate yourself in the dialog box that is displayed.

Figure 12 Role Login Dialog with Role Option Menu Displayed.

Installing a Role

This section explains how to install a role. If the Primary Administrator role (or a similarly powerful role that can create other roles) is installed, assume this role, as shown in Step 4 in the previous section; otherwise enter authentication for root.

  1. After the user collection has been loaded, double-click the Administrative Roles icon.

  2. The Administrative Roles icon (with the other user tools) is displayed in the view pane and also in the navigation pane (although it may be necessary to click the turner icon to the left of the Users icon to display the user tools).

  3. Select Add Administrative Role from the Actions menu.

  4. This starts the Add Administrative Role wizard, a series of dialog boxes requesting information necessary for configuring a role. The first dialog box is "Step 1: Enter a role name." See Figure 13.

  5. Enter the short version of the role name and the other identification information, and click Next.

  6. Click the mailing list button to create an alias of users who can assume this role.

  7. In the "Step 2: Enter a role password" dialog box, enter the password in the Role Password field and again in the Confirm Password field. Then click Next.

  8. Confirmation helps prevent a misspelled password from being saved.

    Figure 13 Add Administrative Role Wizard.

  9. In the "Step 3: Enter role rights" dialog box, select the rights profiles to be assigned to this role. Then click Next.

  10. This is done by double-clicking the desired rights profiles in the Available Rights column. The rights profiles in the Granted Rights columns are the ones that are assigned to this role. To configure the suggested roles, assign the rights profile of the same name to that role. All the necessary rights profile assignments have been prepackaged. For example, the Primary Administrator rights profile would be assigned to the Primary Administrator role.

  11. In the "Step 4: Select a home directory" dialog box, specify the server and path for the home directory. Then click Next.

  12. In the "Step 5: Assign users to this role" dialog box, enter the login names for any users that are to be assigned to this role. Then click Next.

  13. Any users that are added must be defined in the same scope in which you are working.

    If you selected the e-mail alias in the "Step 1: Enter a role name" dialog box, these users will receive e-mail addressed to the role.

  14. Check the information in the Review dialog box. Click the Finish button if the information is correct.

  15. If there is missing or incorrect information, click the Back button successively to display the dialog box where the incorrect information is displayed.

Creating a New Rights Profile

This section demonstrates how to create a new rights profile. In this example, a rights profile named Restart is created. It sets EUID=0 for all commands in the /etc/init.d directory. This rights profile would be useful for roles like Operator or System Administrator that need to start and stop daemons.

  1. Click the Rights tool icon to begin the process of creating a new rights profile.

  2. The Rights tool is loaded.

  3. Select Add Right from the Action menu.

  4. The Add Right dialog box is displayed, set to the General tab.

  5. In the General tab, enter the name of the new profile "Restart," the Description "For running initialization and termination scripts for daemons in the /etc/init.d directory," and a help file name "Restart.html."

  6. Click the Commands tab.

  7. The command assignment fields are displayed. The Commands Denied column (on the left) permits directories and commands to be selected for the rights profile. The Commands Permitted column (on the right) is empty at this point, because it is a new rights profile. The control buttons between the columns are for assigning or removing commands or changing the order of assigned commands. The Add Directory button allows a new directory to be added to the left column.

  8. Click the Add Directory button, enter the name of the directory "/etc/init.d" in the resulting dialog box, and click the OK button in the dialog box.

  9. The /etc/init.d directory now appears in the left column.

  10. Select the /etc/init.d directory in the left column and click the Add button between the two columns.

  11. The /etc/init.d directory and its contents are moved to the right column and thus are assigned to the new rights profile. This includes any future commands added to the directory.

  12. With the /etc/init.d directory selected, click the Set Security Attributes button at the bottom of the right column.

  13. The dialog box for setting UIDs and GIDs is displayed (Figure 14).

    Figure 14 Setting Security Attributes.

  14. With the Effective button selected for User Ownership, enter 0 in the User field, click the Apply button, and then the Close button.

  15. The security attribute "EUID=0" is added to all commands in the /etc/init.d directory.

  16. Click OK at the bottom of the Add Right dialog box.

  17. The dialog box is closed and the Restart rights profile is now available in the Rights tool.

Adding a Rights Profile to a Role

This section demonstrates how to add a rights profile to an existing role.

  1. Click the Administrative Roles icon in the navigation pane.

  2. The Roles tool is loaded. It displays the existing roles in the View pane.

  3. Double-click the Sysadmin role (or some other test role).

  4. The Roles Properties dialog for making changes to roles is displayed.

  5. Click the Rights tab in the dialog box.

  6. The rights selection fields for assigning rights are displayed.

  7. Find and double-click the Restart rights profile in the Available Rights column.

  8. The Restart rights profile is moved to the Granted Rights column, which assigns it to this role.

  9. Click OK in the Roles Properties dialog.

  10. The assignment is saved. Thus, a new rights profile named Restart has been created, with all commands in the /etc/init.d directory set to EUID=0, and it has been assigned to an existing role.

  • + Share This
  • 🔖 Save To Your Account