Andrew Hudson - Fedora™ Unleashed, 2008 edition

Здесь есть возможность читать онлайн «Andrew Hudson - Fedora™ Unleashed, 2008 edition» весь текст электронной книги совершенно бесплатно (целиком полную версию без сокращений). В некоторых случаях можно слушать аудио, скачать через торрент в формате fb2 и присутствует краткое содержание. Город: Indianapolis, Год выпуска: 2008, ISBN: 2008, Издательство: Sams Publishing, Жанр: ОС и Сети, на английском языке. Описание произведения, (предисловие) а так же отзывы посетителей доступны на портале библиотеки ЛибКат.

Fedora™ Unleashed, 2008 edition: краткое содержание, описание и аннотация

Предлагаем к чтению аннотацию, описание, краткое содержание или предисловие (зависит от того, что написал сам автор книги «Fedora™ Unleashed, 2008 edition»). Если вы не нашли необходимую информацию о книге — напишите в комментариях, мы постараемся отыскать её.

Quick Glance Guide
Finding information you need is not always easy. This short index provides a list of common tasks discussed inside this book. Browse the table of contents or index for detailed listings and consult the specified chapter for in-depth discussions about each subject.
left How Do I…?
See…
How Do I…?
See…
left Back up my system?
Chapter 13
Partition a hard drive?
Appendix B, Chapters 1, 35
left Build a new Linux kernel?
Chapter 36
Play MP3s and other music?
Chapter 7
left Burn a CD?
Chapter 7
Print a file?
Chapter 8
left Change a password?
Chapter 4
Read a text file?
Chapter 4
left Change the date and time?
Chapter 32
Read or send email?
Chapter 21
left Compress a file?
Chapter 13
Read or post to newsgroups?
Chapter 5
left Configure a modem?
Chapter 2
Reboot Fedora?
Chapter 1
left Configure a printer?
Chapter 8
Rescue my system?
Chapter 13
left Configure a scanner?
Chapter 7
Set up a DNS server?
Chapter 23
left Configure a sound card?
Chapter 7
Set up a firewall?
Chapter 14
left Configure my desktop settings?
Chapter 3
Set up a web server?
Chapter 15
left Connect to the Internet?
Chapter 5
Set up an FTP server?
Chapter 20
left Control a network interface?
Chapter 14
Set up Samba with SWAT?
Chapter 19
left Copy files or directories?
Chapters 13, 32
Set up wireless networking?
Chapter 14
left Create a boot disk to boot Fedora?
Chapter 1
Shut down Fedora?
Chapter 1
left Create a database?
Chapter 16
Use a spreadsheet?
Chapter 6
left Create a user?
Chapter 4
Use Instant Messaging?
Chapter 5
left Delete a file or directory?
Chapter 32
Watch television on my computer?
Chapter 7
left Get images from a digital camera?
Chapter 7
Edit a text file?
Chapter 4
left Install Fedora?
Chapter 1
Make Fedora more secure?
Chapter 14
left Log in to Fedora?
Chapter 1
Mount a CD-ROM or hard drive?
Chapter 35

Fedora™ Unleashed, 2008 edition — читать онлайн бесплатно полную книгу (весь текст) целиком

Ниже представлен текст книги, разбитый по страницам. Система сохранения места последней прочитанной страницы, позволяет с удобством читать онлайн бесплатно книгу «Fedora™ Unleashed, 2008 edition», без необходимости каждый раз заново искать на чём Вы остановились. Поставьте закладку, и сможете в любой момент перейти на страницу, на которой закончили чтение.

Тёмная тема
Сбросить

Интервал:

Закладка:

Сделать
Examples

Several conversion rules may be specified in wu-ftpd's default ftpconversionsfile. Additional examples of conversion rules, such as for Sun's Solaris operating system, might be available in the wu-ftpddocumentation.

Using ftphoststo Allow or Deny FTP Server Connection

The purpose of the ftphostsfile is to allow or deny specific users or addresses from connecting to the FTP server. The format of the file is the word allowor deny, optionally followed by a username, followed by an IP or a DNS address.

allow username address

deny username address

Listing 20.3 shows a sample configuration of this file.

LISTING 20.3 ftphostsConfiguration File for Allowing or Denying Users

# Example host access file

#

# Everything after a '#' is treated as comment,

# empty lines are ignored

allow tdc 128.0.0.1

allow tdc 192.168.101.*

allow tdc insanepenguin.net

allow tdc *.exodous.net

deny anonymous 201.*

deny anonymous *.pilot.net

The *is a wildcard that matches any combination of that address. For example, allow tdc *.exodous.netallows the user tdcto log in to the FTP server from any address that contains the domain name exodous.net. Similarly, the anonymous user is not allowed to access the FTP if he is coming from a 201 public class C IP address.

