DOC PREVIEW
U of I CS 498 - Setting up NIS and HTTP

This preview shows page 1-2-3-4-5-6 out of 19 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 19 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 19 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 19 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 19 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 19 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 19 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 19 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

CS 498 Lecture 3Setting up NIS and HTTPJennifer HouDepartment of Computer Science University of Illinois at Urbana-ChampaignNetwork Information ServiceReading: 1. Linux NIS HOWTO: http://www.linux-nis.org/nis-howto/HOWTONIS OverviewNIS enables you to create user accounts that can be shared across all systems on your network.The user account is created only on the NIS server.NIS clients download the necessary login and password data from the NIS server to verify each user login.Configuring a Master NIS ServerStep 1: Set up the NIS domain name with the domainname command. Use groupi.cs498hou.uiuc.edu as the NIS domain name for the ith group. domainname groupi.cs498hou.uiuc.eduConfiguring a Master NIS ServerStep 2: Edit /var/yp/Makefile to determine what files you would like to share via NIS.z Search in /var/yp/Makefile the following placesGROUP = $(YPPWDDIR)/groupPASSWD = $(YPPWDDIR)/passwdall: passwd group hosts rpc services netid protocols mail \# netgrp shadow publickey networks ethers bootparams printcap \# amd.home auto.master auto.home auto.local passwd.adjunct \# timezone locale netmasksConfiguring a Master NIS ServerStep 3: Initialize the NIS database with/usr/lib/yp/ypinit -mAt this point, we have to construct a list of the hosts which will run NIS servers. m2 is in the list of NIS server hosts. Please continue to add the names for the other hosts, one per line. When you are done with the list, type a <control D>.next host to add: m2next host to add: <CTRL-D>Hosts added are put into the file /var/yp/ypservers.Alternatively, manually edit the /var/yp/ypservers file and then “cd /var/yp; make”Configuring a Master NIS ServerStep 4: Start the NIS serverz Use the command /sbin/chkconfig –level 345 ypservz Manually create a symbolic link from the runlevel 3 startup directory:cd /etc/rc.d/rc3.dln –s ../init.d/ypserv S60ypservln –s ../init.d/yppasswdd S61yppasswddIf 60 or 61 is already in use, use the next available number.z To start the daemons by hand, use the commands/etc/rc.d/init.d/ypserv start/etc/rc.d/init.d/yppasswdd startConfiguring an NIS ClientStep 1: Edit the file /etc/yp.conf# /etc/yp.conf - ypbind configuration file# Valid entries are#domain group1.cs498hou.uiuc.edu server m2.cs498hou.uiuc.edu# Use server HOSTNAME for the domain NISDOMAIN.##domain NISDOMAIN broadcast# Use broadcast on the local net for domain NISDOMAIN##ypserver HOSTNAME# Use server HOSTNAME for the local domain. The# IP-address of server must be listed in /etc/hosts.#Configuring an NIS ClientStep2: Edit the /etc/sysconfig/network file to set the NIS domain name at boot timeNISDOMAIN=groupi.cs498hou.uiuc.eduConfiguring a NIS Client Step 3: Edit the /etc/nsswitch.conf file. Search for the block of linespasswd: files nisplus nisshadow: files nisplus nisgroup: files nisplus nishosts: files nisplus nis dnsservices: nisplus [NOTFOUND=return] filesUse the file on the local machine to determine this Information, e.g., /etc/hosts, /etc/passwdStops searching if the informationHas not been found yetConfiguring an NIS ClientStep 4: Set up the client daemon to automatically start at boot time z Create a symbolic link cd /etc/rc.d/rc3.dln –s ../init.d/ypbind S60ypbindTesting the ClientSet up the domain name with the commandDomainname groupi.cs498hou.uiuc.eduStart the NIS client daemon, ypbind, with/etc/rc.d/init.d/ypbind startTest withz ypcat passwdConfiguring an NIS Secondary ServerEdit the /var/yp/ypservers file so that the slave server you are setting up is included in the list.On the slave server, run the command/usr/lib/yp/ypinit –s masterwhere master is the hostname for the NIS master server.Error message “Trying ypxfrd … not running” occur, because we have not set the NIS master server to run the YP map transfer daemon rpc.ypxfrd.Configuring an NIS Secondary ServerOn the master server, edit the makefile z Comment out NOPUSH=“True”#NOPUSH=“True”DOMAIN=‘/bin/domainname’.On the NIS master server, runcd /var/yp; make allto force all the maps to be rebuilt and pushed to slave servers.On the NIS slave server, change the /etc/yp.conf file to set the upserver to point to the slave server.HTTPReading:1. Red hat Linux 9: Red Hat Linux Reference Chapter 10 Apache HTTP Server2. Red Hat Linux 9: Red Hat Linux Customization Guide Chapter 19 Apache HTTP Server ConfigurationDirectives in Apache Configuration File/etc/httpd/conf/httpd.confDirectivesz Listen: identifies the ports on which the Web server will accept incoming requests. By default, the Apache HTTP Server is set to listen to port 80 for non-secure Web communications and (in the /etc/httpd/conf.d/ssl.conf which defines any secure servers) to port 443 for secure Web communications. z ServerRoot: sets the top-level directory which contains the server's files. Both the secure server and the non-secure server set the ServerRootdirective is set to "/etc/httpd".Directives in Apache Configuration FileDirectivesz User: sets the user name of the server process and determines what files the server is allowed to access. By default User is set to apache. z Group: specifies the group name of the Apache HTTP Server processes. By default Group is set to apache. z ServerAdmin: sets the email address of the Web server administrator. This email address will show up in error messages on server-generated Web pages. A common way to set up ServerAdmin is to set it to [email protected]. Then alias webmaster to the person responsible for the Web server in /etc/aliases and run /usr/bin/newaliases.Directives in Apache Configuration FileDirectivesz ServerName: sets a hostname and port number (matching the Listen directive) for the server. TheServerName does not need to match the machine's actual hostname. However, the value specified in ServerName must be a valid Domain Name Service (DNS) name that can be resolved by the system.z DocumentRoot: sets the directory which contains most of the HTML files which is served in response to requests. The default is the /var/www/html directory.Directives in Apache Configuration FileDirectivesz Directory <Directory /path/to/directory> and </Directory> tags create what is referred to as a container and are used to enclose a group of configuration directives meant to apply only to a particular directory and its subdirectories. <Directory /> Options FollowSymLinks IndexesAllowOverride


View Full Document

U of I CS 498 - Setting up NIS and HTTP

Documents in this Course
Lecture 5

Lecture 5

13 pages

LECTURE

LECTURE

39 pages

Assurance

Assurance

44 pages

LECTURE

LECTURE

36 pages

Pthreads

Pthreads

29 pages

Load more
Download Setting up NIS and HTTP
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Setting up NIS and HTTP and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Setting up NIS and HTTP 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?