Basic Service & Settings xclin. Computer Center, CS, NCTU 2 If you want to transfer a file…

Slides:



Advertisements
Similar presentations
INSTALLING LINUX.  Identify the proper Hardware  Methods for installing Linux  Determine a purpose for the Linux Machine  Linux File Systems  Linux.
Advertisements

Web Application Server Apache Tomcat Downloading and Deployment Guide.
1 Web Servers / Deployment Alastair Dawes Original by Bhupinder Reehal.
1 Configuring Internet- related services (April 22, 2015) © Abdou Illia, Spring 2015.
Homework 5b: Samba. Computer Center, CS, NCTU 2 Network-based File Sharing (1)  NFS (UNIX-based) mountd is responsible for mount request nfsd and nfsiod.
1 Configuring Web services (Week 15, Monday 4/17/2006) © Abdou Illia, Spring 2006.
Linux Security 資管研究生 劉順德. Outline General Security –Account –Local –Network –Patch Services Security –Sendmail –BIND/DNS –Apache –FTP Recent Linux security.
Chapter Apache Installation in Linux- Mandrake. Acknowledgment The following information has been obtained directly from
Apache : Installation, Configuration, Basic Security Presented by, Sandeep K Thopucherela, ECE Department.
Network File System Joe Paulowskey Joe Paulowskey Susan Mulholland Joe Woulfe.
Amazon EC2 Quick Start adapted from EC2_GetStarted.html.
Ssh: secure shell. overview Purpose Protocol specifics Configuration Security considerations Other uses.
Linux Operations and Administration
Booting and boot levels
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.
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.
System Administration HW2 - FTP, Samba, BT, ZFS jwbai.
VsFTP in Linux. Introduction to FTP The File Transfer Protocol (FTP) is used as one of the most common means of copying files between servers over the.
Basic Service & Settings pmli. Basic Service e.g. http, ftp, etc.
FTP Server and FTP Commands By Nanda Ganesan, Ph.D. © Nanda Ganesan, All Rights Reserved.
FTP File Transfer Protocol. Computer Center, CS, NCTU 2 FTP  FTP File Transfer Protocol Used to transfer data from one computer to another over the internet.
Linux Services Muhammad Amer. 2 xinetd Programs  In computer networking, xinetd, the eXtended InterNET Daemon, is an open-source super-server daemon.
Basic Router Configuration 1.1 Global configuration Cisco allows us to configure the router to support various protocols and interfaces. The router stores.
Web Server/Services Web Server/Services pyhsu. Computer Center, CS, NCTU 2 FAMP(FreeBSD+Apache+MySQL+PHP)  Apache 2.2 (40%) /usr/ports/www/apache22 apache22_enable="YES"
Introduction A security scanner is a software which will audit remotely a given network and determine whether bad guys may break into it,or misuse it.
FTP File Transfer Protocol. Computer Center, CS, NCTU 2 FTP  FTP File Transfer Protocol Used to transfer data from one computer to another over the internet.
System Administration HW2 - File System Server ylin.
System Administration HW2 - File System Server. Computer Center, CS, NCTU 2 FTP  Install a FTP server for FreeBSD Pure-FTPd: /usr/ports/ftp/pure-ftpd.
Linux Services Configuration
CCNA2 Chapter 2 Cisco IOS Software. Cisco’s operating system is called Cisco Internetwork Operating System (IOS) IOS provides the following network services:
Linux Operations and Administration
Linux Operations and Administration
System Administration Practice Homework6 - LDAP login + Puppet + Jail yench / lctseng / chchang2222.
VIRTUAL HOSTING WITH PureFTPd And MYSQL (Quota And Bandwidth Management) BY Odoh Kenneth Emeka Sun Yu Patrick Appiah.
FTP COMMANDS OBJECTIVES. General overview. Introduction to FTP server. Types of FTP users. FTP commands examples. FTP commands in action (example of use).
Integrity Check As You Well Know, It Is A Violation Of Academic Integrity To Fake The Results On Any.
Installing Applications in FreeBSD lctseng. Computer Center, CS, NCTU 2 Before we start  Permission issue root: the super user Like administrator in.
Unit – 5 FTP Server. FTP Introduction One of the oldest and most commonly used protocols The original specification for the File Transfer Protocol was.
Web Server/Services Web Server/Services huanghs. Computer Center, CS, NCTU 2 FAMP(FreeBSD+Apache+MySQL+PHP)  Apache 2.2 (35%) /usr/ports/www/apache22.
1 Figure 6-5: Turning Off Unnecessary Services Unnecessary Services  Operating system vendors used to install many services by default  This made them.
Day 15 Apache. Being a web server Once your system is correctly connected to the network, you could be a web server. –When you go to a web site such as.
Installing VERITAS Cluster Server. Topic 1: Using the VERITAS Product Installer After completing this topic, you will be able to install VCS using the.
Integrity Check As You Well Know, It Is A Violation Of Academic Integrity To Fake The Results On Any.
SSH. 2 SSH – Secure Shell SSH is a cryptographic protocol – Implemented in software originally for remote login applications – One most popular software.
LINUXCHIX WEBMAIL. Software run by an ISP or online service that provides access to send, receive, and review using only your Web browser. Users.
Chapter 7: Using Network Clients The Complete Guide To Linux System Administration.
Apache Web Server v. 2.2 Reference Manual Chapter 2 Starting Apache.
1 Dr. Tom Hicks Computer Science Department Trinity University 1.
Bullet Proof FTP Server © N. Ganesan, Ph.D.. Contributions Steven Fong Jennifer Abeywardena Phoung Co ChengYu Wang.
PRESENTED BY ALI NASIR BITF13M040 AMMAR HAIDER BITF13M016 SHOIAB BAJWA BITF13M040 AKHTAR YOUNAS BITF13M019.
FTP File Transfer Protocol hlku. Computer Center, CS, NCTU 2 FTP  FTP File Transfer Protocol Used to transfer data from one computer to another over.
LINUX - SAMBA
COP 4343 Unix System Administration
Chapter 9 Router Configuration (Ospf, Rip) Webmin, usermin Team viewer
LINUX ADMINISTRATION 1
DHCP server & Client Objectives Contents
Services & Settings.
Lab 1 introduction, debrief
Configuring Internet-related services
Web Servers / Deployment
Configuration Of A Pull Network.
Computer System Administration Homework 3 – File Server
Services & Settings.
System Administration HW3 - File System Server
System Administration Practice Homework2 - File System Server
APACHE WEB SERVER.
Services & Settings cyen.
System Administration HW2 - File System Server
Services Management frank.
Services & Settings lctseng.
Presentation transcript:

