Solaris CIFS Administration Guide

ProcedureHow to Remove a User Mapping Rule

The idmap command enables you to remove a rule-based mapping that you created.

  1. Become superuser, assume an equivalent role, obtain the solaris.admin.idmap.rules RBAC authorization, or use the “Idmap Service Management” RBAC profile.

    Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services. To configure a role with the Primary Administrator profile, see Chapter 2, Working With the Solaris Management Console (Tasks), in System Administration Guide: Basic Administration.

  2. Find the user mapping that you want to remove.

    # idmap list

    For example, to find all user mappings that map to the Solaris user pat, type:

    # idmap list | grep pat
  3. Remove one or more user mappings.

    • Remove any rule-based mapping that involves the specified user name, username.

      # idmap remove username
    • Remove rule-based mappings between username1 and username2.

      # idmap remove username1 username2
    • Remove all rule-based mappings.

      # idmap remove -a