HPUX的root帐号无法运行swinstall安装软件一例

HP-UX、Linux、Tru64 UNIX、NonStop、OpenVMS、Windows Server等,数据中心、虚拟化方案等

版主: xyevolve

版面规则
1. 本版是定位于惠普软件系统及解决方案的技术讨论区。
2. 本版鼓励发帖共同讨论技术问题,不鼓励站内信件私下交流,独知知不如众知知。
3. 本版允许转贴或引用他人的作品,但必须声明原作者信息。
4. 本版禁止发表出售、求购、或其他非技术讨论等帖子。
5. 本版禁止灌水,包括但不限于任何与所讨论主题无关的回复,无意义字符,直接复制其他回复等。
6. 本站附件禁止用于商业目的,请在下载后24小时内删除,本站不对其造成的结果负任何责任。
回复
头像
MUDBOY
创始人
帖子: 3877
注册时间: 2010年 12月 28日 21:17 星期二

HPUX的root帐号无法运行swinstall安装软件一例

帖子 MUDBOY » 2014年 7月 12日 16:36 星期六

系统是从另外一台同样的主机上通过DRD工具clone过来的。
当尝试安装新的软件时,有如下的错误
ERROR: "<host name>:/": You do not have permission for this
operation. The depot owner, system administrator, or
alternate root owner may need to use the "swreg" or "swacl"
command to give you permission. Or, to manage applications
designed and packaged for nonprivileged mode, see the
"run_as_superuser" option in the "sd" man page.
ERROR: "<host name>:/": This target agent cannot access the source.
Make sure the source depot is registered if it is remote from
the target or if you are non-superuser. Also ensure you have
read permission for the products on the source, the source is
not being updated, and swagentd is running on the source host.
The target agent logfile will contain precise failure
information; it is referenced below.
* The analysis phase failed for "<host name>:/".
* Analysis and Execution had errors.


ERROR: More information may be found in the agent logfile using the
command "swjob -a log <host name>-0432 @ <host name>:/".
想到可能是swinstall认为安装发生在了其他的机器上,因此提示没有权限?

因为swagentd会缓存主机名IP地址等,尝试重新启动服务
/sbin/init.d/swagentd stop
/sbin/init.d/swagentd start
没有效果

检查 /etc/nsswitch.conf也没有什么问题(dns为顺序files,dns)。

于是顺藤摸瓜,发现问题的根源是,系统在clone过来后使用了新的IP地址,但是/etc/hosts里面还是旧的IP地址

在更新/etc/hosts为新的IP地址后文件后,问题解决。
提倡分享之精神, 技术问题请在相关版面直接发帖, 站内短信恕不答复.
I don't answer private messages on topics of public interest, because it defeats the whole purpose of a message board.

回复