Setting up NIS and HTTP. Network Information Service Reading: 1. Linux NIS HOWTO: howto/HOWTOhttp://www.linux-nis.org/nis-

Slides:



Advertisements
Similar presentations
1 Dynamic DNS. 2 Module - Dynamic DNS ♦ Overview The domain names and IP addresses of hosts and the devices may change for many reasons. This module focuses.
Advertisements

1 Configuring Internet- related services (April 22, 2015) © Abdou Illia, Spring 2015.
NIS Consistent configuration across the network. Why NIS? Primary reason is to provide same user configuration across the network Users go any machine.
Linux+ Guide to Linux Certification, Second Edition Chapter 14 Network Configuration.
Linux+ Guide to Linux Certification, Second Edition Chapter 15 Configuring Network Services and Security.
1 Configuring Web services (Week 15, Monday 4/17/2006) © Abdou Illia, Spring 2006.
Layer 7- Application Layer
NIS – Network Information System WeeSan Lee
Configuring a Web Server. Overview  Understand how a Web server works  Install IIS (Internet Information Services) and Apache Web servers  Examine.
CP476 Internet Computing Browser and Web Server 1 Web Browsers A client software program that allows you to access and view Web pages on the Internet –Examples.
70-293: MCSE Guide to Planning a Microsoft Windows Server 2003 Network, Enhanced Chapter 7: Planning a DNS Strategy.
Apache : Installation, Configuration, Basic Security Presented by, Sandeep K Thopucherela, ECE Department.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Application Layer Functionality and Protocols Network Fundamentals – Chapter.
APACHE SERVER By Innovationframes.com »
Linux Operations and Administration
1 Linux Networking and Security Chapter 3. 2 Configuring Client Services Configure DNS name resolution Configure dial-up network access using PPP Understand.
Linux+ Guide to Linux Certification, Third Edition
DHCP. DHCP (Dynamic Host Configuration Protocol) is a network service that enables clients to obtain network settings (IP Address, Subnet Mask, Default.
Web Server Configuration Alokes Chattopadhyay Computer & Informatics Centre IIT Kharagpur.
The Linux Operating System Lecture 5: Apache Tonga Institute of Higher Education.
A Practical Guide to Fedora and Red Hat Enterprise Linux Unit 10: Basic Apache Configuration and Management Chapter 26: Apache (httpd): Setting Up a Web.
Lecture – Single Login NIS and Winbind. NIS Network Information Service (NIS) is the traditional directory service on UNIX platforms Still widely used.
Apache Server The Apache Server Apache is a WWW server that implements the HTTP protocol. Apache runs as a daemon. This means that it is a resident.
Name Resolution Domain Name System.
Chapter 10 Intro to Routing & Switching.  Upon completion of this chapter, you should be able to:  Explain how the functions of the application layer,
Connecting to Network. ♦ Overview ► A network connection is required to communicate with other computers when they are in a network. Network interface.
An introduction to Apache. Different Types of Web Servers Apache is the default web server for may Unix servers. IIS is Microsoft’s default web server.
Final Project – NFS and NIS jwbai. Computer Center, CS, NCTU 2 Goal master.passwd passwd group netgroup amd.conf userA, /nis/home/userA userB, /nis/home/userB.
1 Linux Basics for Networking. 2 Module - Linux Basics for Networking ♦ Overview This module focuses on the basics of networking using Redhat Enterprise.
ITI-481: Unix Administration Meeting 5. Today’s Agenda Network Information Service (NIS) The Cron Program Syslogd and Logging.
SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.
1 Apache. 2 Module - Apache ♦ Overview This module focuses on configuring and customizing Apache web server. Apache is a commonly used Hypertext Transfer.
Course ILT Internet/intranet support Unit objectives Use the Internet Information Services snap-in to manage IIS, Web sites, virtual directories, and WebDAV.
ITI-481: Unix Administration Meeting 3. Today’s Agenda Hands-on exercises with booting and software installation. Account Management Basic Network Configuration.
Linux+ Guide to Linux Certification Chapter Fifteen Linux Networking.
Linux+ Guide to Linux Certification, Second Edition Chapter 14 Network Configuration.
Ruby on Rails CSE 190M, Spring 2009 Week 6. Overview How to use a database Demo creating a blog application on Rails Explain how the application works.
Centralized logins with NIS Eric Stolten Tim Meade Mark Sidnam.
1 Electronic Messaging Module - Electronic Messaging ♦ Overview Electronic messaging helps you exchange messages with other computer users anywhere in.
New SA Training Topic 6: Service Management Our organization takes advantage of many service type to provide functionality to users and ease management.
Application Layer Khondaker Abdullah-Al-Mamun Lecturer, CSE Instructor, CNAP AUST.
Cosc 4750 Configuring httpd, Mysql, And Samba. defaults By default httpd demean will startup and work User directories are turned off Default directory.
CIS 192B – Lesson 3 Network Information Services.
1 Internet Network Services. 2 Module - Internet Network Services ♦ Overview This module focuses on configuring and customizing the servers on the network.
LinuxChix Apache. Serving Webpages The layer 7 protocol (HTTP) is what our browsers talk to get us the websites we can't seem to live without. HTTP is.
Networking in Linux. ♦ Introduction A computer network is defined as a number of systems that are connected to each other and exchange information across.
1/14 Char 18 Sharing System Files Content –NIS(The Network Information Service) –NIS+
Exercise 4 – NFS and NIS Announced Date: 2007/12/11 Due Date: 2007/12/25.
1 Network Information System (NIS). 2 Module – Network Information System (NIS) ♦ Overview This module focuses on configuring and managing Network Information.
Linux Operations and Administration
Linux Operations and Administration
Web Server Administration Chapter 6 Configuring a Web Server.
Web Server Administration Chapter 4 Name Resolution.
Web Server Apache PHP HTTP Request User types URL into browser Address resolved if nec. We use directly Most browsers request.
CITA 310 Section 4 Apache Configuration (Selected Topics from Textbook Chapter 6)
Multi-Domain Hosting CPTE 212 “Missing Slides” for 1/22/2015 John Beckett.
Web Server Administration Chapter 6 Configuring a Web Server.
Chapter 7: Using Network Clients The Complete Guide To Linux System Administration.
APACHE Apache is generally recognized as the world's most popular Web server (HTTP server). Originally designed for Unix servers, the Apache Web server.
Chapter 17: Sharing System Files Stephen Workman.
Chap-I Network and System Configuration in Linux
Unix System Administration
NIS Concepts and Configuration
INSTALLING AND SETTING UP APACHE2 IN A LINUX ENVIRONMENT
Configuring Internet-related services
Final Project Announce: Due:
Announced Date: 2006/12/20 Due Date: 2007/1/3
APACHE WEB SERVER.
Network Information Service
Presentation transcript:

Setting up NIS and HTTP

Network Information Service Reading: 1. Linux NIS HOWTO: howto/HOWTOhttp:// howto/HOWTO

NIS Overview NIS 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 Server Step 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.edu

Configuring a Master NIS Server Step 2: Edit /var/yp/Makefile to determine what files you would like to share via NIS. Search in /var/yp/Makefile the following places GROUP = $(YPPWDDIR)/group PASSWD = $(YPPWDDIR)/passwd all: 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 netmasks

Configuring a Master NIS Server Step 3: Initialize the NIS database with /usr/lib/yp/ypinit -m At 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. next host to add: m2 next host to add: 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 Server Step 4: Start the NIS server Use the command /sbin/chkconfig –level 345 ypserv Manually create a symbolic link from the runlevel 3 startup directory: cd /etc/rc.d/rc3.d ln –s../init.d/ypserv S60ypserv ln –s../init.d/yppasswdd S61yppasswdd If 60 or 61 is already in use, use the next available number. To start the daemons by hand, use the commands /etc/rc.d/init.d/ypserv start /etc/rc.d/init.d/yppasswdd start

Configuring an NIS Client Step 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 Client Step2: Edit the /etc/sysconfig/network file to set the NIS domain name at boot time NISDOMAIN=groupi.cs498hou.uiuc.edu

Configuring a NIS Client Step 3: Edit the /etc/nsswitch.conf file. Search for the block of lines passwd: files nisplus nis shadow: files nisplus nis group: files nisplus nis hosts: files nisplus nis dns services: nisplus [NOTFOUND=return] files    

Configuring an NIS Client Step 4: Set up the client daemon to automatically start at boot time Create a symbolic link cd /etc/rc.d/rc3.d ln –s../init.d/ypbind S60ypbind

Testing the Client Set up the domain name with the command Domainname groupi.cs498hou.uiuc.edu Start the NIS client daemon, ypbind, with /etc/rc.d/init.d/ypbind start Test with ypcat passwd

Configuring an NIS Secondary Server Edit 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 master where 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 Server On the master server, edit the makefile Comment out NOPUSH=“True” #NOPUSH=“True” DOMAIN=‘/bin/domainname’. On the NIS master server, run cd /var/yp; make all to 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.

HTTP Reading: 1. Red hat Linux 9: Red Hat Linux Reference Chapter 10 Apache HTTP Server 2. Red Hat Linux 9: Red Hat Linux Customization Guide Chapter 19 Apache HTTP Server Configuration

Directives in Apache Configuration File /etc/httpd/conf/httpd.conf Directives 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. ServerRoot: sets the top-level directory which contains the server's files. Both the secure server and the non-secure server set the ServerRoot directive is set to "/etc/httpd".

Directives in Apache Configuration File Directives 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. Group: specifies the group name of the Apache HTTP Server processes. By default Group is set to apache. ServerAdmin: sets the address of the Web server administrator. This address will show up in error messages on server-generated Web pages. A common way to set up ServerAdmin is to set it to Then alias webmaster to the person responsible for the Web server in /etc/aliases and run /usr/bin/newaliases.

Directives in Apache Configuration File Directives ServerName: sets a hostname and port number (matching the Listen directive) for the server. The ServerName 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. 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 File Directives Directory and 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. Options FollowSymLinks Indexes AllowOverride None

AIM&IT Question & Answers Question & Answer for the session

AIM&IT Summary/ Conclusion Detailed Summary or Conclusion about Data Communication