ypbind NIS issue CentOS7
Re: ypbind NIS issue CentOS7
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 ~]#
[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 ~]#
Re: ypbind NIS issue CentOS7
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
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
Re: ypbind NIS issue CentOS7
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.
[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.
Re: ypbind NIS issue CentOS7
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
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
Re: ypbind NIS issue CentOS7
Rather than re-starting ypbind, I suggest that you stop it, then make sure there are no ypbind processes running, then re-start it.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.
I have found that if a ypbind process fails to bind, it keeps running, but prevents any other ypbind processes from binding.
Re: ypbind NIS issue CentOS7
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.
[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.
Re: ypbind NIS issue CentOS7
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.
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.
Re: ypbind NIS issue CentOS7
Thank you so much. This resolve my issue and ypbind is working fine now. I really appreciate your response.
Re: ypbind NIS issue CentOS7
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.