[AIX Solaris HP-UX Linux Windows]

chutils 命令

可以使用 chutils 命令将整个安装的文件所有权和许可权设置为与执行初始安装的用户不同的所有者或组。

注意事项和局限性:
  • WebSphere® Application Server V8.0 及更高版本随附的 chutils 命令不适用于 WebSphere Application Server V7 及之前版本的安装, WebSphere Application Server V7 及之前版本随附的 chutils 命令也不适用于 WebSphere Application Server V8.0 及更高版本的安装。
  • [Windows]chutils 命令在 Windows 操作系统上不可用。
  • chutils 命令应该由 root 用户运行。
  • 运行 chutils 命令时,可以同时指定多个选项。
  • 无法使用 chutils 命令来修改 app_server_root 的父目录的许可权。

    例如,如果 app_server_root 位于用户 A 的主目录中,而 root 用户使用 chutilsapp_server_root 的所有权更改为用户 B,那么用户 B 可能仍然无法访问 app_server_root,这是因为此目录仍然是用户 A 的主目录中的子目录。

  • 虽然可以提升组许可权以使其与所有者许可权匹配,但是无法使用 chutils 命令来修改所有者许可权或全局许可权。

位置

chutils 命令位于以下目录:
app_server_root/instutils

语法

chutils 命令语法如下所示:
chutils.sh
  -installlocation=installation_directory
  -setowner=user_name
  -setgroup=group_name
  -setmod=[reset | grp2owner | patchperm]
  -help
  -debug

参数

下列选项可用于 chutils 命令:

-installlocation=installation_directory
指定安装根目录的绝对路径

除非您当前位于 app_server_root 中,否则必须指定此参数。

-setowner=user_name
将每个文件和目录的所有者都设置为现有用户
-setgroup=group_name
将每个文件和目录的组设置为现有组
-setmod=[reset | grp2owner | patchperm]
设置对文件和目录的许可权
  • reset

    将所有者许可权、组许可权和其他许可权重置为缺省值 755

  • grp2owner

    将组许可权设置为与所有者许可权匹配

    限制: 如果要以组方式使用修订包来更新产品,请勿使用 chutils -setmod=grp2owner 来设置许可权。在这种情况下,请使用 chutils -setowner=user_name
  • patchperm

    在 WebSphere Application Server V8.0 及更高版本中不执行任何操作

-help
显示帮助
-debug
显示其他运行时信息

指示主题类型的图标 参考主题



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