LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Install NIS on ubuntu (http://www.linuxquestions.org/questions/linux-newbie-8/install-nis-on-ubuntu-889505/)

ashu2188 07-02-2011 12:53 AM

Install NIS on ubuntu
 
Hi guys..

I am trying to instalol NIS and when i just simply install it
i get this erorr

Starting NIS services * binding to YP server... * .... * .... * .... * .... * .... * .... * .... * .... * .... * .... [fail]
I tried to find the solution but didn't find any proper one.
Still facing the issue,
Can anybody help with this?

frieza 07-02-2011 02:05 AM

it's been a while since i've used NIS so i don't remember the specifics, however you have to install and configure ypserv on the machine that is going to be used as the NIS server, then you can run and configure the NIS clients.

Shahnawaz Uqaili 07-02-2011 02:05 AM

Hello ashu2188 and welcome to LQ,

After the YP binding fails you need to edit /etc/default/nis and set NISSERVER.

Once you have done this, run /usr/lib/yp/ypinit -m

Once this is complete you can run /etc/init.d/nis start with no errors.

Hope this works for you.

Kind Regards

Shahnawaz Uqaili

ashu2188 07-03-2011 02:13 AM

It didn't help buddy..!

Still facing the same problem...

ashu2188 07-03-2011 02:15 AM

Quote:

Originally Posted by Shahnawaz Uqaili (Post 4402191)
Hello ashu2188 and welcome to LQ,

After the YP binding fails you need to edit /etc/default/nis and set NISSERVER.

Once you have done this, run /usr/lib/yp/ypinit -m

Once this is complete you can run /etc/init.d/nis start with no errors.

Hope this works for you.

Kind Regards

Shahnawaz Uqaili



can you just help me with installing yupserv on unbuntu (Backtrack5)?
when i issue apt-get install ypserv
it says it didn't find the package. I guess if i can install ypserve , the issue can be solved.

chrism01 07-03-2011 07:57 PM

I'll pass on the Ubuntu specific part, but this is a good guide to NIS, may help you check/debug stuff http://www.linuxhomenetworking.com/w...onfiguring_NIS
Incidentally, NIS is unencrypted; are you sure this is a good idea? You may want to consider LDAP instead, which has an encryption option http://www.linuxhomenetworking.com/w...DAP_and_RADIUS

corby 11-09-2012 05:54 PM

Turns out NIS installation on apt-get systems is rather bugged.
What it misses is the configuration of the /etc/yp.conf file.

Add the following line to the bottom of your /etc/yp.conf file.

domain <your domain> server <your NIS server>


Then rerun the nis service and it should be ok.


All times are GMT -5. The time now is 10:50 AM.