Журнал лабораторных работ

Содержание

Журнал

Четверг (06/04/09)

/dev/pts/1
17:58:14
#apt-get install sendmail sendmail-bin
Читання переліків пакетів... Виконано
Побудова дерева залежностей
Reading state information... Виконано
Вже встановлена найновіша версія sendmail.
Вже встановлена найновіша версія sendmail-bin.
sendmail-bin set to manually installed.
The following packages were automatically installed and are no longer required:
  portmap
Використовуйте 'apt-get autoremove' щоб видалити їх.
оновлено 0, встановлено 0 нових пакунків, для видалення відмічено 0 пакунків, і 56 пакунків не оновлено.
17:58:43
#apt-get install openb
openbabel       openbios-ppc    openbios-sparc  openbox         openbox-dev     openbox-themes  openbsd-inetd
17:58:43
#apt-get install openbsd-inetd
Читання переліків пакетів... Виконано
Побудова дерева залежностей
Reading state information... Виконано
Вже встановлена найновіша версія openbsd-inetd.
The following packages were automatically installed and are no longer required:
  portmap
Використовуйте 'apt-get autoremove' щоб видалити їх.
оновлено 0, встановлено 0 нових пакунків, для видалення відмічено 0 пакунків, і 56 пакунків не оновлено.
17:59:01
#apt-get install sendmail sendmail-
sendmail-base  sendmail-bin   sendmail-cf    sendmail-doc   sendmail-tls
17:59:01
#apt-get install sendmail sen
sendemail        sendmail         sendmail-cf      sendpage-client  sendxmpp         sensord
sendfile         sendmail-base    sendmail-doc     sendpage-common  sensible-mda     sensors-applet
sendip           sendmail-bin     sendmail-tls     sendpage-server  sensible-utils
17:59:01
#apt-get install sendmail sensible-mda
Читання переліків пакетів... Виконано
Побудова дерева залежностей
Reading state information... Виконано
Вже встановлена найновіша версія sendmail.
Вже встановлена найновіша версія sensible-mda.
sensible-mda set to manually installed.
The following packages were automatically installed and are no longer required:
  portmap
Використовуйте 'apt-get autoremove' щоб видалити їх.
оновлено 0, встановлено 0 нових пакунків, для видалення відмічено 0 пакунків, і 56 пакунків не оновлено.
17:59:57
#apt-get install sensible-mda
Читання переліків пакетів... Виконано
Побудова дерева залежностей
Reading state information... Виконано
Вже встановлена найновіша версія sensible-mda.
The following packages were automatically installed and are no longer required:
  portmap
Використовуйте 'apt-get autoremove' щоб видалити їх.
оновлено 0, встановлено 0 нових пакунків, для видалення відмічено 0 пакунків, і 56 пакунків не оновлено.
18:00:02
#apt-get install qpopper
Читання переліків пакетів... Виконано
Побудова дерева залежностей
Reading state information... Виконано
The following packages were automatically installed and are no longer required:
  portmap
Використовуйте 'apt-get autoremove' щоб видалити їх.
НОВІ пакунки, які будуть встановлені:
  qpopper
оновлено 0, встановлено 1 нових пакунків, для видалення відмічено 0 пакунків, і 56 пакунків не оновлено.
Необхідно завантажити 414kB архівів.
After this operation, 647kB of additional disk space will be used.
Отр:1 http://10.0.35.1 sid/main qpopper 4.0.9.dfsg-1 [414kB]
Отримано 414kB за 0sB (10,7MB/s)
Selecting previously deselected package qpopper.
(Reading database ... 59965 files and directories currently installed.)
Unpacking qpopper (from .../qpopper_4.0.9.dfsg-1_i386.deb) ...
Processing triggers for man-db ...
Setting up qpopper (4.0.9.dfsg-1) ...
18:00:25
#apt-get install sendmail
sendmail       sendmail-base  sendmail-bin   sendmail-cf    sendmail-doc   sendmail-tls
18:00:25
#apt-get install sendmail
Читання переліків пакетів... Виконано
Побудова дерева залежностей
Reading state information... Виконано
Вже встановлена найновіша версія sendmail.
The following packages were automatically installed and are no longer required:
  portmap
Використовуйте 'apt-get autoremove' щоб видалити їх.
оновлено 0, встановлено 0 нових пакунків, для видалення відмічено 0 пакунків, і 56 пакунків не оновлено.
18:01:32
#grep pop /etc/inetd.conf
pop-3           stream  tcp     nowait  root    /usr/sbin/tcpd  /usr/sbin/in.qpopper -f /etc/qpopper.conf
18:02:18
#kill -1 inietd
bash: kill: inietd: arguments must be process or job IDs
18:02:38
#kill 1 inietd
bash: kill: inietd: arguments must be process or job IDs
18:02:42
#kill 1 inetd
bash: kill: inetd: arguments must be process or job IDs
18:03:08
#kill -1 inetd
bash: kill: inetd: arguments must be process or job IDs
18:03:11
#apt-get install inetd
Читання переліків пакетів... Виконано
Побудова дерева залежностей
Reading state information... Виконано
E: Не можу знайти пакунок inetd
18:03:31
#apt-cache search inetd
apt-cacher - Caching proxy for Debian package and source files
atftpd - advanced TFTP server
bidentd - Bisqwit's identd for NAT proxying
biff - a mail notification tool
cernlib-extras - CERNLIB data analysis suite - extra programs
gidentd - RFC1413 compliant IPv4/IPv6 ident daemon
gwhois - generic Whois Client / Server
inetutils-inetd - internet super server
ipsvd - Internet protocol service daemons
libconfig-inetd-perl - Interface to modify /etc/inetd.conf
...
statd - data collection daemon for GLcpu
stunnel4 - Universal SSL tunnel for network daemons
tcputils - Utilities for TCP programming in shell-scripts
tftpd - Trivial file transfer protocol server
wipl-client-inetd - A client for wipl-daemon, run from inetd
xinetd - replacement for inetd with many enhancements
libident - Проста клієнтська бібліотека RFC1413 - виконавчі файли
libsocket6-perl - Розширення Perl для IPv6
openbsd-inetd - Метасервер OpenBSD, що керує вхідними з'єднаннями
update-inetd - Оновлювач налаштувань inetd
18:03:43
#apt-cache search openbsd
clisp - GNU CLISP, a Common Lisp implementation
clisp-dev - GNU CLISP, a Common Lisp implementation (development files)
clisp-doc - GNU CLISP, a Common Lisp implementation (documentation)
csh - Shell with C-like syntax, standard login shell on BSD systems
fwanalog - firewall log-file report generator (using analog)
fwbuilder-bsd - Firewall Builder policy compiler(s) for BSD based firewalls
gxemul - machine emulator for multiple architectures
ht - Viewer/editor/analyser (mostly) for executables
isakmpd - The Internet Key Exchange protocol openbsd implementation
john - active password cracking tool
...
pimd - multicast routing daemon (PIMv2)
python-bcrypt - implementation of OpenBSD's Blowfish password hash algorithm
tftp-hpa - HPA's tftp client
tftpd-hpa - HPA's tftp server
type-handling - dpkg architecture generation script
ucarp - user-space replacement to VRRP -- automatic IP fail-over
whohas - query multiple distributions' package archives
netcat-traditional - Швейцарський армійський ніж для TCP/IP
openbsd-inetd - Метасервер OpenBSD, що керує вхідними з'єднаннями
testdisk - Сканер розділів та інструмент відновлення даних
18:04:15
#apt-cache search openbsd-ine
openbsd-inetd - Метасервер OpenBSD, що керує вхідними з'єднаннями
18:04:24
#apt-get install send
sendemail        sendip           sendmail-base    sendmail-cf      sendmail-tls     sendpage-common  sendxmpp
sendfile         sendmail         sendmail-bin     sendmail-doc     sendpage-client  sendpage-server
18:04:24
#apt-get install sendmail
sendmail       sendmail-base  sendmail-bin   sendmail-cf    sendmail-doc   sendmail-tls
18:04:24
#apt-get install sendmail-b
sendmail-base  sendmail-bin
18:04:24
#apt-get install sendmail-bin
Читання переліків пакетів... Виконано
Побудова дерева залежностей
Reading state information... Виконано
Вже встановлена найновіша версія sendmail-bin.
The following packages were automatically installed and are no longer required:
  portmap
