安装者可以创建概要文件并将概要文件目录的所有权分配给非 root 用户,以便非 root 用户可以对特定的概要文件启动产品。
开始之前
本任务假定您基本熟悉 manageprofiles 命令和系统命令。
此任务使用下列术语:
- Root users 指:
- Non-root users 指:
- Installer 是指 root 用户或非 root 用户。
必须安装产品,然后才能创建概要文件。
关于此任务
请安装者执行以下步骤,以创建概要文件并指定概要文件目录和日志目录的所有权。所有权将被授予与安装者标识不同的非 root 用户标识。非 root 用户必须能够访问这些目录才能启动产品。
以下示例创建缺省概要文件。
为了打印方便,此命令被拆分为多行。
过程
- 通过从命令提示符发出以下代码来创建概要文件:
![[Linux]](../images/linux.gif)
![[HP-UX]](../images/hpux.gif)
![[Solaris]](../images/solaris.gif)
![[AIX]](../images/aixlogo.gif)
./manageprofiles.sh -create -profileName profile01 -profilePath
app_server_root/profiles/profile01 -templatePath
app_server_root/profileTemplates/default
![[Windows]](../images/windows.gif)
manageprofiles.bat -create -profileName profile01 -profilePath
app_server_root\profiles\profile01 -templatePath
app_server_root\profileTemplates\default
- 将 profile01 概要文件目录的所有权更改为 user1 非 root 用户。
![[Windows]](../images/windows.gif)
按照 Windows 文档中的指示信息执行操作,以将下列目录的访问权授予 user1:
app_server_root\profiles\profile01
- 将 profile01 概要文件的日志目录的所有权更改为 user1 非 root 用户,以防止日志消息显示到控制台。
![[Windows]](../images/windows.gif)
按照 Windows 文档中的指示信息执行操作,以将下列目录的访问权授予 user1:
app_server_root\logs\manageprofiles\profile01
结果
安装者已创建缺省概要文件并已将概要文件目录和日志目录的所有权更改为非 root 用户。
下一步做什么
作为安装者,可继续创建概要文件并根据需要将所有权授予非 root 用户。
非 root 用户标识可管理多个概要文件。对于给定概要文件,请让同一非 root 用户标识管理整个概要文件。
非 root 用户可使用 root 用户使用的任务来管理概要文件。