Changes

Jump to: navigation, search

OPS335 NIS Lab

89 bytes added, 14:39, 24 March 2014
Corrections to machine names/
==NIS (Network Information Services)==
* An NIS server is used to synchronize system files and other information between machines in an NIS domain.
* In this lab you will set up your a Fedora PC VM as both an NFS and NIS server. You will then use your other VM's to serve as your NFS and NIS clients.
{{Admon/important|Prerequisites|Before you begin make sure all your machines are up to date (yum update).
Ensure both host and VM's have firewalls set up according to prior labs and all labs have been completed.
Ensure that your NFS server is running on the host VM2 and exporting the '/home' directory. }}
===PART A: Setting up your NIS Server===
===PART B: Examining a Problem Solved by NIS===
*Ensure your VM03 is still mounting your home directory from VM 2 using autofs. If it is not , revisit last weeks lab.*Many of you had an issue last week when using NFS as you had differing GID & UID's between systems - when attempting to mount the home directory from the host VM2 you received various permission issues. In case you did not experience it, we will intentionally create this issue and then correct it with NIS.
*Run the following command
cat /etc/passwd | grep home
*Look at the existing users on VM 3 and compare them with the same users on VM 2. Find one whose credentials differ (if none doSpecifically, a user name that exists on both machines, but has a different UID). If you have no such user, create two)one.
*For example on VM 3:
[root@vm03 ~]# cat /etc/passwd | grep home
===Part D: Obtaining autofs maps through NIS:===
*Make sure autofs service is installed on your VM 3 (If you completed the nfs lab, it is). If it is not, go back and complete the NFS lab now.
*Copy the autofs files from vm03 VM3 to your VM 2VM2.
scp /etc/auto.{home,master} root@vm02:/etc/
*Edit /etc/auto.master on the host VM2 and remove the 'etc' prefix from auto.home's path:
/home auto.home --timeout=60
*Regenerate your NIS maps and run:
932
edits

Navigation menu