Linux下NIS客户端机器不能使用普通用户(非root用户)登录!
来源:互联网 发布:卡诺普机器人编程 编辑:程序博客网 时间:2024/05/03 14:15
现象:
Linux机器上不能使用普通用户登录,登录时等待时间很长,不能登录,
手动挂载NIS服务端的/home目录时,出现如下错误:
do_ypcall: clnt_call: RPC: Unable to send; errno = Network is unreachable do_ypcall
检查发现该台机器是NIS客户机器。
解决:
启动NIS服务器的相关服务。
/etc/init.d/portmap start
/etc/init.d/ypserv start
/etc/init.d/yppasswdd start
启动NIS客户端的相关服务。
/etc/init.d/ypbind start
发现启动Failed!
检查NIS服务器的配置文件 /etc/ypserv.conf
# The following, when uncommented, will give you shadow like passwords.
# Note that it will not work if you have slave NIS servers in your
# network that do not run the same server as you.
# Host : Domain : Map : Security
#
# * : * : passwd.byname : port
# * : * : passwd.byuid : port
127.0.0.0/255.0.0.0 : * : * : none
10.10.104.0/255.255.255.0 : * : * : none
192.168.0.0/255.255.255.0 : * : * : none
* : * : * : deny
然后查看客户机器的IP地址,发现不在以下网段内:
10.10.104.0/255.255.255.0
192.168.0.0/255.255.255.0
检查发现客户机器网卡eth1没启动,该网卡的IP地址在网段 192.168.0.0/255.255.255.0 内。
于是启动网卡eth1,然后再启动客户端的NIS相关服务。
[root@gd87 ~]# /etc/init.d/ypbind start
Binding to the NIS domain:
Listening for an NIS domain server.
然后客户机器便可以使用普通用户登录。
- Linux下NIS客户端机器不能使用普通用户(非root用户)登录!
- Linux 下Tomcat非root用户不能使用80端口
- 普通用户不能登录linux图形界面,只有root用户可以登录到图形界面
- Linux中ROOT用户删除普通用户报普通用户已登录
- ssh普通用户(非root用户)的密钥登录
- ssh普通用户(非root用户)的密钥登录
- Linux禁止普通用户使用su 切换到root 用户(并且禁止root ssh登录)
- Linux下普通用户切换到root用户
- Linux下非root用户使用串口
- RedHat linux 下修改tomcat为80端口(非root用户不能使用80端口)
- linux 普通用户 root用户无法使用第三方工具正常登录
- Linux下root用户可以su普通用户,普通用户却su不到root的原因
- Linux 普通用户伪装root用户
- 解决Linux下FTP不能使用root登录的办法
- linux下普通用户切换为root用户的方法
- Linux下rsh服务配置,root用户和普通用户
- linux下如何从普通用户切换到root用户
- Linux下如何从普通用户切换到root用户
- Android中的BatteryService及相关组件
- 我的csdn第二课,不错
- 8种人混职场难有大出息
- 通过socket接收数据并进行解析内存数据
- linux添加与删除
- Linux下NIS客户端机器不能使用普通用户(非root用户)登录!
- 笑脸
- 失落的心情
- 素数 约数 欧拉函数 筛法
- Vlingo欲进中国语音服务市场 对抗苹果Siri
- javascript中的window对象
- 最小二乘法代码(matlab 中polyfit函数原型)
- 从 sqlserver中读取数据(http://www.cnblogs.com/NeverEver/archive/2008/02/02/1062730.html)
- libevent 参考手册-前言