[AIX Solaris HP-UX Linux Windows]

将概要文件所有权授予非 root 用户

安装者可以创建概要文件并将概要文件目录的所有权分配给非 root 用户,以便非 root 用户可以对特定的概要文件启动产品。

开始之前

本任务假定您基本熟悉 manageprofiles 命令和系统命令。

此任务使用下列术语:
  • Root users 指:
    • [Linux][HP-UX][Solaris][AIX]root 用户
    • [Windows]管理员
  • Non-root users 指:
    • [Linux][HP-UX][Solaris][AIX]非 root 用户
    • [Windows]非管理员
  • Installer 是指 root 用户或非 root 用户。

必须安装产品,然后才能创建概要文件。

关于此任务

请安装者执行以下步骤,以创建概要文件并指定概要文件目录和日志目录的所有权。所有权将被授予与安装者标识不同的非 root 用户标识。非 root 用户必须能够访问这些目录才能启动产品。

以下示例创建缺省概要文件。

为了打印方便,此命令被拆分为多行。

过程

  1. 通过从命令提示符发出以下代码来创建概要文件:
    [Linux][HP-UX][Solaris][AIX]
    ./manageprofiles.sh -create -profileName profile01 -profilePath
    app_server_root/profiles/profile01 -templatePath 
    app_server_root/profileTemplates/default 
    [Windows]
    manageprofiles.bat -create -profileName profile01 -profilePath 
    app_server_root\profiles\profile01 -templatePath 
    app_server_root\profileTemplates\default 
  2. 将 profile01 概要文件目录的所有权更改为 user1 非 root 用户。
    [Linux][HP-UX][Solaris][AIX]例如,发出以下命令:
    chown -R user1 app_server_root/profiles/profile01
    [Windows]按照 Windows 文档中的指示信息执行操作,以将下列目录的访问权授予 user1:
    app_server_root\profiles\profile01
  3. 将 profile01 概要文件的日志目录的所有权更改为 user1 非 root 用户,以防止日志消息显示到控制台。
    [Linux][HP-UX][Solaris][AIX]发出以下命令:
    chown -R user1 app_server_root/logs/manageprofiles/profile01
    [Windows]按照 Windows 文档中的指示信息执行操作,以将下列目录的访问权授予 user1:
    app_server_root\logs\manageprofiles\profile01

结果

安装者已创建缺省概要文件并已将概要文件目录和日志目录的所有权更改为非 root 用户。

下一步做什么

作为安装者,可继续创建概要文件并根据需要将所有权授予非 root 用户。

非 root 用户标识可管理多个概要文件。请让同一非 root 用户标识管理整个概要文件,不管是 Deployment Manager 概要文件、包含应用程序服务器和 Node Agent 的概要文件还是定制概要文件都是如此。可对单元中的每个概要文件使用不同的用户标识,不论全局安全性或管理安全性是处于启用还是禁用状态。用户标识可以同时包含 root 用户和非 root 用户标识。例如,root 用户可管理 Deployment Manager 概要文件,而非 root 用户可管理包含应用程序服务器和 Node Agent 的概要文件,反之亦然。但是,root 用户或非 root 用户通常可管理单元中的所有概要文件。

非 root 用户可使用 root 用户使用的任务来管理概要文件。


指示主题类型的图标 任务主题



时间戳记图标 最近一次更新时间: last_date
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-dist&topic=tpro_rootpro_nonroot_own
文件名:tpro_rootpro_nonroot_own.html