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», без необходимости каждый раз заново искать на чём Вы остановились. Поставьте закладку, и сможете в любой момент перейти на страницу, на которой закончили чтение.

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

Интервал:

Закладка:

Сделать

Using messages is a good way to give information about where things are on your site as well as information that is system dependent, such as alternative sites, general policies regarding available data, server availability times, and so on.

You can use magic cookies to breathe life into your displayed messages. Magic cookies are symbolic constants that are replaced by system information. Table 20.1 lists the messagecommand's valid magic cookies and their representations.

TABLE 20.1 Magic Cookies and Their Descriptions

Cookie Description
%T Local time (form Thu Nov 15 17:12:42 1990)
%F Free space in partition of CWD (kilobytes) [Not supported on all systems]
%C Current working directory
%E Maintainer's email address as defined in ftpaccess
%R Remote hostname
%L Local hostname
%u Username as determined via RFC931 authentication
%U Username given at login time
%M Maximum allowed number of users in this class
%N Current number of users in this class
%B Absolute limit on disk blocks allocated
%b Preferred limit on disk blocks
%Q Current block count
%I Maximum number of allocated inodes (+1)
%i Preferred inode limit
%q Current number of allocated inodes
%H Time limit for excessive disk use
%h Time limit for excessive files
Ratios
%xu Uploaded bytes
%xd Downloaded bytes
%xR Upload/download ratio (1: n )
%xc Credit bytes
%xT Time limit (minutes)
%xE Elapsed time since login (minutes)
%xL Time left
%xU Upload limit
%xD Download limit

To understand how this command works, imagine that you want to display a welcome message to everyone who logs in to the FTP server. An entry of:

message /home/ftp/welcome.msg login

message /welcome.msg login

shows the contents of the welcome.msgfile to all authenticated users who log in to the server. The second entry shows the same message to the anonymous user.

The welcome.msgfile is not created with the installation of the RPM, but you can create it using a text editor. Type the following:

Welcome to the anonymous ftp service on %L!

There are %N out of %M users logged in.

Current system time is %T

Please send email to %E if there are any problems with this service.

Your current working directory is %C

Save this file as /var/ftp/welcome.msg. Verify that it works by connecting to the FTP server:

220 FTP server ready.

504 AUTH GSSAPI not supported.

504 AUTH KERBEROS_V4 not supported.

KERBEROS_V4 rejected as an authentication type

Name (shuttle:phudson): anonymous

331 Guest login ok, send your complete e-mail address as password.

Password:

230-Welcome to the anonymous ftp service on shuttle.home.org!

230-

230-There are 1 out of unlimited users logged in.

230-

230-Current system time is Mon Nov 3 10:57:06 2003

230-

230-Please send email to root@localhost if there are

230-any problems with this service.

230-Your current working directory is /

Display Administrator's Email Address

This line sets the email address for the FTP administrator:

email

This string is printed whenever the %Emagic cookie is specified. This magic cookie is used in the message line or in the shutdown file. You should display this string to users in the login banner message so that they know how to contact you (the administrator) in case of problems with the FTP server.

CAUTION

Do not use your live email address in the display banner; you want others to be able to access user emails as necessary. Instead, use an alias address that routes the messages to the appropriate IT department or other address.

Notify User of Last Modification Date

The readmeline tells the server whether a notification should be displayed to the user when a specific file was last modified. Here's the command:

readme {}}

The path parameter is any valid path for the user. The optional when parameter is exactly as seen in the message line. classcan be one or more classes as defined in the class file. The pathis absolute for real users. For the anonymous user, the pathis relative to the anonymous home directory, which is /var/ftpby default.

Configure System Logging

Part of system administration involves reviewing log files for what the server is doing, who accessed it, what files were transferred, and other pieces of important information. You can use a number of commands within /etc/ftpacessto control your FTP server's logging actions.

Redirect Logging Records

This line allows the administrator to redirect where logging information from the FTP server is recorded:

log {+}

By default, the information for commands is stored in /var/log/messages, although the man pages packaged in some RPMs state that this information is written to /var/log/xferlog. Check your server's settings for information regarding the location of your file transfer logs.

Log All User-Issued Commands

This line enables logging for all commands issued by the user:

log commands []

typelistis a comma-separated list of anonymous, guest, and real. If no typelistis given, commands are logged for all users. Some wu-ftpdRPMs set the logging of all file transfers to /var/log/xferlog(see the next section). However, you can add the logcommand to ftpaccesswith the commandskeyword to capture user actions. Logging is then turned on and user actions are captured in /var/log/messages. Here is a sample log file:

Oct 6 12:21:42 shuttle2 ftpd[5229]: USER anonymous

Oct 6 12:21:51 shuttle2 ftpd[5229]: PASS phudson@widget.com

Oct 6 12:21:51 shuttle2 ftpd[5229]: ANONYMOUS FTP LOGIN FROM 192.168.2.31 [192.168.2.31], phudson@widget.com

Oct 6 12:21:51 shuttle2 ftpd[5229]: SYST

Oct 6 12:21:54 shuttle2 ftpd[5229]: CWD pub

Oct 6 12:21:57 shuttle2 ftpd[5229]: PASV

Oct 6 12:21:57 shuttle2 ftpd[5229]: LIST

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

Интервал:

Закладка:

Сделать

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

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


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

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

x