Changes

Jump to: navigation, search

OPS335 NIS Lab

83 bytes added, 17:28, 5 September 2011
no edit summary
FOCUS[[Category: OPS335]][[Category:OPS335 Labs]]==NIS (Network Information Services) ==NIS server is used for password authentication.In this lab you will set up your Fedora PC as both an NFS and NIS server. You will then install one VM guest that will serve as your NFS and NIS client.===PART A: Setting up your NFS Server===#Power up your Fedora host PC (f13), login as joker and make sure it is connected to the Internet.#Ensure your host is updated with "yum update".#Ensure your host has the default desktop firewall setup. Verify with "iptables-save" command.#Ensure NFS is installed with "yum install nfs-utils".#Edit your /etc/exports file and insert this line
In this lab you will set up your Fedora PC as both an NFS and NIS server /home 192. You will then install one VM guest that will serve as your NFS and NIS client168.122.*(rw,root_squash)
*Modify your firewall to allow NFS connections. NFS uses port 2049.*Start your NFS server with the command service nfs start===PART AB: Setting up your NFS NIS Server===*Install the NIS server and client onto your f13 host PC yum install ypserv ypbind*Add the following line to the bottom of the file /etc/sysconfig/network NISDOMAIN="foo.bar" YPSERV_ARGS="-p 783"*Edit the file /etc/yp.conf and set up your domain: domain foo.bar server 127.0.0.1*Edit the file /etc/nsswitch.conf and add "nis" to three lines: passwd: files nis shadow: files nis group: files nis
Power up your Fedora host PC (f13), login as joker and make sure it is connected to the Internet.Ensure your host is updated with "yum update".Ensure your host has the default desktop firewall setup. Verify with "iptables-save" command.Ensure NFS is installed with "yum install nfs-utils".Edit your /etc/exports file and insert this line /home 192.168.122.*(rw,root_squash) Modify your firewall to allow NFS connections. NFS uses port 2049.Start your NFS server with the command service nfs start Now move on to PART B.PART B: Setting up your NIS ServerInstall the NIS server and client onto your f13 host PCyum install ypserv ypbind Add the following line to the bottom of the file /etc/sysconfig/network NISDOMAIN="foo.bar" YPSERV_ARGS="-p 783" Edit the file /etc/yp.conf and set up your domain:domain foo.bar server 127.0.0.1 Edit the file /etc/nsswitch.conf and add "nis" to three lines:passwd: files nis shadow: files nis group: files nis Create the file /var/yp/securenets: host 127.0.0.1
255.255.255.0 192.168.122.0
*Enable and start the NIS password (yppasswdd) service.*Enable and start the NIS (ypserv) service.*Enable and start the NIS map transfer (ypxfrd) service.*Verify that your servers are running correctly with the following command:  rpcinfo -p *Now change to directory /var/yp and run this command  make 
Enable and start the NIS binding (ypbind) service.
Use the following command to verify your NIS server is working - you should see joker's password record.
Test your configuration with the "ypcat passwd" command. You should see both joker's and clown's password records. NOTE: Clown's record is coming from your Fedora host because there is no clown user on your VM guest.
Logout of joker and login as clown on your VM. NOTE: You may have to login as "other" if clown's name does not show up on the login screen.
PART E: (Questions):==Completing the Lab==Answer the following questions.#What is your full name and 9-digit Seneca student ID?#What is the function of the /etc/nsswitch.conf file?#What is the purpose of the "-p" option to the rpcinfo command?#Explain, in your own words, what the "make" command did in PART B step 10.#Explain the syntax/meaning of the two records in the /var/yp/securenets file.#What was the output of the "ypcat passwd" command from PART D, step 5?#Explain, in your own words, the function of the portmapper service as seen in the "rpcinfo -p" command. Hint: Use Wikipedia.#What did your final firewall on the host look like. Use iptables-save.
1
edit

Navigation menu