Solaris 8下面的两个小问题

今帮助客户恢复系统后,出现了以下问题:

1、使用passwd更改root密码,提示:passwdutil.so:can't get domain错误。

2、solaris8下如何更改主机名。

第一个问题的产生是由于/etc/nsswitch.conf文件里使用的是NIS进行解析,所以在更改root密码时被拒绝了。只需把/etc/nsswitch.dns文件复制为/etc/nsswitch.conf文件,即可解决。

第二个问题在solaris8下修改主机名。这个不像solaris 10只需修改/etc/hosts、/etc/hostname.{接口名}和/etc/nodename就行了。对于solaris 7~solaris 9需要修改以下文件:

/etc/inet/hosts
/etc/nodename
/etc/hostname.<interface>

where <interface> is the name of the primary interface, e.g. bge0./etc/net/ticlts/hosts
/etc/net/ticots/hosts
/etc/net/ticotsord/hosts以上三个格式是统一的,只需加入主机名即可。格式是:<主机名> <主机名>
/etc/inet/ipnodes修改完成后,重启系统即可!!!
而对于solaris 7之前的版本,需要修改以下文件:/etc/inet/hosts
/etc/nodename
/etc/hostname.<interface>

where <interface> is the name of the primary interface, e.g. bge0./etc/net/ticlts/hosts
/etc/net/ticots/hosts
/etc/net/ticotsord/hosts 对于Solaris 10,修改以下文件:/etc/inet/hosts
/etc/nodename
/etc/hostname.<interface>

where <interface> is the name of the primary interface, e.g. bge0./etc/inet/ipnodes

Then reboot the system.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值