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

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

Интервал:

Закладка:

Сделать

ftpshut [ -V ] [ -l min] [ -d min] time [ warning-message ... ]

The -Vparameter displays the command's version information. The timeparameter is the time when the ftpshutcommand will stop the FTP servers. This parameter takes either a +number for the number of minutes from the current time, or a specific hour and minute in 24-hour clock format with the syntax of HH:MM .

The -l parameter enables the FTP server administrator to specify how long, in minutes, before shutdown the server disallows new connections. The default is 10 minutes. If the time given to shut down the servers is less than 10 minutes, new connections are disallowed immediately.

The -dparameter is similar to the -l parameter, but controls when the FTP server terminates the current connections. By default, this occurs five minutes before the server shuts down. If the shutdown time is less than five minutes, the server terminates the current connections immediately.

When you execute this command, the FTP server creates a file containing the shutdown information in the location specified under the shutdown section in the ftpaccessfile. The default configuration for this file is /etc/shutmsg. If you execute the ftpshutcommand with warning messages, the messages are displayed when the user logs in to the server.

Name (pheniox:tdc): anonymous

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

Password:

230-system doing down at Mon Sep 3 06:23:00 2001

230-0 users of unlimited on pheniox.

230 Guest login ok, access restrictions apply.

Remote system type is UNIX.

Using binary mode to transfer files.

Here is a sample ftpshutcommand:

ftpshut -l 5 -d 5 +10 "system going down at %s %N users of %M on %R"

This command tells the FTP server to disconnect new connections in 5 minutes, drop all current connections in 5 minutes, shut down the server in 10 minutes, and display a warning message to the users at login. The message can be a mixture of text and the magic cookies defined in Table 20.4. It is important to keep in mind that the message can be a maximum of 75 characters in length. Additionally, it is not important to know how many characters the magic cookies take because the system knows this information and truncates the message at 75 characters.

TABLE 20.4 Magic Cookies for the ftpshutCommand

Cookie Description
%s Time the system will be shut down
%r Time new connections will be denied
%d Time current connections will be dropped
%C Current working directory
%E Server administrator's email address as specified in the ftpaccessfile
%F Available free space in the current working directories partition, in kilobytes
%L Local host time
%M Maximum number of allowed connections in this user class
%N Current number of connections for this user class
%R Remote hostname
%T Local time, in the form of Fri Aug 31 21:04:00 2001
%U Username given at login

When ftpshutis issued to the system, it creates a file that stores the necessary information. The ftprestartcommand removes this file for all servers, either canceling the impending shutdown or removing the shutdown file and restarting the FTP server. The ftprestarthas only one optional argument, -V, to show version information.

Use /var/log/xferlogto View a Log of Server Transactions

The xferlogfile gives a log of what transactions have occurred with the FTP server. Depending on the settings in the /etc/ftpaccessfile, the contents of this file can contain the files sent or received, by whom, with a date stamp. Table 20.5 lists the fields of this file. The same information can also be found in the corresponding man page included in the wu-ftpRPM.

TABLE 20.5 /var/log/xferlogFields

Field Description
current-time Current local time in the form of DDD MMM dd hh:mm:ss YYYY , where DDD is the day of the week, MMM is the month, dd is the day of the month, hh is the hour, mm is the minutes, ss is the seconds, and YYYY is the year.
transfer-time Total time in seconds for the transfer.
remote-host Remote hostname.
file-size Size of the transferred file in bytes.
filename Name of the file.
transfer-type A single character indicating the transfer type. The types are:
afor ASCII transfers,
bfor binary transfers
special-action-flag One or more character flags indicating any special action taken by the server. The values are:
Cfor compressed files
Ufor uncompressed files
Tfor TARed files
-for no special action taken
direction Indicates whether the file was sent from or received by the server.
access-mode The way in which the user logged in to the server. The values are:
afor an anonymous guest user
gfor a guest user, corresponding to the guestgroupcommand in the /etc/ftpaccess file
rfor a real user on the local machine
username If logged in as a real user, the username. If the access mode was guest, the password is given.
service-name The name of the service used, usually FTP
authentication-method Type of authentication used. The values are:
0for none
1for RFC931 authentication (a properly formed email address)
authenticated-user-id This is the user ID returned to the server based on the authentication method used to access the server. An *is used when an authenticated user ID cannot be found.
completion-status A single-character field indicating the status of the transfer. The values are:
cfor a completed transfer
ifor an incomplete transfer

An example of this file is seen in Listing 20.5.

LISTING 20.5 Sample /var/log/xferlogFile with Inbound and Outbound Logging

Mon Sep 3 07:13:05 2001 1 localhost.localdomain 100 /var/ftp/pub/README b o a testing@test.com ftp 0 * c

Mon Sep 3 02:35:35 2001 1 helios 8 /var/ftp/pub/configuration a _ o a testing@test.com ftp 0 * c

Mon Sep 3 02:35:35 2001 1 helios 8 /var/ftp/pub/temp.txt a o a testing@test.com ftp 0 * c

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

Интервал:

Закладка:

Сделать

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

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


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

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

x