resolve.conf引起登录HPUX的CDE故障
故障
从xmanager登录HPUX的CDE出现:
Choose [OK] to return to the login screen. Select Failsafe Session.... Check to see that the desktop is properly installed, the hostname is correct (/etc/hosts) and that the network is properly configured.
谷歌搜索发现是nsswitch.conf问题,CDE找不到登录机器的hostname所致。
解决
- 进入sam
- 选择网络设置-->name service switch
默认为先从DNS查找,再从hosts文件查找; - 更改hosts条目的source的顺序:
应为先从hosts文件查找,再从DNS查找;
按按
更新完不用重启,再进去CDE,正常。