Cita310chap09

576 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
576
On SlideShare
0
From Embeds
0
Number of Embeds
6
Actions
Shares
0
Downloads
16
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Cita310chap09

  1. 1. Web Server Administration Chapter 9 Extending the Web Environment
  2. 2. Overview <ul><li>Understand File Transfer Protocol (FTP) services </li></ul><ul><li>Install and configure an FTP server in Windows </li></ul><ul><li>Install and configure an FTP server in Linux </li></ul><ul><li>Understand News servers </li></ul><ul><li>Configure remote access to a server </li></ul><ul><li>Understand streaming media servers </li></ul><ul><li>Understand e-commerce software </li></ul>
  3. 3. Understanding FTP Services <ul><li>FTP is used to transfer files from a server to a client (download) and transfer files from a client to a server (upload) </li></ul><ul><li>FTP client is the browser </li></ul><ul><ul><li>Also command-line and GUI clients </li></ul></ul><ul><li>FTP servers can operate as anonymous servers or they can require a valid logon </li></ul><ul><ul><li>Typically, they are anonymous </li></ul></ul><ul><ul><li>FTP servers are not secure; user names and passwords are not sent encrypted </li></ul></ul>
  4. 4. Understanding FTP Services <ul><li>The client connects to port 21 (control port) </li></ul><ul><li>Port 20 (data port) is used to tell the client which unprivileged port to use for data transfer </li></ul><ul><li>The above describes passive mode FTP, the most common type </li></ul>
  5. 5. Communicating with FTP dir *.rpm Displays the long listing of files and their properties, such as the size and date the file was created dir filenames ls *.rpm Displays filenames and can use wildcards ls filenames bye Closes the connection and exits the FTP client quit or bye close Closes the connection but does not exit the FTP client close open 192.168.0.100 Once the FTP client has been started, opens a connection open host ftp 192.168.0.100 Initiates a connection to FTP server ftp host Example Description Command
  6. 6. Communicating with FTP prompt Starts prompting prompt prompt no Stops prompting for each file when used before you use mget or mput prompt no mput *.tif Uploads multiple files; used with wildcards mput filenames mget sendmail*.rpm Downloads multiple files; used with wildcards Mget filenames put testapp.zip Uploads a single file put filename get test.rpm Downloads a single file get filename ascii Transfer files in text mode ascii binary Transfer files in binary mode binary Example Description Command
  7. 7. Communicating with FTP help mget Finds very brief help on FTP commands; if used without a reference to a command, it will give you a list of commands available help command pwd Displays the current directory on the server pwd lcd /docs Moves to another directory on the client lcd directory cd /software Moves to another directory on the FTP server cd directory hash Displays a hash symbol as files are being downloaded hash Example Description Command
  8. 8. Install and Configure Windows FTP Server <ul><li>Windows component </li></ul><ul><ul><li>Part of IIS </li></ul></ul><ul><li>Configured through Internet Information Services (IIS) Manager </li></ul>
  9. 9. Configure FTP Messages <ul><li>Banner appears when client connects </li></ul><ul><li>Welcome appears when logged on </li></ul><ul><li>Exit appears when client exits from server </li></ul><ul><li>Maximum connections appears when limit is reached and client cannot connect </li></ul>
  10. 10. Install FTP in Linux <ul><li>The wu-ftpd FTP server was developed by Washington University </li></ul><ul><li>Once the rpm is installed, enable FTP </li></ul><ul><ul><li>chkconfig wu-ftpd on </li></ul></ul><ul><ul><li>Restart xinetd service to recognize change </li></ul></ul><ul><ul><ul><li>service xinetd restart </li></ul></ul></ul>
  11. 11. Configure /etc/ftpaccess <ul><li>The /etc/ftpaccess file is the main configuration file </li></ul><ul><li>By default, users with IDs less than or equal to 99 are not allowed </li></ul><ul><ul><li>They are for system users and daemons </li></ul></ul><ul><ul><li>Because the ftp user is a system user, you have to allow it with </li></ul></ul><ul><ul><ul><li>allow-uid ftp </li></ul></ul></ul><ul><ul><ul><li>allow-gid ftp </li></ul></ul></ul>
  12. 12. Configure /etc/ftpaccess <ul><li>Limit user to a maximum of five failed logons before a disconnect </li></ul><ul><ul><li>loginfails 5 </li></ul></ul><ul><li>Check for password that conforms to e-mail address </li></ul><ul><ul><li>passwd-check rfc822 warn </li></ul></ul>
  13. 13. Control Access <ul><li>Set up user classes </li></ul><ul><ul><li>class all real,guest,anonymous * </li></ul></ul><ul><ul><li>class local real 192.168.0.0/24 </li></ul></ul><ul><li>Set limits for class </li></ul><ul><ul><li>file-limit out 25 anonymous </li></ul></ul><ul><ul><li>file-limit in 10 local </li></ul></ul><ul><ul><li>byte-limit out 2000000 anonymous </li></ul></ul>
  14. 14. Configure Messages <ul><li>To receive notice that a readme file exists at login or any current working directory (cwd) </li></ul><ul><ul><li>readme README* login </li></ul></ul><ul><ul><li>readme README* cwd=* </li></ul></ul><ul><li>To display a message when a user logs on or moves to a directory </li></ul><ul><ul><li>message /welcome.msg login </li></ul></ul><ul><ul><li>message .message cwd=* </li></ul></ul><ul><li>To create a banner message when client connects </li></ul><ul><ul><li>banner /etc/banner.txt </li></ul></ul>
  15. 15. Understanding News Servers <ul><li>News servers allow threaded discussions </li></ul><ul><li>You post messages in a newsgroup </li></ul><ul><li>A newsgroup focuses on a single topic </li></ul><ul><li>There are more than 40,000 public newsgroups </li></ul><ul><li>There are hundreds of gigabytes of information generated per day </li></ul><ul><li>News servers can be set up for use within an organization </li></ul>
  16. 16. Configuring Telnet in Linux <ul><li>By default, telnet is installed but not enabled </li></ul><ul><ul><li>chkconfig telnet on </li></ul></ul><ul><ul><li>service xinetd restart </li></ul></ul><ul><li>Telnet should not be used in a non-secure environment such as over the Internet because user names and passwords are not encrypted </li></ul><ul><ul><li>ssh is a secure replacement (described in Chapter 10) </li></ul></ul><ul><li>You cannot log on as root </li></ul><ul><ul><li>However, you can log on as another user and &quot;su root&quot; </li></ul></ul>
  17. 17. Telnet and Windows <ul><li>Telnet is not popular in Windows because telnet is text-based and Windows relies on a GUI </li></ul><ul><ul><li>However, there are many command-line utilities that can be used, especially in Windows Server 2003 </li></ul></ul><ul><li>Before Windows, Microsoft networking depended on a single command net with many options </li></ul><ul><li>cacls can be used to alter permissions </li></ul><ul><li>netsh starts a networking shell which allows you to configure and display many network-related items </li></ul>
  18. 18. Common net Commands net use g: eb1docs Maps a drive net use drive: omputershare net share docs=c:docs Shares a folder net share name=location net start &quot;FTP Publishing Service&quot; Starts a service net start service net user mnoia Displays user information net user username net user Lists all users net user Example Description Command
  19. 19. cacls options <ul><li>The format is: cacls file or folder name [options] </li></ul>Revokes permission /r user /e As above, except permissions are replaced /p user:perm Grants a user specific permissions Permissions are: f (full control) r (read) w (write) c (change) n (none) /g user:perm Changes all subfolders /t Changes instead of replaces permission /e Description Option
  20. 20. netsh Examples <ul><li>Create a text file with commands to re-create the IP configuration </li></ul><ul><ul><li>netsh interface ip dump </li></ul></ul><ul><li>Ping the gateway IP address of each NIC </li></ul><ul><ul><li>netsh diag ping gateway </li></ul></ul><ul><li>In Windows Server 2003 </li></ul><ul><ul><li>Display errors in system log </li></ul></ul><ul><ul><li>Manage network monitor and performance </li></ul></ul><ul><ul><li>Defragment a drive </li></ul></ul><ul><ul><li>Shut down a server </li></ul></ul>
  21. 21. Terminal Services in Windows <ul><li>GUI-based access to a server </li></ul><ul><li>Can be used for remote administration or running applications remotely </li></ul><ul><ul><li>In Windows 2000, you select remote administration on installation </li></ul></ul><ul><ul><li>In Windows Server 2003, it is installed already and you have to enable it </li></ul></ul><ul><li>Client software is included in Windows Server 2003 and Windows XP </li></ul><ul><li>You have to install client software for Windows 2000 </li></ul>
  22. 22. Understanding Streaming Media Services <ul><li>Used to transfer video and audio </li></ul><ul><li>By default, UDP is used </li></ul><ul><ul><li>Although TCP and HTTP can be used because of firewall issues in an organization </li></ul></ul><ul><li>No single standard exists as is true with SMTP, HTTP, POP3, and others </li></ul><ul><li>Broadcast methods </li></ul><ul><ul><li>unicast – each packet is sent individually to each client </li></ul></ul><ul><ul><li>multicast – each packet is sent to many clients </li></ul></ul>
  23. 23. Understanding Streaming Media Services <ul><li>Helix Universal Server from Real Networks is popular </li></ul><ul><ul><li>Recognizes both Real Networks protocols (RTSP, PNA) and the Microsoft protocol (MMS) </li></ul></ul><ul><li>Windows Media Services is a Windows component </li></ul><ul><ul><li>Creates a folder called ASFRoot to store Advanced Streaming Format (ASF) files </li></ul></ul>
  24. 24. Understanding E-Commerce Servers <ul><li>Can be as simple as a product list and a shopping cart </li></ul><ul><li>Can be as complex as amazon.com or dell.com </li></ul><ul><li>Microsoft Commerce Server is an add-on to IIS </li></ul><ul><ul><li>Incorporates a number of features required for a typical e-commerce site </li></ul></ul><ul><ul><li>Highly customizable </li></ul></ul>
  25. 25. Summary <ul><li>Use FTP to transfer files </li></ul><ul><li>You use News servers to set up threaded discussions on a variety of topics </li></ul><ul><li>Telnet and Windows Terminal Services allow you to remotely administer a server </li></ul><ul><li>Streaming media servers are used for video and audio </li></ul><ul><li>E-commerce servers focus on selling and in general, communicating with customers </li></ul>

×