Changes

Jump to: navigation, search

OPS335 Lab 7 2018

302 bytes added, 01:10, 1 April 2019
INVESTIGATION 2: CLIENT CONFIGURATION
== OBJECTIVE & PREPARATION==
* Add a new user to your '''host''' 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 your '''host''' an nfs server sharing the home directories held there with the vms. It will also make the vms automatically try to mount the home directories held on '''host''' into their own filesystem as soon as they boot. reboot the VMs now and make sure this is working before continuing.
* An NIS server is used to synchronize system files and other information between machines in an NIS domain.
*The machine will essentially be communicating with its own NIS server when using the Makefile
*Now change to directory /var/yp and run this command to build the information databases
make('''NOTE: '''If you receive a "Domain name cannot be (none)" message, restart ''rhel-domainname'' and try again.)
*Enable and start the NIS binding (ypbind) service.
systemctl start ypbind.service
*Use the following command to verify your NIS server is working - you should see your learnid the password recordfor your own user account.
ypcat passwd
*Add a new user to your '''host''' with the same name as the one you created on '''vm3''' in lab 4b, but use 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.
 
== INVESTIGATION 2: CLIENT CONFIGURATION ==
domain <senecaid>.ops server 192.168.x.1
*Start the ypbind server with the command.
systemctl start ypbind.service('''NOTE: ''' If you receive an error about rpcbind, ensure "NM_CONTROLLED=no" is removed from your ifcfg file and restart that interface.)
*Looking at your logs ensure that ypbind is registered with rpcbind, if it is unable your firewall may need to be adjusted.
*Now when you run the following command:
===Online Submission (Peter Callaghan's Classes only)===
Follow the instructions for lab 8 7 on moodleblackboard.
===In Class Submission(Murray Saul's Classes only)===
::<span style="color:green;font-size:1.5em;">&#x2713;</span>Download the labcheck7.bash checking bash shell script by issuing the command:<br><br>'''wget http://matrix.senecac.on.ca/~peter.callaghan/files/OPS335/labcheck7.bash'''<br><br>set execute permission and run the shell script on your '''host''' machine.
::*For '''Peter's classes''', follow his Online Submission instructions in Moodle.
::*For '''Murray's classes''', run command (piping to the '''more''' command) and show output to instructor.
::<span style="color:green;font-size:1.5em;">&#x2713;</span>Completed Lab8 Lab7 log-book notes.
== EXPLORATION QUESTIONS ==

Navigation menu