Changes

Jump to: navigation, search

OPS335 NIS Lab

594 bytes added, 19:19, 14 July 2016
no edit summary
== OBJECTIVE & PREPARATION==
* Before beginning this lab ensure the firewall is set up according to the previous labs.
* Add a new user to your '''vm2''' with the same name as the one you created on '''vm3''' in lab 4b, but use a different password.
* Download and run the [http://matrix.senecac.on.ca/~peter.callaghan/files/OPS335/nfs.bash nfs.bash] script on each of your machines. This will make '''vm2''' an nfs server sharing the home directories held there with the other vms. It will also make the other vms automatically try to mount the home directories held on '''vm2''' into their own filesystem as soon as they boot.
* An NIS server is used to synchronize system files and other information between machines in an NIS domain.
* In this lab you will set a VM as an NIS server and share user information (names, groups, and passwords) with your other VM's.
*Use the following command to verify your NIS server is working - you should see your learnid password record.
ypcat passwd
*Add a new user with the same name as the one you created on '''vm3''' in lab 4b, using a different password.
*Run 'ypcat passwd' again.
*Note that the new user does not appear. In order for the new user to show up you will need to recreate the map files- change directory to /var/yp and run the "make" command again.
*Save and exit the file.
*Ensure ypbind will start at boot and restart the vm.
*Note that a recent bug is making machines with ypbind running take extraodinarily long to shut down.
*Log into vm3 as the new user. You should now be able to use the password stored on '''vm2'''.
*Back on '''vm2''' change the password for the new user and rebuild the maps. Try to log into '''vm3''' with the old password; it should now require the changed password.
932
edits

Navigation menu