Red Hat Bugzilla – Bug 1031093
Document that yp.conf is rewritten after booting the system
Last modified: 2013-12-13 21:52:59 EST
Description of problem:
After each boot, the /etc/yp.conf file is overwritten and the server name is lost/disappears. So, ypbind.service does not start.
Version-Release number of selected component (if applicable):
After each boot
Steps to Reproduce:
1. Use system-config-authentication to set the NIS domain and server or write them in the file /etc/yp.conf
3. ypbind.service do not start because the NIS server name disappears in the /etc/yp.conf file
the NIS server name disappears in the yp.conf file after reboot
the NIS server name stays in the yp.conf file in order to start correctly the ypbind.service
This is most probably caused by /etc/dhcp/dhclient.d/nis.sh, which is a script executed by dhclient and is expected to update /etc/yp.conf according to information from DHCP. In case you don't wish to update /etc/yp.conf by DHCP, you should define PEERNIS="no" in /etc/sysconfig/network. Does this change help in your case?
Thank you. It boots very well and quickly when I add the variable PEERNIS="no" to the file /etc/sysconfig/network.
However, I never add it before and it was always working with the previous releases. After a check on another PC with F18, this is what I have on /etc/sysconfig/network:
and my yp.conf looks like:
domain mynisdomain broadcast
With F20, what I have now is the following:
domain mynisdomain server mynisserver
(In reply to Benoît Gaurier from comment #2)
> However, I never add it before and it was always working with the previous
What I can say about ypbind is that its behaviour in this respect hasn't changed for a long time. So it seems to me like either something on network changed (e.g. DHCP configuration now sends NIS information, while it didn't before) or DHCP has some different behaviour.
Anyway, this functionality is not documented yet, so I'm going to add the following into ypbind(8) man page:
DHCP client by defualt changes /etc/yp.conf in case DHCP server sends NIS configuration in the respond. In that case /etc/dhcp/dhclient.d/nis.sh changes /etc/yp.conf according such configuration and creates a back-up copy of the original configuration file into /var/lib/dhclient/nis.conf.predhclient.$interface. In order to disable changing /etc/yp.conf by DHCP client, add PEERNIS=no into /etc/sysconfig/network.
ypbind-1.37.1-8.fc20 has been submitted as an update for Fedora 20.
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing ypbind-1.37.1-8.fc20'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
ypbind-1.37.1-8.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.