簡體   English   中英

無法使用非 root 用戶執行 imcl websphere 命令

[英]Unable to execute imcl websphere command with non-root user

我在 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.ZFC35FDC70D5FC69D2698883A8A

您能否讓我知道如何讓imcl命令以非 root 用戶身份運行,即user1而無需sudoroot用戶?

不幸的是,正如您已經指出的,您的 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。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM