在 Oracle Solaris 11.2 中使用统一归档文件进行系统恢复和克隆

退出打印视图

更新时间: 2014 年 7 月
 
 

如何配置管理统一归档文件的角色

有关使用角色的更多信息,请参见在 Oracle Solaris 11.2 中确保用户和进程的安全 中的为用户指定权限

  1. 成为管理员。

    有关更多信息,请参见在 Oracle Solaris 11.2 中确保用户和进程的安全 中的使用所指定的管理权限

  2. 创建新权限配置文件。

    以下示例将两个现有权限配置文件添加到新的配置文件中。

    # profiles -p new-profile
    profiles:new-profile> set desc="description"
    profiles:new-profile> add profiles="Unified Archive Administration"
    profiles:new-profile> add profiles="Zone Security"
    profiles:new-profile> commit; end; exit
      
  3. 创建使用新权限配置文件的角色。

    在此步骤中,我们还将为新角色设置口令。

    # roleadd -c "comment" -m -K profiles"new-profile" new-role
    # passwd new-role
    Password: xxxxxxxx
    Confirm password: xxxxxxxx
  4. 将新角色分配给用户。
    # usermod -R +new-role user