ypbind NIS issue CentOS7

Issues related to configuring your network
mapatel
Posts: 10
Joined: 2014/08/12 19:58:37

Re: ypbind NIS issue CentOS7

Post by mapatel » 2014/08/19 13:58:16

SELinux is enabled. I tried disable it as well but still no luck.
[root@centos7test ~]# getsebool allow_ypbind
nis_enabled --> on
[root@centos7test ~]# sestatus
SELinux status: enabled
SELinuxfs mount: /sys/fs/selinux
SELinux root directory: /etc/selinux
Loaded policy name: targeted
Current mode: enforcing
Mode from config file: enforcing
Policy MLS status: enabled
Policy deny_unknown status: allowed
Max kernel policy version: 28
[root@centos7test ~]# getenforce
Enforcing
[root@centos7test ~]#

User avatar
TrevorH
Site Admin
Posts: 33218
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: ypbind NIS issue CentOS7

Post by TrevorH » 2014/08/19 14:32:00

To confirm that it is selinux related, did you try setenforce 0 then retry whatever it was that was failing? If it then works then it's an selinux problem, if it doesn't then it isn't.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

mapatel
Posts: 10
Joined: 2014/08/12 19:58:37

Re: ypbind NIS issue CentOS7

Post by mapatel » 2014/08/19 14:51:27

Tried setenforce 0 but still it fails.
[root@centos7test ~]# setenforce 0
[root@centos7test ~]# getenforce
Permissive
[root@centos7test ~]# service ypbind restart
Redirecting to /bin/systemctl restart ypbind.service
Job for ypbind.service failed. See 'systemctl status ypbind.service' and 'journalctl -xn' for details.

User avatar
TrevorH
Site Admin
Posts: 33218
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: ypbind NIS issue CentOS7

Post by TrevorH » 2014/08/19 14:52:54

So that eliminates selinux as the cause of whatever it is. Sorry, unable to help any more since I can only just spell NIS let alone know what it does or how.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Whoever
Posts: 1361
Joined: 2013/09/06 03:12:10

Re: ypbind NIS issue CentOS7

Post by Whoever » 2014/08/20 04:35:15

mapatel wrote:Tried setenforce 0 but still it fails.
[root@centos7test ~]# setenforce 0
[root@centos7test ~]# getenforce
Permissive
[root@centos7test ~]# service ypbind restart
Redirecting to /bin/systemctl restart ypbind.service
Job for ypbind.service failed. See 'systemctl status ypbind.service' and 'journalctl -xn' for details.
Rather than re-starting ypbind, I suggest that you stop it, then make sure there are no ypbind processes running, then re-start it.

I have found that if a ypbind process fails to bind, it keeps running, but prevents any other ypbind processes from binding.

mapatel
Posts: 10
Joined: 2014/08/12 19:58:37

Re: ypbind NIS issue CentOS7

Post by mapatel » 2014/08/21 18:24:38

Tried that option as well but still no luck.
[root@centos7test ~]# service ypbind stop
Redirecting to /bin/systemctl stop ypbind.service
[root@centos7test ~]# service ypbind start
Redirecting to /bin/systemctl start ypbind.service
Job for ypbind.service failed. See 'systemctl status ypbind.service' and 'journalctl -xn' for details.

yarash
Posts: 1
Joined: 2014/09/30 06:01:59

Re: ypbind NIS issue CentOS7

Post by yarash » 2014/09/30 06:03:48

I faced the same problem and found the solution:

The firewall on the NIS server is blocking all connections from the NIS client.

You can stop the firewall by:

service firewalld stop

The ypbind worked like a charm after that.

mapatel
Posts: 10
Joined: 2014/08/12 19:58:37

Re: ypbind NIS issue CentOS7

Post by mapatel » 2014/10/03 19:06:30

Thank you so much. This resolve my issue and ypbind is working fine now. I really appreciate your response.

Nanook
Posts: 14
Joined: 2007/08/27 09:48:39
Location: Shoreline, WA
Contact:

Re: ypbind NIS issue CentOS7

Post by Nanook » 2015/08/31 18:25:38

Does anyone know what port(s) you need to forward in the Firewall to make NIS work without disabling the firewall? I'd rather have the firewall up and still have NIS working and until very recently it did.

Post Reply