【问题标题】:Unable to execute imcl websphere command with non-root user无法使用非 root 用户执行 imcl websphere 命令
【发布时间】:2020-04-27 15:16:46
【问题描述】:

我正在 Linux 服务器上使用非 root 用户尝试 websphere imcl 命令,但出现以下错误:

$ /was/IBM/InstallationManager/eclipse/tools/imcl listAvailablePackages -repositories /was/setup/repository.config

CRIMC1018E ERROR: Administrator privileges are required.

Explanation: You started the Installation Manager in administrator mode, but you do not have the required administrator privileges. On Microsoft Windows XP Professional, you must be a member of an administrator group. On Windows Vista, Windows 2008, Windows 7, Windows 8, and Windows 10, you must use the Run as administrator option. On Linux, UNIX, Mac OS X, IBM i, and z/OS, you must have root privileges.

User Action: To use the Run as administrator option on Windows:
1. Right-click the executable icon.
2. Select Run as administrator.
3. Enter an administrator password when prompted for either an administrator password or a confirmation.
4. Click Continue.
00:00.47 ERROR [main] com.ibm.cic.agent.core.application.HeadlessApplication run
  CRIMC1018E Administrator privileges are required.
  You started the Installation Manager in administrator mode, but you do not have the required administrator privileges. On Microsoft Windows XP Professional, you must be a member of an administrator group. On Windows Vista, Windows 2008, Windows 7, Windows 8, and Windows 10, you must use the Run as administrator option. On Linux, UNIX, Mac OS X, IBM i, and z/OS, you must have root privileges.
  To use the Run as administrator option on Windows:
  1. Right-click the executable icon.
  2. Select Run as administrator.
  3. Enter an administrator password when prompted for either an administrator password or a confirmation.
  4. Click Continue.

WebSphere 可能是使用 root 用户安装的,但我不确定。

但是,我检查了/was/var/IBM 以及其他文件夹权限。在我看来,它们都很好。

[user1@myhost~]$ ls -ld /var
drwxr-xr-x. 23 root root 4096 Apr 27 20:03 /var
[user1@myhost~]$ ls -ld /var/IBM
drwxr-xr-x 3 user1 was 33 Apr 16 13:20 /var/IBM
[user1@myhost~]$ ls -ld /was
drwxr-xr-x 4 user1 was 30 Apr 16 13:33 /was
[user1@myhost~]$ ls -ld /was/IBM
drwxr-xr-x 6 user1 was 151 Apr 23 18:53 /was/IBM
[user1@myhost~]$ ls -ltr /was/IBM/InstallationManager/eclipse/tools/imcl
-rwxr-xr-x 1 user1 was 71223 Apr 16 13:20 /was/IBM/InstallationManager/eclipse/tools/imcl
[user1@myhost~]$ ls -ltr /was/setup/repository.config
-rwxr-xr-x 1 user1 was 524 Mar  6 09:53 /was/setup/repository.config
[user1@myhost~]$ ls -ld /was
drwxr-xr-x 8 user1 was 91 Apr 27 14:04 /was
[user1@myhost~]$ ls -ld /was/setup
drwxr-xr-x 7 user1 was 4096 Apr 16 17:41 /was/setup

我知道我的 Installation Manager 是安装在 Administrator mode 而不是 Nonadministrator mode 中,但是是否有一些调整可以使它在 Nonadministrator mode 中工作,以便该命令与 user1 一起工作?

https://www.ibm.com/support/knowledgecenter/en/SSSHTQ_8.1.0/com.ibm.netcool_OMNIbus.doc_8.1.0/omnibus/wip/install/task/omn_ins_im_installing_im_gui.html

您能否告诉我如何让imcl 命令以非root 用户身份运行,即user1,而不需要sudoroot 用户?

【问题讨论】:

    标签: linux command-line websphere root privileges


    【解决方案1】:

    不幸的是,正如您已经指出的,您的 IM 是以 root 身份安装的。没有支持将 root 安装更改为非 root 的方法 - 请检查 - https://www.ibm.com/mysupport/s/question/0D50z000062kDOVCA2/change-installation-manager-user-to-nonroot?language=en_US

    所以你有 3 个选择:

    1. 继续使用 root 帐户执行任何与安装/更新相关的任务
    2. 为您的 user1 帐户配置 sudo,然后他将能够执行以下操作:sudo imcl... 如果您的系统管理员不想为您提供更多命令的 sudo,则可以为 imcl 配置 sudo。
    3. 在非 root 用户帐户上重新安装。

    对于选项 3,这取决于您已经使用该 IM 安装了多少产品,如果只是 WAS,则可能值得备份配置文件、删除所有配置文件、重新安装和恢复配置文件配置。如果您有更多产品或复杂产品,例如 BPM/BAW,那么我建议您继续使用选项 2。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-01-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-12-20
      • 2017-02-15
      相关资源
      最近更新 更多