Showing posts with label NIS. Show all posts
Showing posts with label NIS. Show all posts

Tuesday, June 5, 2007

NIS done

You can find me on founders AND/OR merion green, playing frisbee because I finally figured out NIS and everything and have logged onto the network on a repaved ubuntu 7.04 system. I will document my steps once I do it again just to be sure I have everything exactly


This is what it would look like if jamie and I were *actually* on merion green and *not* working


Peace.

Monday, June 4, 2007

NIS

This didn't work exactly but... I followed the following sequence to connect to the NIS server:

1.
sudo apt-get install nis
entered cs.haverford.edu as the domain

2. initialize the NIS database via:
cd /var/yp
sudo make

3. restart NIS via:
sudo /etc/init.d/nis restart

On moe just to be sure everything was right I did a
cd /var/yp
make
to push maps from master server

back on the client machine I did a ypwhich and it correctly declared: "moe.cs.haverford.edu"


Still when I try to log into the names after a system reboot, I can not log into the server. I'll keep trying...


I first used this page and then I finished with this other one which was very helpful.

Friday, May 25, 2007

system-update NIS

On a computer with a sequential system-update to the latest version of ubuntu, to get it working back on the network all I had to do was :

I typed
sudo apt-get install portmap nfs-common
>>this installed the NFS packages needed to link NFS and NIS
and I was able to log into burns as my user name


In other news, I found this site that looks very helpful with setting up NIS. I need to find out the following things:

first configure the nsswitch.conf file (name service)

The site gives the following example:

# /etc/nsswitch.nis:
#
# An example file that could be copied over to /etc/nsswitch.conf; it
# uses NIS (YP) in conjunction with files.
#
# "hosts:" and "services:" in this file are used only if the
# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.
# the following two lines obviate the "+" entry in /etc/passwd and /etc/group.
passwd: files nis
group: files nis
# consult /etc "files" only if nis is down.
hosts: nis [NOTFOUND=return] files
networks: nis [NOTFOUND=return] files
protocols: nis [NOTFOUND=return] files
rpc: nis [NOTFOUND=return] files

ethers: nis [NOTFOUND=return] files
netmasks: nis [NOTFOUND=return] files
bootparams: nis [NOTFOUND=return] files
publickey: nis [NOTFOUND=return] files
netgroup: nis
automount: files nis
aliases: files nis
# for efficient getservbyname() avoid nis
services: files nis
sendmailvars: files
The site also gives an example of what the nsswitch.files should look like.