PDA

View Full Version : NIS masterserver configuration problem


_Pete_
May 17th, 2005, 04:02 AM
I have followed the instructions from here:

http://www.ubuntulinux.org/wiki/SettingUpNISHowTo

After doing the server setup I got errors like this:

petriai@machine:~$ ypcat passwd
ypcat: can't get local yp domain: Local domain name not set

root@machine:~ # ypcat passwd
ypcat: can't get local yp domain: Local domain name not set

What can be wrong ?

alastair
May 17th, 2005, 06:26 PM
I've been setting up a new server at work and NIS is one of its roles. I thought I had it done but had not tested it. I just did.

Some points :

the NIS domain name is stored in :

/etc/defaultdomain

On the server, once things are configured i.e.

/etc/ypserv.securenets
/etc/ypserv.conf

Make sure you create the maps and push them out i.e.

cd /var/yp
make

Or all at once :

(cd /var/yp ; make)

Seems to work for me.