Linux下NIS客户端机器不能使用普通用户(非root用户)登录!
2011-12-16 21:10
2206 查看
现象:
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服务端的/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 使用 SecureCRT shell 明确登录机器和用户,防止误操作
- linux普通用户不能登录图形界面/关机自动跳到输入密码的登陆界面
- linux 下普通用户python-pandas模块不能使用的问题
- 普通用户不能登录linux图形界面,只有root用户可以登录到图形界面
- linux 普通用户 root用户无法使用第三方工具正常登录
- Linux禁止普通用户使用su 切换到root 用户(并且禁止root ssh登录)
- linux 系统禁止普通用户登录的方法
- 使用SSH客户端远程登录Linux主机(可替代samba、ftp服务)
- linux实战考试题:批量创建用户和密码(不能使用循环)
- 使用mimipenguin实现从当前 Linux 用户转储登录密码
- oracle sqlpluw直接打开普通用户不能登录
- gentoo linux 普通用户不能使用alsa声卡的解决方法
- WinSCP 中普通用户以 root 身份登录 Linux
- Windows Server 2003中普通用户不能登录QQ的解决办法
- Linux下如何给登录到同一台机器的其他所有用户广播消息
- linux忘记密码使用单用户登录的方法
- linux环境下,普通用户使用service httpd restart 重启Apache失败
- LINUX中怎样限制不能使用FTP的用户
- 【Linux使用及问题解决】用户登录时显示 -bash-4.2$ 问题
- Linux普通用户使用sudo权限启停apache服务