Використовуйте 'apt-get autoremove' щоб видалити їх.
оновлено 0, встановлено 0 нових пакунків, для видалення відмічено 0 пакунків, і 56 пакунків не оновлено.
18:05:03
#ps aux | grep inet
root      2976  0.0  0.0   1980   620 ?        Ss   Jun03   0:00 /usr/sbin/inetd
root     18067  0.0  0.0   5140   780 pts/2    R+   18:05   0:00 grep inet
18:05:26
#cd /etc/s
security/  sgml/      skel/      sound/     ssh/       ssl/       sysctl.d/  syslog-ng/
18:05:26
#cd /etc/s
security/  sgml/      skel/      sound/     ssh/       ssl/       sysctl.d/  syslog-ng/
18:05:26
#cat /etc/mail/
access                databases             peers/                sendmail.mc           submit.mc
access.db             helpfile              sasl/                 service.switch        tls/
address.resolve       local-host-names      sendmail.cf           service.switch-nodns  trusted-users
aliases               m4/                   sendmail.cf.errors    smrsh/
aliases.db            Makefile              sendmail.conf         submit.cf
18:05:26
#cat /etc/mail/se
sendmail.cf           sendmail.conf         service.switch
sendmail.cf.errors    sendmail.mc           service.switch-nodns
18:05:26
#cat /etc/mail/sendmail.conf
#       and available for the `mailstats` command to display.  There will
#       be a (minor) performance hit, as this file will be updated for each
#       item coming into, or out of, sendmail.  The file is fixed in size,
#       and small, so there's no need to rotate it.
#
MSP_MAILSTATS="${DAEMON_MAILSTATS}";
#
#------------------------------------------------------------------------------
#                               Miscellaneous Confguration
#
...
#                               Deprecated variables (kept for reference)
#
DAEMON_STATS="${DAEMON_MAILSTATS}";
MSP_STATS="${MSP_MAILSTATS}";
#
#------------------------------------------------------------------------------
#                               Unknown variables (kept for reference)
#
#------------------------------------------------------------------------------
#
18:07:10
#cat /etc/mail/sendmail.
sendmail.cf         sendmail.cf.errors  sendmail.conf       sendmail.mc
18:07:10
#cat /etc/mail/sendmail.mc
divert(-1)dnl
#-----------------------------------------------------------------------------
# $Sendmail: debproto.mc,v 8.14.3 2009-03-01 18:51:56 cowboy Exp $
#
# Copyright (c) 1998-2009 Richard Nelson.  All Rights Reserved.
#
# cf/debian/sendmail.mc.  Generated from sendmail.mc.in by configure.
#
# sendmail.mc prototype config file for building Sendmail 8.14.3
#
...
dnl #
dnl # Default Mailer setup
MAILER_DEFINITIONS
MAILER(`local')dnl
MAILER(`smtp')dnl
dnl # Masquerading options
FEATURE(`always_add_domain')dnl
MASQUERADE_AS(`linux12.unix.nt')dnl
FEATURE(`allmasquerade')dnl
FEATURE(`masquerade_envelope')dnl
18:08:27
#/etc/init.d/sendmail restart
Restarting Mail Transport Agent (MTA): sendmailhostname: Unknown host
hostname: Unknown host
554 5.0.0 /etc/mail/sendmail.cf: line 80: unknown configuration line "dn"
.
18:10:44
#/etc/init.d/sendmail restart
Restarting Mail Transport Agent (MTA): sendmailhostname: Unknown host
hostname: Unknown host
554 5.0.0 /etc/mail/sendmail.cf: line 80: unknown configuration line "dn"
.
18:11:04
#/etc/init.d/sendmail restart
Restarting Mail Transport Agent (MTA): sendmailhostname: Unknown host
hostname: Unknown host
554 5.0.0 /etc/mail/sendmail.cf: line 80: unknown configuration line "dn"
.
18:14:03
#cat /etc/resolv.conf
nameserver 192.168.15.12
domain unux12.nix.nt
18:14:17
#vim /etc/resolv.conf
--- /tmp/l3-saved-15185.13437.20843	2009-06-04 18:14:47.000000000 +0300
+++ /etc/resolv.conf	2009-06-04 18:15:10.000000000 +0300
@@ -1,4 +1,4 @@
 nameserver 192.168.15.12
-domain unux12.nix.nt
+domain class12.unix.nt
 
 
18:15:10
#/etc/init.d/sendmail restart
Restarting Mail Transport Agent (MTA): sendmailGenerating DSA parameters, 2048 bit long prime
This could take some time
.........+............+.+..+...............+++++++++++++++++++++++++++++++++++++++++++++++++++*
...+........+...+.....+.............+......+...................+............+..+..+...................+....+............................+..+.+......................+..........+++++++++++++++++++++++++++++++++++++++++++++++++++*
Generating RSA private key, 2048 bit long modulus
..............................+++
........+++
e is 65537 (0x10001)
.
18:15:20
#setxkbmap -option "grp:ctrl_shift_toggle,grp_led:scroll"

18:23:23
#ls
access           aliases     helpfile          Makefile  sendmail.cf    service.switch        submit.cf  trusted-users
access.db        aliases.db  local-host-names  peers     sendmail.conf  service.switch-nodns  submit.mc
address.resolve  databases   m4                sasl      sendmail.mc    smrsh                 tls
18:23:24
#vim local-host-names
--- /tmp/l3-saved-15185.3478.19973	2009-06-04 18:23:32.000000000 +0300
+++ local-host-names	2009-06-04 18:26:19.000000000 +0300
@@ -1,2 +1,3 @@
 localhost
-
+linux12.class12.unix.nt
+linux1.class1.unix.nt
18:26:19
#/etc/init.d/sendmail restart
Restarting Mail Transport Agent (MTA): sendmail.
18:26:27
#nc -l 25
^C
18:26:43
#nc -l 127.0.0.1 25
df
sdfg
^C
18:27:01
#nc -l 127.0.0.1 25
^C
18:27:08
#nc 127.0.0.1 25
220 linux12.class12.unix.nt ESMTP Sendmail 8.14.3/8.14.3/Debian-9; Thu, 4 Jun 2009 18:27:11 +0300; (No UCE/UBE) logging access from: [127.0.0.1](FORGED)-localhost [127.0.0.1] (may be forged)
HELLO zlo
500 5.5.1 Command unrecognized: "HELLO zlo"
MAIL FROM: root@microsoft.com
503 5.0.0 Polite people say HELO first
^C
18:28:52
#nc 127.0.0.1 25
220 linux12.class12.unix.nt ESMTP Sendmail 8.14.3/8.14.3/Debian-9; Thu, 4 Jun 2009 18:28:54 +0300; (No UCE/UBE) logging access from: [127.0.0.1](FORGED)-localhost [127.0.0.1] (may be forged)
helo zlo
250 linux12.class12.unix.nt Hello localhost [127.0.0.1] (may be forged), pleased to meet you
mail from: root@linux11.unix.nt
250 2.1.0 root@linux11.unix.nt... Sender ok
rcpt to: root@class11.unix.nt
^C
18:31:01
#nc 127.0.0.1 25
220 linux12.class12.unix.nt ESMTP Sendmail 8.14.3/8.14.3/Debian-9; Thu, 4 Jun 2009 18:31:04 +0300; (No UCE/UBE) logging access from: [127.0.0.1](FORGED)-localhost [127.0.0.1] (may be forged)
HELO ZLO
250 linux12.class12.unix.nt Hello localhost [127.0.0.1] (may be forged), pleased to meet you
MAIL FROM: root@linux11.class11.unix.nt
250 2.1.0 root@linux11.class11.unix.nt... Sender ok
RCPT TO: root@linux12.class12.unix.nt
553 5.1.8 root@linux12.class12.unix.nt... Domain of sender address root@linux11.class11.unix.nt does not exist
RCPT TO: root@class12.unix.nt
553 5.1.8 root@class12.unix.nt... Domain of sender address root@linux11.class11.unix.nt does not exist
RCPT TO: root@linux12.unix.nt
553 5.1.8 root@linux12.unix.nt... Domain of sender address root@linux11.class11.unix.nt does not exist
^C
18:35:28
#nc 127.0.0.1 25
220 linux12.class12.unix.nt ESMTP Sendmail 8.14.3/8.14.3/Debian-9; Thu, 4 Jun 2009 18:35:31 +0300; (No UCE/UBE) logging access from: [127.0.0.1](FORGED)-localhost [127.0.0.1] (may be forged)
HELLO zlo
500 5.5.1 Command unrecognized: "HELLO zlo"
MAIL FROM: root@linux11.unix.nt
503 5.0.0 Polite people say HELO first
^C
18:36:35
#nc 127.0.0.1 25
220 linux12.class12.unix.nt ESMTP Sendmail 8.14.3/8.14.3/Debian-9; Thu, 4 Jun 2009 18:36:36 +0300; (No UCE/UBE) logging access from: [127.0.0.1](FORGED)-localhost [127.0.0.1] (may be forged)
HELLO ZLO
500 5.5.1 Command unrecognized: "HELLO ZLO"
^C
18:37:05
#nc 127.0.0.1 25
220 linux12.class12.unix.nt ESMTP Sendmail 8.14.3/8.14.3/Debian-9; Thu, 4 Jun 2009 18:37:08 +0300; (No UCE/UBE) logging access from: [127.0.0.1](FORGED)-localhost [127.0.0.1] (may be forged)
Hello zlo
500 5.5.1 Command unrecognized: "Hello zlo"
MAIL FROM: root@class12.unix.nt
503 5.0.0 Polite people say HELO first
^C
18:38:29
#nc 127.0.0.1 25
\220 linux12.class12.unix.nt ESMTP Sendmail 8.14.3/8.14.3/Debian-9; Thu, 4 Jun 2009 18:38:30 +0300; (No UCE/UBE) logging access from: [127.0.0.1](FORGED)-localhost [127.0.0.1] (may be forged)
^C
18:38:31
#nc 127.0.0.1 25
220 linux12.class12.unix.nt ESMTP Sendmail 8.14.3/8.14.3/Debian-9; Thu, 4 Jun 2009 18:38:32 +0300; (No UCE/UBE) logging access from: [127.0.0.1](FORGED)-localhost [127.0.0.1] (may be forged)
hello zlo
500 5.5.1 Command unrecognized: "hello zlo"
^C
18:38:44
#nc 127.0.0.1 25
220 linux12.class12.unix.nt ESMTP Sendmail 8.14.3/8.14.3/Debian-9; Thu, 4 Jun 2009 18:38:45 +0300; (No UCE/UBE) logging access from: [127.0.0.1](FORGED)-localhost [127.0.0.1] (may be forged)
HELO ZLO
250 linux12.class12.unix.nt Hello localhost [127.0.0.1] (may be forged), pleased to meet you
MAIL FROM: root@linux12.class12.unix.nt
250 2.1.0 root@linux12.class12.unix.nt... Sender ok
RCPT TO: root@class0.unix.nt
250 2.1.5 root@class0.unix.nt... Recipient ok
DATA
354 Enter mail, end with "." on a line by itself
hello
uxo
^C
18:41:29
#nc 127.0.0.1 25
220 linux12.class12.unix.nt ESMTP Sendmail 8.14.3/8.14.3/Debian-9; Thu, 4 Jun 2009 18:42:31 +0300; (No UCE/UBE) logging access from: [127.0.0.1](FORGED)-localhost [127.0.0.1] (may be forged)
HELO zlo
250 linux12.class12.unix.nt Hello localhost [127.0.0.1] (may be forged), pleased to meet you
MAIL FROM: root@linux12.class12.unix.nt
250 2.1.0 root@linux12.class12.unix.nt... Sender ok
RCPT TO: root@linux12.class12.unix.nt
250 2.1.5 root@linux12.class12.unix.nt... Recipient ok
DATA
354 Enter mail, end with "." on a line by itself
helo kokos
.
250 2.0.0 n54FgVnW021159 Message accepted for delivery
500 5.5.1 Command unrecognized: ""
.
500 5.5.1 Command unrecognized: "."
^C
You have new mail in /var/mail/root
18:44:30
#muut
bash: muut: command not found
18:44:37
#mutt
bash: mutt: command not found
18:44:41
#apt-get install mutt
Читання переліків пакетів... Виконано
Побудова дерева залежностей
Reading state information... Виконано
The following packages were automatically installed and are no longer required:
  portmap
Використовуйте 'apt-get autoremove' щоб видалити їх.
Пропоновані пакунки:
  urlview mixmaster
НОВІ пакунки, які будуть встановлені:
  mutt
...
Selecting previously deselected package mutt.
(Reading database ... 59980 files and directories currently installed.)
Unpacking mutt (from .../mutt_1.5.19-4_i386.deb) ...
Processing triggers for man-db ...
Processing triggers for doc-base ...
Processing 1 added doc-base file(s)...
Registering documents with scrollkeeper...
Processing triggers for menu ...
Setting up mutt (1.5.19-4) ...
Processing triggers for menu ...
18:44:56
#mutt
q:Вийти  d:Вид.  u:Відн.  s:Збер.  m:Ð:Відп.  g:Всім ´Ð¿.  j:Наст ?:Підказка
   1     Jun 04 root            (   1)
---Mutt: /var/mail/root [Msgs:1 New:1 0,4K]---(threads/date)-------------------------------------------------------------(all)---
1 збережено, 0 знищено.
18:46:36
#mutt
q:Вийти  d:Вид.  u:Відн.  s:Збер.  m:Ð:Відп.  g:Всім ´Ð¿.  j:Наст ?:Підказка
   1     Jun 04 root            (   1)
---Mutt: /var/mail/root [Msgs:1 0,5K]---(threads/date)-------------------------------------------------------------------(all)---
Поштову скриньку не змінено.
18:46:50
#cat /etc/resolv.conf
nameserver 192.168.15.12
domain class12.unix.nt
18:48:39
#host
Usage:      host [-v] [-a] [-t querytype] [options]  name  [server]
Listing:    host [-v] [-a] [-t querytype] [options]  -l zone  [server]
Hostcount:  host [-v] [options] -H [-D] [-E] [-G] zone
Check soa:  host [-v] [options] -C zone
Addrcheck:  host [-v] [options] -A host
Listing options: [-L level] [-S] [-A] [-p] [-P prefserver] [-N skipzone]
Common options:  [-d] [-f|-F file] [-I chars] [-i|-n] [-q] [-Q] [-T] [-Z]
Other options:   [-c class] [-e] [-m] [-o] [-r] [-R] [-s secs] [-u] [-w]
Special options: [-O srcaddr] [-j minport] [-J maxport]
Extended usage:  [-x [name ...]] [-X server [name ...]]
18:48:51
#hostname
linux12
18:48:53
#host
Usage:      host [-v] [-a] [-t querytype] [options]  name  [server]
Listing:    host [-v] [-a] [-t querytype] [options]  -l zone  [server]
Hostcount:  host [-v] [options] -H [-D] [-E] [-G] zone
Check soa:  host [-v] [options] -C zone
Addrcheck:  host [-v] [options] -A host
Listing options: [-L level] [-S] [-A] [-p] [-P prefserver] [-N skipzone]
Common options:  [-d] [-f|-F file] [-I chars] [-i|-n] [-q] [-Q] [-T] [-Z]
Other options:   [-c class] [-e] [-m] [-o] [-r] [-R] [-s secs] [-u] [-w]
Special options: [-O srcaddr] [-j minport] [-J maxport]
Extended usage:  [-x [name ...]] [-X server [name ...]]
18:50:22
#mutt
q:Вийти  d:Вид.  u:Відн.  s:Збер.  m:Ð:Відп.  g:Всім ´Ð¿.  j:Наст ?:Підказка
   1     Jun 04 root            (   1)
---Mutt: /var/mail/root [Msgs:1 0,5K]---(threads/date)-------------------------------------------------------------------(all)---
Поштову скриньку не змінено.
18:50:51
#ls
access           aliases     helpfile          Makefile  sendmail.cf    service.switch        submit.cf  trusted-users
access.db        aliases.db  local-host-names  peers     sendmail.conf  service.switch-nodns  submit.mc
address.resolve  databases   m4                sasl      sendmail.mc    smrsh                 tls
18:51:16
#vim sendmail.mc
18:52:30
#110
220 linux12.class12.unix.nt ESMTP Sendmail 8.14.3/8.14.3/Debian-9; Thu, 4 Jun 2009 18:52:35 +0300; (No UCE/UBE) logging access from: [127.0.0.1](FORGED)-localhost [127.0.0.1] (may be forged)
HELO zlo
250 linux12.class12.unix.nt Hello localhost [127.0.0.1] (may be forged), pleased to meet you
MAIL FROM: root@linux12.class12.unix.nt
250 2.1.0 root@linux12.class12.unix.nt... Sender ok
RCPT TO: root@class0.unix.nt
250 2.1.5 root@class0.unix.nt... Recipient ok
DATA
354 Enter mail, end with "." on a line by itself
helo kokos2
FROM TO sdajkfk
SUB dsfnk
.
250 2.0.0 n54FqZal021557 Message accepted for delivery
^C
You have new mail in /var/mail/root
18:57:20
#mutt
q:Вийти  d:Вид.  u:Відн.  s:Збер.  m:Ð:Відп.  g:Всім ´Ð¿.  j:Наст ?:Підказка
   1     Jun 04 root            (   1)
   1     Jun 04 root            (   1)
   2     Jun 04 Mail Delivery S (  38) Returned mail: see transcript for details
   2     Jun 04 Mail Delivery S (  38) Returned mail: see transcript for details
   3     Jun 05 mdadm monitorin (  17) DegradedArray event on /dev/md0:linux12
        for root@class0.unix.nt; Thu, 4 Jun 2009 18:56:20 +0300
Date: Thu, 4 Jun 2009 18:52:35 +0300
From: root <root@linux12.class12.unix.nt>
Message-Id: <200906041556.n54FqZal021557@linux12.class12.unix.nt>
3 збережено, 0 знищено.
You have mail in /var/mail/root
/dev/pts/4
19:03:42
#dig class12.unix.nt
; <<>> DiG 9.6.0-P1 <<>> class12.unix.nt
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 28928
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;class12.unix.nt.               IN      A
;; AUTHORITY SECTION:
class12.unix.nt.        3555    IN      SOA     linux12.class12.uxix.nt. root.class12.unix.nt. 2009060402 10800 43200 259200 3600
;; Query time: 1 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Fri Jun  5 14:38:15 2009
;; MSG SIZE  rcvd: 95

Пятница (06/05/09)

/dev/pts/1
09:39:09
#ssh root@10.0.35.100
root@10.0.35.100's password:
Linux linux0 2.6.18-6-xen-686 #1 SMP Sun Feb 10 22:43:13 UTC 2008 i686
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
You have new mail.
Last login: Fri Jun  5 14:23:07 2009 from linux4.class4.unix.nt
l3-agent is already running: pid=1896; pidfile=/root/.lilalo/l3-agent.pid
прошло 13 минут
/dev/pts/9
09:52:31
#кщroot
bash: root: command not found
09:52:37
#screen
/dev/pts/11
09:52:43
#vim ~/.muttrc
--- /dev/null	2009-06-03 19:29:57.505584844 +0300
+++ /root/.muttrc	2009-06-05 12:36:24.000000000 +0300
@@ -0,0 +1,2 @@
+my_hdr From:	konstantin <root@class12.unix.nt>
+set     realname =      'Kondrashov Konstantin'
/dev/pts/14
09:53:06
#ssh root@10.0.35.100
root@10.0.35.100's password:
Linux linux0 2.6.18-6-xen-686 #1 SMP Sun Feb 10 22:43:13 UTC 2008 i686
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
You have new mail.
Last login: Fri Jun  5 10:06:43 2009 from 192.168.15.2
l3-agent is already running: pid=1896; pidfile=/root/.lilalo/l3-agent.pid
/dev/pts/17
09:54:06
#netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.15.0    0.0.0.0         255.255.255.0   U         0 0          0 eth0
192.168.106.0   0.0.0.0         255.255.255.0   U         0 0          0 eth0.106
192.168.206.0   0.0.0.0         255.255.255.0   U         0 0          0 eth0.206
0.0.0.0         192.168.15.254  0.0.0.0         UG        0 0          0 eth0
прошло 12 минут
/dev/pts/14
10:06:58
#screen -x
10:07:01
#screen -x
10:07:10
#screen -x
10:07:19
#screen -x
10:07:20
#screen -x
10:11:08
#ssh root@10.0.35.100
^C
10:11:20
#ping 192.168.11.1
PING 192.168.11.1 (192.168.11.1) 56(84) bytes of data.
^C
--- 192.168.11.1 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms
10:11:30
#ping 192.168.15.1
PING 192.168.15.1 (192.168.15.1) 56(84) bytes of data.
64 bytes from 192.168.15.1: icmp_seq=1 ttl=64 time=4.55 ms
64 bytes from 192.168.15.1: icmp_seq=2 ttl=64 time=0.225 ms
^C
--- 192.168.15.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 0.225/2.387/4.550/2.163 ms
10:11:34
#ssh root@10.0.35.100
root@10.0.35.100's password:
Linux linux0 2.6.18-6-xen-686 #1 SMP Sun Feb 10 22:43:13 UTC 2008 i686
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
You have new mail.
Last login: Fri Jun  5 10:24:51 2009 from linux12.class12.unix.nt
l3-agent is already running: pid=1896; pidfile=/root/.lilalo/l3-agent.pid
10:12:47
#ssh root@10.0.35.100
root@10.0.35.100's password:
Linux linux0 2.6.18-6-xen-686 #1 SMP Sun Feb 10 22:43:13 UTC 2008 i686
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
You have new mail.
Last login: Fri Jun  5 10:25:50 2009 from 192.168.15.2
l3-agent is already running: pid=1896; pidfile=/root/.lilalo/l3-agent.pid
/dev/pts/17
10:13:28
#ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:1b:fc:7d:bc:f0
          inet addr:192.168.15.12  Bcast:192.168.15.255  Mask:255.255.255.0
          inet6 addr: fe80::21b:fcff:fe7d:bcf0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:62304 errors:0 dropped:0 overruns:0 frame:0
          TX packets:61009 errors:0 dropped:0 overruns:0 carrier:11
          collisions:0 txqueuelen:1000
          RX bytes:17906994 (17.0 MiB)  TX bytes:8057952 (7.6 MiB)
eth0.106  Link encap:Ethernet  HWaddr 00:1b:fc:7d:bc:f0
          inet addr:192.168.106.1  Bcast:192.168.106.255  Mask:255.255.255.0
...
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:3301 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3301 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:307313 (300.1 KiB)  TX bytes:307313 (300.1 KiB)
10:13:38
#dig -x 93.158.134.8
; <<>> DiG 9.6.0-P1 <<>> -x 93.158.134.8
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 2590
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2
;; QUESTION SECTION:
;8.134.158.93.in-addr.arpa.     IN      PTR
;; ANSWER SECTION:
8.134.158.93.in-addr.arpa. 14296 IN     PTR     ya.ru.
;; AUTHORITY SECTION:
134.158.93.in-addr.arpa. 86296  IN      NS      ns4.yandex.net.
134.158.93.in-addr.arpa. 86296  IN      NS      ns1.yandex.net.
;; ADDITIONAL SECTION:
ns1.yandex.net.         109791  IN      A       213.180.193.1
ns4.yandex.net.         113697  IN      A       77.88.19.60
;; Query time: 1 msec
;; SERVER: 192.168.15.12#53(192.168.15.12)
;; WHEN: Fri Jun  5 10:19:01 2009
;; MSG SIZE  rcvd: 140
/dev/pts/15
10:14:10
#ssh root@10.0.35.100
root@10.0.35.100's password:
Linux linux0 2.6.18-6-xen-686 #1 SMP Sun Feb 10 22:43:13 UTC 2008 i686
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
You have new mail.
Last login: Fri Jun  5 10:27:12 2009 from linux12.class12.unix.nt
l3-agent is already running: pid=1896; pidfile=/root/.lilalo/l3-agent.pid
/dev/pts/17
10:19:01
#host 93.158.134.8
Name: ya.ru
Address: 93.158.134.8
10:19:18
#whois chub.in
Access to .IN WHOIS information is provided to assist persons in
determining the contents of a domain name registration record in the
.IN registry database. The data in this record is provided by
.IN Registry for informational purposes only, and .IN does not
guarantee its accuracy.  This service is intended only for query-based
access. You agree that you will use this data only for lawful purposes
and that, under no circumstances will you use this data to: (a) allow,
enable, or otherwise support the transmission by e-mail, telephone, or
facsimile of mass unsolicited, commercial advertising or solicitations
to entities other than the data recipient's own existing customers; or
...
Name Server:
Name Server:
Name Server:
Name Server:
Name Server:
Name Server:
Name Server:
Name Server:
Name Server:
Name Server:
/dev/pts/14
10:25:23
#screen -x
10:26:31
#screen -x
/dev/pts/15
10:28:05
#screen -x
прошло 59 минут
/dev/pts/17
11:27:42
#dig @ns2.eb.co.ua -x 10.0.1.40
; <<>> DiG 9.6.0-P1 <<>> @ns2.eb.co.ua -x 10.0.1.40
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 9581
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 13, ADDITIONAL: 0
;; WARNING: recursion requested but not available
;; QUESTION SECTION:
;40.1.0.10.in-addr.arpa.                IN      PTR
;; AUTHORITY SECTION:
...
.                       518400  IN      NS      I.ROOT-SERVERS.NET.
.                       518400  IN      NS      B.ROOT-SERVERS.NET.
.                       518400  IN      NS      G.ROOT-SERVERS.NET.
.                       518400  IN      NS      E.ROOT-SERVERS.NET.
.                       518400  IN      NS      H.ROOT-SERVERS.NET.
.                       518400  IN      NS      M.ROOT-SERVERS.NET.
;; Query time: 31 msec
;; SERVER: 212.109.52.53#53(212.109.52.53)
;; WHEN: Fri Jun  5 12:04:12 2009
;; MSG SIZE  rcvd: 251
прошло 36 минут
12:04:12
#dig @eb.co.ua -x 10.0.1.40
dig: couldn't get address for 'eb.co.ua': not found
12:04:19
#dig @pd.eb.co.ua -x 10.0.1.40
dig: couldn't get address for 'pd.eb.co.ua': not found
12:04:29
#dig @ns1.od.eb.co.ua -x 10.0.1.40
; <<>> DiG 9.6.0-P1 <<>> @ns1.od.eb.co.ua -x 10.0.1.40
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 21086
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 13, ADDITIONAL: 0
;; WARNING: recursion requested but not available
;; QUESTION SECTION:
;40.1.0.10.in-addr.arpa.                IN      PTR
;; AUTHORITY SECTION:
...
.                       518400  IN      NS      D.ROOT-SERVERS.NET.
.                       518400  IN      NS      J.ROOT-SERVERS.NET.
.                       518400  IN      NS      B.ROOT-SERVERS.NET.
.                       518400  IN      NS      G.ROOT-SERVERS.NET.
.                       518400  IN      NS      A.ROOT-SERVERS.NET.
.                       518400  IN      NS      E.ROOT-SERVERS.NET.
;; Query time: 11 msec
;; SERVER: 62.80.163.45#53(62.80.163.45)
;; WHEN: Fri Jun  5 12:04:43 2009
;; MSG SIZE  rcvd: 251
12:04:43
#apt-get install evolution
Читання переліків пакетів... Виконано
Побудова дерева залежностей
Reading state information... Виконано
The following packages were automatically installed and are no longer required:
  portmap
Використовуйте 'apt-get autoremove' щоб видалити їх.
Будуть встановлені наступні додаткові пакунки:
  bogofilter bogofilter-bdb bogofilter-common evolution-common evolution-data-server evolution-data-server-common evolution-plugins evolution-webcal
  gnome-desktop-data gnome-icon-theme gnome-pilot gnome-pilot-conduits libcamel1.2-14 libebackend1.2-0 libebook1.2-9 libecal1.2-7 libedata-book1.2-2
  libedata-cal1.2-6 libedataserver1.2-11 libedataserverui1.2-8 libegroupwise1.2-13 libexchange-storage1.2-3 libgdata-google1.2-1 libgdata1.2-1
...
Отр:14 http://10.0.35.1 sid/main libgtkhtml3.14-19 3.26.2-1 [1094kB]
Отр:15 http://10.0.35.1 sid/main libgtkhtml-editor-common 3.26.2-1 [91,7kB]
Отр:16 http://10.0.35.1 sid/main libgtkhtml-editor0 3.26.2-1 [114kB]
Отр:17 http://10.0.35.1 sid/main libproxy0 0.2.3-3 [32,0kB]
Отр:18 http://10.0.35.1 sid/main libsoup-gnome2.4-1 2.26.2-1 [31,2kB]
Отр:19 http://10.0.35.1 sid/main libgweather-common 2.26.1-1 [14,0MB]
Отр:20 http://10.0.35.1 sid/main libgweather1 2.26.1-1 [62,0kB]
Отр:21 http://10.0.35.1 sid/main libpisock9 0.12.4-2 [278kB]
Отр:22 http://10.0.35.1 sid/main libpisync1 0.12.4-2 [20,0kB]
Отр:23 http://10.0.35.1 sid/main evolution-common 2.26.2-2 [51,9MB]
/dev/pts/15
12:11:18
#ssh root@10.0.35.100
root@10.0.35.100's password:
Linux linux0 2.6.18-6-xen-686 #1 SMP Sun Feb 10 22:43:13 UTC 2008 i686
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
You have new mail.
Last login: Fri Jun  5 12:22:38 2009 from linux4.class4.unix.nt
l3-agent is already running: pid=1896; pidfile=/root/.lilalo/l3-agent.pid
прошло 13 минут
12:25:00
#screen -x
прошло 11 минут
/dev/pts/11
12:36:34
#d
Display all 121 possibilities? (y or n)
date                     defoma-subst             dig                      dpkg-deb
dbmmanage                defoma-user              dijkstra                 dpkg-distaddfile
dbus-cleanup-sockets     delgroup                 dir                      dpkg-divert
dbus-daemon              dellBiosUpdate           dircolors                dpkg-genchanges
dbus-launch              dellLcdBrightness        dirname                  dpkg-gencontrol
dbus-monitor             dellLEDCtl               dirs                     dpkg-gensymbols
dbus-send                dellMediaDirectCtl       disable_console_redir    dpkg-name
dbus-uuidgen             dellWirelessCtl          disown                   dpkg-parsechangelog
dd                       delpart                  displayfont              dpkg-preconfigure
...
debsums_init             dh_installxmlcatalogs    done                     dumpCmos
debugfs                  dh_pycentral             dot                      dumpe2fs
declare                  dh_pysupport             dot2gxl                  dumphint
defoma                   diagperm                 dotlockfile              dumpkeys
defoma-app               dialog                   dotty                    dumppsf
defoma-font              diff                     dpipe                    dumpSmbios
defoma-hints             diff3                    dpkg                     dvipdf
defoma-id                diffimg                  dpkg-architecture
defoma-psfont-installer  diffindex-download       dpkg-buildpackage
defoma-reconfigure       diffindex-rred           dpkg-checkbuilddeps

Файлы

  • /etc/mail/
  • /etc/mail/se
  • /etc/mail/sendmail.
  • /etc/mail/sendmail.conf
  • /etc/mail/sendmail.mc
  • /etc/resolv.conf
  • /etc/mail/
    >
    access                databases             peers/                sendmail.mc           submit.mc
    access.db             helpfile              sasl/                 service.switch        tls/
    address.resolve       local-host-names      sendmail.cf           service.switch-nodns  trusted-users
    aliases               m4/                   sendmail.cf.errors    smrsh/
    aliases.db            Makefile              sendmail.conf         submit.cf
    
    /etc/mail/se
    >
    sendmail.cf           sendmail.conf         service.switch
    sendmail.cf.errors    sendmail.mc           service.switch-nodns
    
    /etc/mail/sendmail.
    >
    sendmail.cf         sendmail.cf.errors  sendmail.conf       sendmail.mc
    
    /etc/mail/sendmail.conf
    >
    #       and available for the `mailstats` command to display.  There will
    #       be a (minor) performance hit, as this file will be updated for each
    #       item coming into, or out of, sendmail.  The file is fixed in size,
    #       and small, so there's no need to rotate it.
    #
    MSP_MAILSTATS="${DAEMON_MAILSTATS}";
    #
    #------------------------------------------------------------------------------
    #                               Miscellaneous Confguration
    #
    # MISC_PARMS="";  String  miscellaneous parameters
    #       Miscellaneous parameters - applied to any sendmail invocation.
    #       Any parameters here are also used when run from cron.
    #       Applied after {DAEMON,QUEUE}_PARMS, and can therefore override them
    #       if need be (in which case why did use them?)
    #       Note that CRON_PARMS, if applicable, will override anything
    #       declared herein.
    #
    #       Here is where'd you setup and debugging or special parms that you
    #       want shared betwixt the possibly separate listener/queue-runner
    #       processes.
    #
    MISC_PARMS="";
    #
    #------------------------------------------------------------------------------
    #                               Cron Job Configuration
    #
    # CRON_MAILTO="root";  String  cronjob output
    #       Recipient of *rare* cronjob output.  Some cronjobs will be running
    #       under user `mail`, so any problems encountered would probably be missed
    #       so define a user who actually (hopefully) checks email now and again.
    #
    CRON_MAILTO="root";
    #
    # CRON_PARMS="";  String  cron specific parmeters
    #       Cron parameters - applied *only* when sendmail queue running is done
    #       via a cronjob. Applied after QUEUE_PARMS and MISC_PARMS, and can
    #       therefore override them if need be.
    #
    CRON_PARMS="";
    #
    #------------------------------------------------------------------------------
    #                               Other stuff
    # LOG_CMDS="No"; Binary command logging flag
    #       Will cause syslog entries for many of the sendmail related commands
    #       like runq, mailq, etc - you'll also see cron jobs (if enabled).
    #
    LOG_CMDS="No";
    #
    # HANDS_OFF="No"; Binary  Do *NOT* touch the configuration
    #       Set this *ONLY* if you are going to be fully responsible for the entire
    #       setup of sendmail - the directories, permissions, databases, etc.  With
    #       this variable set to "Yes", nothing will be done for you during updates.
    #
    #       In other words, "The blood be upon your hands" if you set this...
    #       My ability to help with problems will be greatly reduced !
    #
    #       "Well, a pet peeve of mine is people who directly edit the
    #       .cf file instead of using the m4 configuration files.
    #       Don't do it! [laughs] I treat the .cf file as a binary
    #       file - you should too."
    #               --  Eric Allman 1999/10/18
    #               http://www.dotcomeon.com/allman_sendmail_qa.html
    #
    HANDS_OFF="No";
    #
    #------------------------------------------------------------------------------
    #                               Queue Aging Configuration
    #
    #       Why would you want to age your queues?  On every queue-run interval,
    #       sendmail will try *every* file in the queue...  If a site is down
    #       for a while, considerable time can be wasted each interval in retrying
    #       it.  The scheme supported allows aging by time, and can move the older
    #       files to another (less frequently run queue), thereby reducing overal
    #       system impact - and providing better mail throughput.
    #
    #       Note that this support is completely separate from QUEUE_MODE=cron,
    #       you can age queues even if you're running QUEUE_MODE=daemon.
    #
    #       There are four parts to the queue aging support, and these parts
    #       may be repeated, to operate on multiple queues.
    #
    #       1. Interval at which to age the queues (in minutes).
    #          What interval should you use?  Roughly twice the normal queue
    #          interval, so that messages are tried twice in each successively
    #          slower queue.
    #
    #          NOTE: some values just wont work, due to crontab pecularities
    #          a value of 90 minutes will actually be run at every x:30 !
    #          Please check /etc/cron.d/sendmail to make sure it is doing what
    #          you thought it should !
    #
    #       2. Criteria (optional and defaults to interval).  This is the
    #          specification of which files to move.  It defaults moving
    #          files whose age in the queues exceeds the interval.
    #          This field, if specified can be very complex - supporting
    #          aging by just about anything! see qtool(8) for details.
    #
    #       3. To queue.  This is the queue to which files will be moved.
    #          It may be fully qualified, or relative to /var/spool/mqueue.
    #
    #       4. From queue.  This is the queue from which files will be moved.
    #          It may be fully qualified, or relative to /var/spool/mqueue.
    #
    #       Samples:
    #       AGE_DATA="[['25m', '', 'hourly', 'main']]";
    #               Every 25 minutes, move any file older than 25 minutes from
    #               /var/spool/mqueue/main to /var/spool/mqueue/hourly
    #
    #       AGE_DATA="[['25m',      '', 'hourly', 'main'],\
    #               ['120m', '', 'daily',  'hourly']]";
    #               Same as the above, but also move files from the hourly queue
    #               to the daily queue after 120 minutes in the hourly queue.
    #
    #       AGE_DATA="[['25m',\
    #               '-e \'$msg{message}[0] == /Deferred: 452 4.2.2 Over quota/\'',\
    #               'overquota', 'main']]";
    #               Every 25 minutes, move all files deferred because of quota
    #               violations from /var/spool/mqueue/main to
    #               /var/spool/mqueue/overquota where they can be processed on
    #               a different interval, or by some other means.
    #
    #       If the above samples suggest Perl arrays, well, they are...
    #
    # AGE_DATA="";  Perl array  Queue aging data
    #
    AGE_DATA="";
    #
    #------------------------------------------------------------------------------
    #                               Dependant variables (set according to other variables)
    #
    #
    #------------------------------------------------------------------------------
    #                               Hidden variables (the blood be upon your hands)
    #
    DAEMON_RUNASUSER="No";
    #
    #------------------------------------------------------------------------------
    #                               Deprecated variables (kept for reference)
    #
    DAEMON_STATS="${DAEMON_MAILSTATS}";
    MSP_STATS="${MSP_MAILSTATS}";
    #
    #------------------------------------------------------------------------------
    #                               Unknown variables (kept for reference)
    #
    #------------------------------------------------------------------------------
    #
    
    /etc/mail/sendmail.mc
    >
    divert(-1)dnl
    #-----------------------------------------------------------------------------
    # $Sendmail: debproto.mc,v 8.14.3 2009-03-01 18:51:56 cowboy Exp $
    #
    # Copyright (c) 1998-2009 Richard Nelson.  All Rights Reserved.
    #
    # cf/debian/sendmail.mc.  Generated from sendmail.mc.in by configure.
    #
    # sendmail.mc prototype config file for building Sendmail 8.14.3
    #
    # Note: the .in file supports 8.7.6 - 9.0.0, but the generated
    #       file is customized to the version noted above.
    #
    # This file is used to configure Sendmail for use with Debian systems.
    #
    # If you modify this file, you will have to regenerate /etc/mail/sendmail.cf
    # by running this file through the m4 preprocessor via one of the following:
    #       * make   (or make -C /etc/mail)
    #       * sendmailconfig
    #       * m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
    # The first two options are preferred as they will also update other files
    # that depend upon the contents of this file.
    #
    # The best documentation for this .mc file is:
    # /usr/share/doc/sendmail-doc/cf.README.gz
    #
    #-----------------------------------------------------------------------------
    divert(0)dnl
    #
    #   Copyright (c) 1998-2005 Richard Nelson.  All Rights Reserved.
    #
    #  This file is used to configure Sendmail for use with Debian systems.
    #
    define(`_USE_ETC_MAIL_')dnl
    include(`/usr/share/sendmail/cf/m4/cf.m4')dnl
    VERSIONID(`$Id: sendmail.mc, v 8.14.3-9 2009-03-01 18:51:56 cowboy Exp $')
    OSTYPE(`debian')dnl
    DOMAIN(`debian-mta')dnl
    dnl # Items controlled by /etc/mail/sendmail.conf - DO NOT TOUCH HERE
    undefine(`confHOST_STATUS_DIRECTORY')dnl        #DAEMON_HOSTSTATS=
    dnl # Items controlled by /etc/mail/sendmail.conf - DO NOT TOUCH HERE
    dnl #
    dnl # General defines
    dnl #
    dnl # SAFE_FILE_ENV: [undefined] If set, sendmail will do a chroot()
    dnl #   into this directory before writing files.
    dnl #   If *all* your user accounts are under /home then use that
    dnl #   instead - it will prevent any writes outside of /home !
    dnl #   define(`confSAFE_FILE_ENV',             `')dnl
    dnl #
    dnl # Daemon options - restrict to servicing LOCALHOST ONLY !!!
    dnl # Remove `, Addr=' clauses to receive from any interface
    dnl # If you want to support IPv6, switch the commented/uncommentd lines
    dnl #
    FEATURE(`no_default_msa')dnl
    dnl DAEMON_OPTIONS(`Family=inet6, Name=MTA-v6, Port=smtp, Addr=::1')dnl
    DAEMON_OPTIONS(`Family=inet,  Name=MTA-v4, Port=smtp, Addr=127.0.0.1')dnl
    dnl DAEMON_OPTIONS(`Family=inet6, Name=MSP-v6, Port=submission, M=Ea, Addr=::1')dnl
    DAEMON_OPTIONS(`Family=inet,  Name=MSP-v4, Port=submission, M=Ea, Addr=127.0.0.1')dnl
    dnl #
    dnl # Be somewhat anal in what we allow
    define(`confPRIVACY_FLAGS',dnl
    `needmailhelo,needexpnhelo,needvrfyhelo,restrictqrun,restrictexpand,nobodyreturn,authwarnings')dnl
    dnl #
    dnl # Define connection throttling and window length
    define(`confCONNECTION_RATE_THROTTLE', `15')dnl
    define(`confCONNECTION_RATE_WINDOW_SIZE',`10m')dnl
    dnl #
    dnl # Features
    dnl #
    dnl # use /etc/mail/local-host-names
    FEATURE(`use_cw_file')dnl
    dnl #
    dnl # The access db is the basis for most of sendmail's checking
    FEATURE(`access_db', , `skip')dnl
    dnl #
    dnl # The greet_pause feature stops some automail bots - but check the
    dnl # provided access db for details on excluding localhosts...
    FEATURE(`greet_pause', `1000')dnl 1 seconds
    dnl #
    dnl # Delay_checks allows sender<->recipient checking
    FEATURE(`delay_checks', `friend', `n')dnl
    dnl #
    dnl # If we get too many bad recipients, slow things down...
    define(`confBAD_RCPT_THROTTLE',`3')dnl
    dnl #
    dnl # Stop connections that overflow our concurrent and time connection rates
    FEATURE(`conncontrol', `nodelay', `terminate')dnl
    FEATURE(`ratecontrol', `nodelay', `terminate')dnl
    dnl #
    dnl # If you're on a dialup link, you should enable this - so sendmail
    dnl # will not bring up the link (it will queue mail for later)
    dnl define(`confCON_EXPENSIVE',`True')dnl
    dnl #
    dnl # Dialup/LAN connection overrides
    dnl #
    include(`/etc/mail/m4/dialup.m4')dnl
    include(`/etc/mail/m4/provider.m4')dnl
    dnl #
    dnl # Default Mailer setup
    MAILER_DEFINITIONS
    MAILER(`local')dnl
    MAILER(`smtp')dnl
    dnl # Masquerading options
    FEATURE(`always_add_domain')dnl
    MASQUERADE_AS(`linux12.unix.nt')dnl
    FEATURE(`allmasquerade')dnl
    FEATURE(`masquerade_envelope')dnl
    
    /etc/resolv.conf
    >
    nameserver 192.168.15.12
    domain class12.unix.nt
    

    Статистика

    Время первой команды журнала17:58:14 2009- 6- 4
    Время последней команды журнала12:36:34 2009- 6- 5
    Количество командных строк в журнале101
    Процент команд с ненулевым кодом завершения, %28.71
    Процент синтаксически неверно набранных команд, % 2.97
    Суммарное время работы с терминалом *, час 2.45
    Количество командных строк в единицу времени, команда/мин 0.69
    Частота использования команд
    apt-get17|================| 16.67%
    nc13|============| 12.75%
    screen10|=========| 9.80%
    cat7|======| 6.86%
    ssh7|======| 6.86%
    dig6|=====| 5.88%
    /etc/init.d/sendmail5|====| 4.90%
    mutt5|====| 4.90%
    vim4|===| 3.92%
    kill4|===| 3.92%
    host3|==| 2.94%
    apt-cache3|==| 2.94%
    ping2|=| 1.96%
    cd2|=| 1.96%
    grep2|=| 1.96%
    ls2|=| 1.96%
    ifconfig1|| 0.98%
    ps1|| 0.98%
    muut1|| 0.98%
    1101|| 0.98%
    netstat1|| 0.98%
    кщroot1|| 0.98%
    d1|| 0.98%
    hostname1|| 0.98%
    setxkbmap1|| 0.98%
    whois1|| 0.98%
    ____
    *) Интервалы неактивности длительностью 30 минут и более не учитываются

    Справка

    Для того чтобы использовать LiLaLo, не нужно знать ничего особенного: всё происходит само собой. Однако, чтобы ведение и последующее использование журналов было как можно более эффективным, желательно иметь в виду следующее:
    1. В журнал автоматически попадают все команды, данные в любом терминале системы.

    2. Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.

    3. Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
      $ l s-l
      bash: l: command not found
      

    4. Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
      $ test 5 -lt 4
      Обратите внимание на то, что код завершения команды может быть отличен от нуля не только в тех случаях, когда команда была выполнена с ошибкой. Многие команды используют код завершения, например, для того чтобы показать результаты проверки

    5. Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
      $ find / -name abc
      find: /home/devi-orig/.gnome2: Keine Berechtigung
      find: /home/devi-orig/.gnome2_private: Keine Berechtigung
      find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung
      find: /home/devi-orig/.metacity: Keine Berechtigung
      find: /home/devi-orig/.inkscape: Keine Berechtigung
      ^C
      

    6. Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
      # id
      uid=0(root) gid=0(root) Gruppen=0(root)
      

    7. Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
      $ vi ~/.bashrc
      2a3,5
      >    if [ -f /usr/local/etc/bash_completion ]; then
      >         . /usr/local/etc/bash_completion
      >        fi
      

    8. Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
      $ patch ~/.bashrc
      В данном случае изменения применяются к файлу ~/.bashrc

    9. Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.

      Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.

    10. Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.

    11. Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора

    12. Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.

    13. Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.

    14. Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:

      $ whoami
      
      user
      
      $ #^ Интересно, кто я?
      
      в журнале это будет выглядеть так:
      $ whoami
      
      user
      
      Интересно, кто я?

    15. Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:

      $ whoami
      
      user
      
      $ cat > /dev/null #^ Интересно, кто я?
      
      Программа whoami выводит имя пользователя, под которым 
      мы зарегистрировались в системе.
      -
      Она не может ответить на вопрос о нашем назначении 
      в этом мире.
      
      В журнале это будет выглядеть так:
      $ whoami
      user
      
      Интересно, кто я?
      Программа whoami выводит имя пользователя, под которым
      мы зарегистрировались в системе.

      Она не может ответить на вопрос о нашем назначении
      в этом мире.
      Для разделения нескольких абзацев между собой используйте символ "-", один в строке.

    16. Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=

    17. Содержимое файла может быть показано в журнале. Для этого его нужно вывести с помощью программы cat. Если вывод команды отметить симоволами #!, содержимое файла будет показано в журнале в специально отведённой для этого секции.
    18. Для того чтобы вставить скриншот интересующего вас окна в журнал, нужно воспользоваться командой l3shot. После того как команда вызвана, нужно с помощью мыши выбрать окно, которое должно быть в журнале.
    19. Команды в журнале расположены в хронологическом порядке. Если две команды давались одна за другой, но на разных терминалах, в журнале они будут рядом, даже если они не имеют друг к другу никакого отношения.
      1
          2
      3   
          4
      
      Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.

    О программе

    LiLaLo (L3) расшифровывается как Live Lab Log.
    Программа разработана для повышения эффективности обучения Unix/Linux-системам.
    (c) Игорь Чубин, 2004-2008

    $Id$