Help with NIS on ubuntu 22.04
Michael Fitoussi
Michael.Fitoussi at mobileye.com
Tue Aug 23 13:29:22 UTC 2022
Hi Steve
Issue solved:
rather than using :
RUN /etc/init.d/nis restart
I use now:
RUN /etc/init.d/rpcbind restart \
&& /etc/init.d/ypbind restart \
&& /etc/init.d/yppasswdd restart
BTW, I had to remove YPBINDARGS=-no-dbus as stated in
https://bugs.launchpad.net/ubuntu/+source/nis/+bug/1925229
-----Original Message-----
From: Steve Langasek <steve.langasek at ubuntu.com>
Sent: Friday, August 12, 2022 11:55 PM
To: Michael Fitoussi <Michael.Fitoussi at mobileye.com>
Cc: ubuntu-motu at lists.ubuntu.com
Subject: Re: Help with NIS on ubuntu 22.04
Hi Michael,
On Fri, Aug 12, 2022 at 09:48:51AM +0000, Michael Fitoussi wrote:
> Hello
> I've a docker image based FROM ubuntu:18.04
> At the end of the image, I've:
> # Configure NIS
> COPY yp.conf /etc/yp.conf
> COPY nsswitch.conf /etc/nsswitch.conf
> COPY default-nis /etc/default/nis
> COPY common-session /etc/pam.d/common-session RUN echo 'mobileye' >
> /etc/defaultdomain RUN /etc/init.d/rpcbind restart RUN /etc/init.d/nis
> restart
> All is fine and I can see in the build output:
> Step 53/55 : RUN /etc/init.d/nis restart
> ---> Running in 0fe8684241e3
> * Stopping NIS services
> ...done.
> * Starting NIS services
> * binding to YP server...
> * ....
> * ....
> * ....
> * ....
> * ....
> * ....
> * ....
> * ....
> * ....
> * ....
> ...fail!
> ...done.
> However, when migrating to FROM ubuntu:22.04, the /etc/init.d/nis
> doesn't exists
> I've tried to replace it with:
>
> * RUN /etc/init.d/ypxfrd restart
> * RUN /etc/init.d/ypbind restart
> * RUN /etc/init.d/ypbind reload
> * ...
> but nothing helped to have my tpclient binded to my ypserver
>
> Any help / external link / other will be greatly appreciated.
>
> Thanks a lot
I'm sorry, but this is not a user support forum. You should probably refer to /usr/share/doc/nis/NEWS.Debian.gz in the 22.04 version of the nis package which explains what changes the Debian maintainer has made and how users are expected to configure/use the packages in the new version. Failing that, you can try asking on https://askubuntu.com. However, these packages are pass-through from Debian, not anything that is actively maintained by the Ubuntu community, so your mileage may vary as far as support is concerned.
--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
Ubuntu Developer https://www.debian.org/
slangasek at ubuntu.com vorlon at debian.org
More information about the Ubuntu-motu
mailing list