NIS client in a Jail
moray at oltrelinux.com
Sun Feb 26 10:17:11 PST 2006
I have a small server in my lan with FreeBSD 5.4-RELEASE-p11 that, among
others, is running a NIS server correctly configured.
I then configured a jail (as a virtual server) where I intend to run
Apache and where I would like to use NIS to let (some) of the host users
in instead of creating users also in the jail.
Googling around and reading various jail-howto I noticed that the
rcpbind daemon should not be run in the jail, but of course I need it to
run in the jail to have ypbind running.
Anyway, the client does not work, it tries to connect to the NIS server
but it times out and, at this point, I am not really sure if it is
possible to run it in a jail.
I actually managed to get it run once...but, with the same identical
configuration, once stopped the jail and rebooted the machine it didn't
The jail can resolve names and network works, here is its rc.conf:
Is there anything wrong? (linc is of course the host machine)
The hosted machine NIS server and Jail configuration in rc.conf:
jail_enable="YES" # Set to NO to disable starting of any jails
jail_list="shelob" # Space separated list of names of jails
thnx in advance for your help.
On the host machine I managed to get almost all running services
listening on the phisical interface IP address, I couldn't manage to get
mountd, nmdb, rcpbind and the yp* services to listen only on that IP.
Inside the jail I got the following messages in /var/log/messages:
Feb 26 18:43:59 shelob /usr/sbin/ypbind: could not read from
child: Interrupted system call
Investigating ypbind.c it turned out to be an error caused by a read or
write from a pipe...
I stopped ypbind on the host machine and the error (in the jail)
disappeared...I guess ypbind is not really ready for jail isn't it?
More information about the freebsd-net