Changes made to your system's FTP server configuration files become active only after you restart xinetdbecause configuration files are parsed only at startup. To restart xinetdas root, issue the command /etc/rc.d/init.d/xinetd restart . This makes a call to the same shell script that is called at system startup and shutdown for any runlevel to start or stop the xinetdaemon. xinetdshould report its status as:

# /etc/rc.d/init.d/xinetd restart

Stopping xinetd: [ OK ]

Starting xinetd: [ OK ]

When the FTP server restarts, it is accessible to all incoming requests.

Using Commands for Server Administration

wu-ftp provides a few commands to aid in server administration. Those commands are:

ftpwho — Displays information about current FTP server users

ftpcount — Displays information about current server users by class

ftpshut — Provides automated server shutdown and user notification

ftprestart — Provides automated server restart and shutdown message removal

Each of these commands must be executed with superuser privileges because they reference the ftpaccessconfiguration file to obtain information about the FTP server.

Display Information About Connected Users

The ftpwho command provides information about the users currently connected to the FTP server. Here's the command line:

/usr/bin/ftpwho

Table 20.3 shows the format of the output ftpwhodisplays.

TABLE 20.3 ftpwhoFields

Name Description
Process ID The process ID of the FTP server process.
TTY The terminal ID of the process. This is always a question mark ( ?) because the FTP daemon is not an interactive login.
Status The status of the FTP process. The values are:
S: Sleeping
Z: Zombie, indicating a crash
R: Running
N: Normal process
Time The elapsed processor time the process has used in minutes and seconds.
Details Tells from what host the process is connecting, the user who connected, and the currently executing command.

Listing 20.4 shows typical output from this command. It lists the process ID for the ftpdaemon handling requests, the class to which the particular user belongs, the total time connected, the connected username, and the status of the session.

In addition to the information given about each connected user, ftpwhoalso displays the total number of users connected out of any maximum that has been set in the ftpaccessfile. This information can be used to monitor the use of your FTP server.

You can pass one parameter to ftpwho. (You can find the parameter by using the ftpwho --helpcommand.) The single parameter you can pass to ftpwhois -V. This parameter prints out version and licensing information for wu-ftp, as shown here:

# ftpwho

Service class all:

10447 ? SN 0:00 ftpd: localhost: anonymous/winky@disney.com: IDLE

1 users (no maximum)

The output of ftpwho, using the -Voption, which shows version information, is shown in Listing 20.4.

LISTING 20.4 ftpwho -VCommand Output

Copyright © 1999,2000,2001 WU-FTPD Development Group.

All rights reserved.

Portions Copyright © 1980, 1985, 1988, 1989, 1990, 1991, 1993, 1994

The Regents of the University of California.

Portions Copyright © 1993, 1994 Washington University in Saint Louis.

Portions Copyright © 1996, 1998 Berkeley Software Design, Inc.

Portions Copyright © 1989 Massachusetts Institute of Technology.

Portions Copyright © 1998 Sendmail, Inc.

Portions Copyright © 1983, 1995, 1996, 1997 Eric P. Allman.

Portions Copyright © 1997 by Stan Barber.

Portions Copyright © 1997 by Kent Landfield.

Portions Copyright © 1991, 1992, 1993, 1994, 1995, 1996, 1997

Free Software Foundation, Inc.

Use and distribution of this software and its source code are governed by

the terms and conditions of the WU-FTPD Software License ("LICENSE").

If you did not receive a copy of the license, it may be obtained online

at http://www.wu-ftpd.org/license.html.

Version wu-2.6.2-8

Count the Number of Connections

/usr/bin/ftpcountcounts the number of connected users to the FTP server and the maximum number of users allowed. This same information is found at the end of the output for the ftpwhocommand. This command takes only one parameter, -V, which displays the same output as the previous ftpwhoexample.

# ftpcount

Service class all - 4 users (no maximum)

Use /usr/sbin/ftpshutto Schedule FTP Server Downtime

As with any public server administration, it is always good practice to let users of the FTP server know about upcoming outages, when the server will be updated, and other relevant site information. The ftpshutcommand allows the administrator to let the FTP server do much of this automatically.

The ftpshutcommand enables the administrator to take down the FTP server at a specific time, based on some parameters passed to it. The format of the command is as follows and is documented in the ftpshutman page:

Читать дальше
Тёмная тема
Сбросить

Интервал:

Закладка:

Сделать

Похожие книги на «Fedora™ Unleashed, 2008 edition»

Представляем Вашему вниманию похожие книги на «Fedora™ Unleashed, 2008 edition» списком для выбора. Мы отобрали схожую по названию и смыслу литературу в надежде предоставить читателям больше вариантов отыскать новые, интересные, ещё непрочитанные произведения.


Отзывы о книге «Fedora™ Unleashed, 2008 edition»

Обсуждение, отзывы о книге «Fedora™ Unleashed, 2008 edition» и просто собственные мнения читателей. Оставьте ваши комментарии, напишите, что Вы думаете о произведении, его смысле или главных героях. Укажите что конкретно понравилось, а что нет, и почему Вы так считаете.

x