Basic Service & Settings xclin

Computer Center, CS, NCTU 2 If you want to transfer a file…

Computer Center, CS, NCTU 3 By MSN ?

Computer Center, CS, NCTU 4 By CS or NCTU’s Web ?  Upload to bsdX and download from  Quota is full!

Computer Center, CS, NCTU 5 By FTP Server Inside Your Windows ?  LAG  Die!  GG

Computer Center, CS, NCTU 6 With your own BSD

Configuration Files

Computer Center, CS, NCTU 8 Most Common Flow 1.Install  Package, ports and tar-ball 2.Configuration  Program specified config file  rc.conf 3.Startup 4.Maintenance

Computer Center, CS, NCTU 9 Configuration Files (1/3)  Local-installed programs’ configuration files can be found in /usr/local/etc Daemon → program-name.conf  dhcpd.conf user-program → program-namerc  wgetrc  tinrc  Default config file usually installed with.sample or.default suffix dhcpd.conf.sample or different suffix for different purpose php.ini-dist php.ini-recommended copy before use it

Computer Center, CS, NCTU 10 Configuration Files (2/3)  A program with many config files are usually located in /usr/local/etc/program-name/ apach22 postfix  Most config files have clear comment at the beginning or before each description  Most popular styles name value name = value Read documents to know each option’s meaning Example: proftpd.conf # Port 21 is the standard FTP port. Port 21 # To prevent DoS attacks, set the maximum # number of child processes to 30. ….. MaxInstances 30

Computer Center, CS, NCTU 11 Configuration Files (3/3)  Some with local effectiveness Markup language-like setting-for-this-path… Samba 、 rsync [xxxx] settings… [yyyy] settings….

RC Script

Computer Center, CS, NCTU 13 RC Script  Dependency between each service is described in header of the script  Rcorder is used to find out dependency ordering of each script  Each rc script define what to do when start/stop …  /etc/rc.subr defines what to do & check before/after start stop ….

Computer Center, CS, NCTU 14 How to use rc script(1/2)  Example ntpd >/etc/rc.d/ntpd Usage: /etc/rc.d/ntpd [fast|force|one](start|stop|restart|rcvar|status|poll)  Rcvar Display which rc.conf variable are used to control the startup of service Ex: ntpd_enable=“YES”  pidfile Record (master) process id of the service  Start  Stop  Restart Start + stop

Computer Center, CS, NCTU 15 How to use rc script(2/2)  Status Check the service is running or not  Relaod Reload configuration file if the service support  One fast force One  set rcvar = yes  Start the service even if XXXX_enable=NO Force  Set rcvar = yes and Fast  Skip pid check

Computer Center, CS, NCTU 16 Local installed service  After install a service by ports, ports will display This port has installed the following startup scripts which may cause these network services to be started at boot time. /usr/local/etc/rc.d/pure-ftpd  Use path-to-rcscript rcvar command to know which variable should set to “YES” to enable this service  For further information, read comments from that script # Add the following lines to /etc/rc.conf to enable pure-ftpd: # # pureftpd_enable="YES" # # For launch uploadscript daemon define # pureftpd_upload_enable="YES" # pureftpd_uploadscript="/full/path/to/launch_script"

HTTP & FTP (bonus homework) Due 2009/12/4

Computer Center, CS, NCTU 18 FTP  Install proftpd or pure-ftpd 1.Anonymous Login  Chrooted (/home/ftp is your root)  Can download from /home/ftp/public  Can upload & mkdir but no download or delete from /home/ftp/upload  Hidden directry /home/ftp/hidden  There is a directory called “target” inside  Client can’t list in /home/ftp/hidden/ but can in hidden/target

Computer Center, CS, NCTU 19 FTP 2Create a system user “sysadm”  Could login by ssh  Password is your student id 3.Create a virtual user “ftp-vip”  Chrooted  Password is your student-id  Can login from & your ip only  Full access to /home/ftp  Hidden directory is visible to vip

Computer Center, CS, NCTU 20 HTTP  Install Apache22 or Lighttpd  Support userdir = /home/username/public_html  Files uploaded by FTP-2 can download through HTTP

Computer Center, CS, NCTU 21 Demo  Demo with X-window