/l3/users/clint/nt-lnet-2006-06-26/linux2.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 |
|
#ssh user@192.168.15.254
Subject: Install Windows! Don't use Linux!!!! Windows RULEZ Linux SUXX . 250 2.0.0 k5T7RjtA007018 Message accepted for delivery ^]q telnet> q Connection closed. user@herz:~$ user@herz:~$ exit logout Connection to 192.168.15.254 closed. |
#mail
No mail for root |
#mail
No mail for root |
#tail /var/log/mail.log
Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/Makefile... Updating sendmail.cf ... Jun 29 10:32:14 linux2 sm-mta[7041]: k5T7RjtA007018: 3: fl=0x2, mode=140777: SOCK localhost->[[UNIX: /dev/log]] Jun 29 10:32:14 linux2 sm-mta[7041]: k5T7RjtA007018: 5: fl=0x0, mode=100640: dev=3/6, ino=433790, nlink=1, u/gid=0/109, size=25 Jun 29 10:32:14 linux2 sm-mta[7041]: k5T7RjtA007018: 6: fl=0x8000, mode=100640: dev=3/1, ino=166994, nlink=1, u/gid=105/109, size=12288 Jun 29 10:32:14 linux2 sm-mta[7041]: k5T7RjtA007018: 7: fl=0x8000, mode=100640: dev=3/1, ino=166994, nlink=1, u/gid=105/109, size=12288 Jun 29 10:32:14 linux2 sm-mta[7041]: k5T7RjtA007018: 8: fl=0x1, mode=100640: dev=3/6, ino=433793, nlink=1, u/gid=0/109, size=672 Jun 29 10:32:14 linux2 sm-mta[7041]: k5T7RjtA007018: 9: fl=0x1, mode=10600: FIFO: dev=0/7, ino=15800, nlink=1, u/gid=0/109, size=0 Jun 29 10:32:14 linux2 sm-mta[7041]: k5T7RjtA007018: 10: fl=0x0, mode=10600: FIFO: dev=0/7, ino=15801, nlink=1, u/gid=0/109, size=0 Jun 29 10:32:14 linux2 sm-mta[7041]: k5T7RjtA007018: MCI@0x0: NULL Jun 29 10:32:14 linux2 sm-mta[7041]: k5T7RjtA007018: MCI@0x0: NULL Jun 29 10:32:14 linux2 sm-mta[7041]: k5T7RjtA007018: to=user, delay=00:00:49, xdelay=00:00:00, mailer=local, pri=30452, dsn=4.0.0, stat=Operating system error |
#less /var/log/mail.log
|
#apt-get install sensible
Reading package lists... Done Building dependency tree... Done E: Couldn't find package sensible |
#apt-get install sensible-mta
Reading package lists... Done Building dependency tree... Done E: Couldn't find package sensible-mta |
#apt-get install sensible-mda
The following NEW packages will be installed sensible-mda 0 upgraded, 1 newly installed, 0 to remove and 15 not upgraded. Need to get 202kB of archives. After unpacking 295kB of additional disk space will be used. WARNING: The following packages cannot be authenticated! sensible-mda Install these packages without verification [y/N]? Y Get: 1 http://debian.org.ua testing/main sensible-mda 8.13.7-1 [202kB] Fetched 202kB in 3s (59.9kB/s) Selecting previously deselected package sensible-mda. (Reading database ... 67303 files and directories currently installed.) Unpacking sensible-mda (from .../sensible-mda_8.13.7-1_i386.deb) ... Setting up sensible-mda (8.13.7-1) ... |
#pro
procmail prove |
#cat /etc/passwd | mail root
|
#mail
No mail for root |
#mail
No mail for root |
#mail
No mail for root |
#mail
No mail for root |
#mail
No mail for root |
#/etc/init.d/sendmail stop
OpenSSL is not installed, will not configure sendmail support for it. to install openssl, get openssl. To enable sendmail TLS support at a later date, invoke "/usr/share/sendmail/update_tls" Creating /etc/mail/relay-domains # Optional file... Updating Makefile ... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/Makefile... Updating sendmail.cf ... Stopping Mail Transport Agent: sendmail. |
#netstat -lnp | grep :25
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 6961/sendmail: MTA: |
#kill 6961
|
#netstat -lnp | grep :25
|
#/etc/init.d/sendmail start
Starting Mail Transport Agent: sendmail. |
#mail
No mail for root |
#cat /etc/passwd | mail root
OpenSSL is not installed, will not configure sendmail support for it. to install openssl, get openssl. To enable sendmail TLS support at a later date, invoke "/usr/share/sendmail/update_tls" Creating /etc/mail/relay-domains # Optional file... Updating Makefile ... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/Makefile... Updating sendmail.cf ... |
#mail
No mail for root |
#mail
No mail for root |
#ls /var/mail/
arpwatch user |
#ls -l /var/mail/
total 524 -rw-rw---- 1 arpwatch mail 20871 2006-06-26 21:22 arpwatch -rw-rw---- 1 user mail 504973 2006-06-29 10:34 user |
#less /etc/aliases
|
#su - user
l3-agent is already running: pid=3458; pidfile=/home/user/.lilalo/l3-agent.pid |
$exit
exit |
#apt-get install mutt
Reading package lists... Done Building dependency tree... Done mutt is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 15 not upgraded. |
#su - user
l3-agent is already running: pid=3458; pidfile=/home/user/.lilalo/l3-agent.pid |
$mutt
q:Quit d:Del u:Undel s:Save m:Mail r:Reply g:Group ?:Help 496 N Jun 29 Cron Daemon ( 3) Cron <root@linux2> rsync -auvz m01:/bin/ /tmp/etc2 497 N Jun 29 Cron Daemon ( 3) Cron <root@linux2> rsync -auvz m01:/bin/ /tmp/etc2 498 N Jun 29 Cron Daemon ( 3) Cron <root@linux2> rsync -auvz m01:/bin/ /tmp/etc2 499 N Jun 29 Cron Daemon ( 3) Cron <root@linux2> rsync -auvz m01:/bin/ /tmp/etc2 488 9 500 N Jun 29 Cron Daemon ( 3) Cron <root@linux2> rsync -auvz m01:/bin/ /tmp/etc2 490 9 501 N Jun 29 Cron Daemon ( 3) Cron <root@linux2> rsync -auvz m01:/bin/ /tmp/etc2 N - 523/523: Bill Gates Install Windows! Don't use Linux!!!! -- (all) end |
$exit
OpenSSL is not installed, will not configure sendmail support for it. to install openssl, get openssl. To enable sendmail TLS support at a later date, invoke "/usr/share/sendmail/update_tls" Creating /etc/mail/relay-domains # Optional file... Updating Makefile ... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/Makefile... Updating sendmail.cf ... exit |
#vi /etc/crontab
|
#rsync -auvz m01:/bin/ /tmp/etc2/
ssh: m01: Name or service not known rsync: connection unexpectedly closed (0 bytes received so far) [receiver] rsync error: error in rsync protocol data stream (code 12) at io.c(463) [receiver=2.6.8] |
#ping m01
ping: unknown host m01 |
#rsync -auvz m01.unix.nt:/bin/ /tmp/etc2/
ssh: m01.unix.nt: Name or service not known rsync: connection unexpectedly closed (0 bytes received so far) [receiver] rsync error: unexplained error (code 255) at io.c(463) [receiver=2.6.8] |
#rsync -auvz 192.168.15.1:/bin/ /tmp/etc2/
vdir zcat zcmp zdiff zegrep zfgrep zforce zgrep zless zmore znew sent 1596 bytes received 1596013 bytes 127808.72 bytes/sec total size is 3314637 speedup is 2.07 |
#rsync -auvz 192.168.15.1:/bin/ /tmp/etc2/
receiving file list ... done sent 16 bytes received 1426 bytes 137.33 bytes/sec total size is 3314637 speedup is 2298.64 |
#host 192.168.15.2
OpenSSL is not installed, will not configure sendmail support for it. to install openssl, get openssl. To enable sendmail TLS support at a later date, invoke "/usr/share/sendmail/update_tls" Creating /etc/mail/relay-domains # Optional file... Updating Makefile ... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/Makefile... Updating sendmail.cf ... Host 2.15.168.192.in-addr.arpa not found: 3(NXDOMAIN) |
#host 192.168.15.2
Host 2.15.168.192.in-addr.arpa not found: 3(NXDOMAIN) |
#/etc/init.d/bind restart
Stopping domain name service: named. Starting domain name service: named. |
#host 192.168.15.2
OpenSSL is not installed, will not configure sendmail support for it. to install openssl, get openssl. To enable sendmail TLS support at a later date, invoke "/usr/share/sendmail/update_tls" Creating /etc/mail/relay-domains # Optional file... Updating Makefile ... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/Makefile... Updating sendmail.cf ... ;; connection timed out; no servers could be reached |
#cat /etc/resolv.conf
Search unix.nt nameserver 127.0.0.1 |
#vi /etc/resolv.conf
1c1 < Search unix.nt --- > search unix.nt |
#host 192.168.15.2
Host 2.15.168.192.in-addr.arpa not found: 3(NXDOMAIN) |
#host 192.168.15.2
OpenSSL is not installed, will not configure sendmail support for it. to install openssl, get openssl. To enable sendmail TLS support at a later date, invoke "/usr/share/sendmail/update_tls" Creating /etc/mail/relay-domains # Optional file... Updating Makefile ... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/Makefile... Updating sendmail.cf ... Host 2.15.168.192.in-addr.arpa not found: 3(NXDOMAIN) |
#vi /etc/bind/named.conf
|
#vi /etc/bind/named.conf.options
|
#/etc/init.d/bind restart
to install openssl, get openssl. To enable sendmail TLS support at a later date, invoke "/usr/share/sendmail/update_tls" Creating /etc/mail/relay-domains # Optional file... Updating Makefile ... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/Makefile... Updating sendmail.cf ... Stopping domain name service: named. Starting domain name service: named. |
#host 192.168.15.2
2.15.168.192.in-addr.arpa domain name pointer linux2.linux.nt. |
#vi /etc/bind/named.conf.options
29,30c29,30 < 127.0.0.1/32 < 192.168.15.0/24 --- > 127.0.0.1/32; > 192.168.15.0/24; |
#/etc/init.d/bind restart
Stopping domain name service: named. Starting domain name service: named. |
#killall l3-agent
OpenSSL is not installed, will not configure sendmail support for it. to install openssl, get openssl. To enable sendmail TLS support at a later date, invoke "/usr/share/sendmail/update_tls" Creating /etc/mail/relay-domains # Optional file... Updating Makefile ... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/Makefile... Updating sendmail.cf ... |
#l3-agent
|
#telnet 192.168.15.15
to install openssl, get openssl. To enable sendmail TLS support at a later date, invoke "/usr/share/sendmail/update_tls" Creating /etc/mail/relay-domains # Optional file... Updating Makefile ... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/Makefile... Updating sendmail.cf ... Trying 192.168.15.15... telnet: Unable to connect to remote host: Connection refused |
#telnet 25
Trying 0.0.0.25... telnet: Unable to connect to remote host: Invalid argument |
#telnet 192.168.15.15 25
Updating sendmail.cf ... Trying 192.168.15.15... Connected to 192.168.15.15. Escape character is '^]'. 220 sergix.tech.inc ESMTP Sendmail 8.13.7/8.13.7/Debian-1; Thu, 29 Jun 2006 11:04:47 +0300; (No UCE/UBE) logging access from: m02(OK)-m02 [192.168.15.2] HELO zlo 250 sergix.tech.inc Hello m02 [192.168.15.2], pleased to meet you MAIL FROM: eeeee@mail.ee 250 2.1.0 eeeee@mail.ee... Sender ok RCPT TO: clint@sergey.unix.nt 550 5.7.1 clint@sergey.unix.nt... Relaying denied ^] telnet> q Connection closed. |
#ssh 192.168.15.15
to install openssl, get openssl. To enable sendmail TLS support at a later date, invoke "/usr/share/sendmail/update_tls" Creating /etc/mail/relay-domains # Optional file... Updating Makefile ... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/Makefile... Updating sendmail.cf ... Password: Password: |
#ssh clint@192.168.15.15
7.0.0.1 25mail$ (echo HELO ZLO; echo MAIL FROM: chubais@mail.ru; RCPT TO: user@sergey.unix.nt) | nc 12 -bash: RCPT: command not found 220 sergix.tech.inc ESMTP Sendmail 8.13.7/8.13.7/Debian-1; Thu, 29 Jun 2006 11:07:58 +0300; (No UCE/UBE) logging access from: localhost.localdomain(OK)-clint@localhost.localdomain [127.0.0.1] 250 sergix.tech.inc Hello clint@localhost.localdomain [127.0.0.1], pleased to meet you clint/etc/mail$ (echo HELO ZLO; echo MAIL FROM: chubais@mail.ru; echo clint/etc/mail$ (echo HELO ZLO; echo MAIL FROM: chubais@mail.ru; echo RCPT TO: user@sergey.unix.nt) | nc clint/etc/mail$ (echo HELO ZLO; echo MAIL FROM: chubais@mail.ru; echoRCPT TO: user@sergey.unix.nt) | nc clint/etc/mail$ (echo HELO ZLO; echo MAIL FROM: chubais@mail.ru; echRCPT TO: user@sergey.unix.nt) | nc 1 220 sergix.tech.inc ESMTP Sendmail 8.13.7/8.13.7/Debian-1; Thu, 29 Jun 2006 11:08:05 +0300; (No UCE/UBE) logging access from: localhost.localdomain(OK)-clint@localhost.localdomain [127.0.0.1] clint/etc/mail$ (echo HELO ZLO; echo MAIL FROM: chubais@mail.ru; eRCPT TO: user@sergey.unix.nt) | nc 127 250 sergix.tech.inc Hello clint@localhost.localdomain [127.0.0.1], pleased to meet youunix.nt) | nc 127 250 2.1.0 chubais@mail.ru... Sender ok 250 2.1.5 user@sergey.unix.nt... Recipient ok clint/etc/mail$ exit logout Connection to 192.168.15.15 closed. |
#telnet :25
telnet: could not resolve :25/telnet: Name or service not known |
#telnet 25
Trying 0.0.0.25... telnet: Unable to connect to remote host: Invalid argument |
#telnet 127.0.0.1 25
Trying 192.168.15.2... Connected to 192.168.15.2. Escape character is '^]'. 220 linux2.unix.nt.unix.nt ESMTP Sendmail 8.13.7/8.13.7/Debian-1; Thu, 29 Jun 2006 11:11:32 +0300; (No UCE/UBE) logging access from: linux2.unix.nt.unix.nt(OK)-linux2.unix.nt.unix.nt [192.168.15.2] MAIL Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. 220 linux2.unix.nt.unix.nt ESMTP Sendmail 8.13.7/8.13.7/Debian-1; Thu, 29 Jun 2006 11:09:45 +0300; (No UCE/UBE) logging access from: localhost.localdomain(OK)-localhost.localdomain [127.0.0.1] hello ... {q^H 500 5.5.1 Command unrecognized: "{" [q^H 500 5.5.1 Command unrecognized: "[" ^[q 500 5.5.1 Command unrecognized: " telnet> q ?Invalid command telnet> quit Connection closed. |
#(echo HELO ZLO; echo MAIL FROM: chubais@mail.ru; echo RCPT TO: user@sergey.unix.n
Creating /etc/mail/relay-domains # Optional file... Updating Makefile ... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/Makefile... Updating sendmail.cf ... ) | nc 192.168.15.1 554 linux1.unix.nt ESMTP not accepting messages 250 linux1.unix.nt Hello linux2.linux.nt [192.168.15.2] (may be forged), pleased to meet you 550 5.0.0 Command rejected 550 5.0.0 Command rejected |
#telnet 127.0.0.1 25
Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. 220 linux2.unix.nt.unix.nt ESMTP Sendmail 8.13.7/8.13.7/Debian-1; Thu, 29 Jun 2006 11:11:23 +0300; (No UCE/UBE) logging access from: localhost.localdomain(OK)-localhost.localdomain [127.0.0.1] hello 500 5.5.1 Command unrecognized: "hello" MAIL FROM:user@linux2.unix.nt 503 5.0.0 Polite people say HELO first RCPT TO:^[^[ 503 5.0.0 Need MAIL before RCPT ^] telnet> q Connection closed. |
#telnet 192.168.15.2 25
Creating /etc/mail/relay-domains # Optional file... Updating Makefile ... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/Makefile... Updating sendmail.cf ... Trying 192.168.15.2... Connected to 192.168.15.2. Escape character is '^]'. 220 linux2.unix.nt.unix.nt ESMTP Sendmail 8.13.7/8.13.7/Debian-1; Thu, 29 Jun 2006 11:11:32 +0300; (No UCE/UBE) logging access from: linux2.unix.nt.unix.nt(OK)-linux2.unix.nt.unix.nt [192.168.15.2] MAIL FROM: ^] telnet> q Connection closed. |
#telnet 192.168.15.1 25
RCPT TO: user@linux1.unix.nt 250 2.1.5 user@linux1.unix.nt... Recipient ok DATA 354 Enter mail, end with "." on a line by itself From: Igor Chubin <i@mail.ru> To: Kolya <user@linux1.unix.nt> Subject: TEST TEST! . 250 2.0.0 k5T8CtnD006508 Message accepted for delivery ^] telnet> q Connection closed. |
#tail -f /var/log/mail.log
Jun 29 11:17:07 linux2 sendmail[8248]: k5T8H7Q8008248: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30458, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1] Jun 29 11:17:38 linux2 sendmail[8253]: k5T8HcuB008253: from=root, size=258, class=0, nrcpts=1, msgid=<20060629081738.GA8246@linux2.unix.nt>, relay=root@localhost Jun 29 11:17:38 linux2 sendmail[8253]: k5T8HcuB008253: to=user@linux1.unix.nt, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30258, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1] Jun 29 11:18:07 linux2 sendmail[8262]: k5T8I7bg008262: from=root, size=458, class=0, nrcpts=1, msgid=<200606290818.k5T8I7bg008262@linux2.unix.nt.unix.nt>, relay=root@localhost Jun 29 11:18:07 linux2 sendmail[8262]: k5T8I7bg008262: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30458, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1] Jun 29 11:19:06 linux2 sendmail[8333]: k5T8J6SU008333: from=user, size=281, class=0, nrcpts=1, msgid=<20060629081906.GA8324@linux2.unix.nt>, relay=user@localhost Jun 29 11:19:06 linux2 sendmail[8333]: k5T8J6SU008333: to=user@linux2.unix.nt, ctladdr=user (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30281, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1] Jun 29 11:19:07 linux2 sendmail[8334]: k5T8J7iS008334: from=root, size=458, class=0, nrcpts=1, msgid=<200606290819.k5T8J7iS008334@linux2.unix.nt.unix.nt>, relay=root@localhost Jun 29 11:19:07 linux2 sendmail[8334]: k5T8J7iS008334: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30458, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1] :wq^H qJun 29 11:20:02 linux2 sm-msp-queue[8369]: k5T8GCUS008235: to=user@linux2.unix.nt, ctladdr=root (0/0), delay=00:03:50, xdelay=00:00:00, mailer=relay, pri=120258, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1] Jun 29 11:20:04 linux2 sm-msp-queue[8369]: k5T8HcuB008253: to=user@linux1.unix.nt, ctladdr=root (0/0), delay=00:02:26, xdelay=00:00:00, mailer=relay, pri=120258, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1] ^[ |
#mutt -m
mutt: option requires an argument -- m Mutt 1.5.11+cvs20060403 (2006-04-03) usage: mutt [ -nRyzZ ] [ -e <cmd> ] [ -F <file> ] [ -m <type> ] [ -f <file> ] mutt [ -nR ] [ -e <cmd> ] [ -F <file> ] -Q <query> [ -Q <query> ] [...] mutt [ -nR ] [ -e <cmd> ] [ -F <file> ] -A <alias> [ -A <alias> ] [...] mutt [ -nR ] [ -e <cmd> ] [ -F <file> ] -D mutt [ -nx ] [ -e <cmd> ] [ -a <file> ] [ -F <file> ] [ -H <file> ] [ -i <file> ] [ -s <subj> ] [ -b <addr> ] [ -c <addr> ] <addr> [ ... ] mutt [ -n ] [ -e <cmd> ] [ -F <file> ] -p mutt -v[v] options: ... -p recall a postponed message -Q <variable> query a configuration variable -R open mailbox in read-only mode -s <subj> specify a subject (must be in quotes if it has spaces) -v show version and compile-time definitions -x simulate the mailx send mode -y select a mailbox specified in your `mailboxes' list -z exit immediately if there are no messages in the mailbox -Z open the first folder with new message, exit immediately if none -h this help message |
#mutt
GNU nano 1.3.11 File: /tmp/mutt-linux2-0-8215-1 test [ Wrote 1 line ] |
#mutt
GNU nano 1.3.11 File: /tmp/mutt-linux2-0-8246-0 test [ Wrote 1 line ] |
#netsat -lnp| grep :25
OpenSSL is not installed, will not configure sendmail support for it. to install openssl, get openssl. To enable sendmail TLS support at a later date, invoke "/usr/share/sendmail/update_tls" Creating /etc/mail/relay-domains # Optional file... Updating Makefile ... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/Makefile... Updating sendmail.cf ... bash: netsat: command not found |
#netstat -lnp| grep :25
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 7312/sendmail: MTA: |
#mail user
Subject: test T . Cc: |
#su - user
l3-agent is already running: pid=8005; pidfile=/home/user/.lilalo/l3-agent.pid |
$killall l3-agent
OpenSSL is not installed, will not configure sendmail support for it. to install openssl, get openssl. To enable sendmail TLS support at a later date, invoke "/usr/share/sendmail/update_tls" Creating /etc/mail/relay-domains # Optional file... Updating Makefile ... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/Makefile... Updating sendmail.cf ... l3-agent(7841): Operation not permitted |
$l3-agent
l3-agent is already running: pid=8005; pidfile=/home/user/.lilalo/l3-agent.pid |
$kill 8005
|
$l3-agent
l3-agent is already running: pid=8005; pidfile=/home/user/.lilalo/l3-agent.pid |
$mail
Mail version 8.1.2 01/15/2001. Type ? for help. "/var/mail/user": 1 message 1 unread >U 1 igor@chub.in Thu Jun 29 10:34 16/479 test of SENDMAIL & t Message 1: From igor@chub.in Thu Jun 29 10:34:34 2006 Date: Thu, 29 Jun 2006 10:27:45 +0300 From: Igor Chubin <igor@chub.in> To: user@linux2.unix.nt Subject: test of SENDMAIL Content-Length: 6 Lines: 1 TEST! & At EOF & q Saved 1 message in /home/user/mbox |
$mutt
---Mutt: /var/mail/user [Msgs:0]---(threads/date)---------------------------------------------(all)--- Mailbox is unchanged. |
$exit
OpenSSL is not installed, will not configure sendmail support for it. to install openssl, get openssl. To enable sendmail TLS support at a later date, invoke "/usr/share/sendmail/update_tls" Creating /etc/mail/relay-domains # Optional file... Updating Makefile ... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/Makefile... Updating sendmail.cf ... exit |
#tail /var/log/daemon.log
Jun 29 10:40:35 linux2 named[7781]: master zone "0.in-addr.arpa" (IN) loaded (serial 1) Jun 29 10:40:35 linux2 named[7781]: master zone "255.in-addr.arpa" (IN) loaded (serial 1) Jun 29 10:40:35 linux2 named[7781]: master zone "linux2.unix.nt" (IN) loaded (serial 2006062701) Jun 29 10:40:35 linux2 named[7781]: slave zone "linux1.unix.nt" (IN) loaded (serial 200651103) Jun 29 10:40:35 linux2 named[7781]: master zone "fifa2006.unix.nt" (IN) loaded (serial 2006062701) Jun 29 10:40:35 linux2 named[7781]: listening on [127.0.0.1].53 (lo) Jun 29 10:40:35 linux2 named[7781]: listening on [192.168.15.2].53 (eth0) Jun 29 10:40:35 linux2 named[7781]: Forwarding source address is [::].32788 Jun 29 10:40:35 linux2 named[7781]: Forwarding source address is [0.0.0.0].32789 Jun 29 10:40:35 linux2 named[7782]: Ready to answer queries. |
#tail /var/log/mail.
tail: cannot open `/var/log/mail.' for reading: No such file or directory |
#tail /var/log/mail.log
Jun 29 11:20:06 linux2 sm-msp-queue[8369]: k5T7F1fw005348: to=root, ctladdr=root (0/0), delay=01:05:05, xdelay=00:00:00, mailer=relay, pri=930447, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1] Jun 29 11:20:06 linux2 sm-msp-queue[8369]: k5T7I1ZX005737: to=root, ctladdr=root (0/0), delay=01:02:05, xdelay=00:00:00, mailer=relay, pri=930447, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1] Jun 29 11:20:06 linux2 sm-msp-queue[8369]: k5T7G2K6005452: to=root, ctladdr=root (0/0), delay=01:04:04, xdelay=00:00:00, mailer=relay, pri=930459, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1] Jun 29 11:20:06 linux2 sm-msp-queue[8369]: k5T7H13K005585: to=root, ctladdr=root (0/0), delay=01:03:05, xdelay=00:00:00, mailer=relay, pri=930459, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1] Jun 29 11:20:08 linux2 sendmail[8376]: k5T8K8lI008376: from=root, size=458, class=0, nrcpts=1, msgid=<200606290820.k5T8K8lI008376@linux2.unix.nt.unix.nt>, relay=root@localhost Jun 29 11:20:08 linux2 sendmail[8376]: k5T8K8lI008376: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30458, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1] Jun 29 11:20:26 linux2 sendmail[8392]: k5T8KQBa008392: from=root, size=26, class=0, nrcpts=1, msgid=<200606290820.k5T8KQBa008392@linux2.unix.nt.unix.nt>, relay=root@localhost Jun 29 11:20:26 linux2 sendmail[8392]: k5T8KQBa008392: to=user, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30026, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1] Jun 29 11:21:08 linux2 sendmail[8526]: k5T8L8Y8008526: from=root, size=458, class=0, nrcpts=1, msgid=<200606290821.k5T8L8Y8008526@linux2.unix.nt.unix.nt>, relay=root@localhost Jun 29 11:21:08 linux2 sendmail[8526]: k5T8L8Y8008526: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30458, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1] |
#netstat -lnp | grep sendmail
tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN 7312/sendmail: MTA: tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 7312/sendmail: MTA: unix 2 [ ACC ] STREAM LISTENING 16225 7312/sendmail: MTA: /var/run/sendmail/mta/smcontrol |
#grep -r linux2.unix.nt.unix.nt /etc/mail
OpenSSL is not installed, will not configure sendmail support for it. to install openssl, get openssl. To enable sendmail TLS support at a later date, invoke "/usr/share/sendmail/update_tls" Creating /etc/mail/relay-domains # Optional file... Updating Makefile ... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/Makefile... Updating sendmail.cf ... |
#hostname
linux2.unix.nt |
#hostname -f
linux2.unix.nt.unix.nt |
#hostname linux2.unix.nt
|
#hostname -f
linux2.unix.nt.unix.nt |
#hostname -f linux2.unix.nt
Usage: hostname [-v] {hostname|-F file} set host name (from file) domainname [-v] {nisdomain|-F file} set NIS domain name (from file) hostname [-v] [-d|-f|-s|-a|-i|-y] display formated name hostname [-v] display host name hostname -V|--version|-h|--help print info and exit dnsdomainname=hostname -d, {yp,nis,}domainname=hostname -y -s, --short short host name -a, --alias alias names -i, --ip-address addresses for the host name -f, --fqdn, --long long host name (FQDN) -d, --domain DNS domain name -y, --yp, --nis NIS/YP domain name -F, --file read host name or NIS domain name from given file This command can get or set the host name or the NIS domain name. You can also get the DNS domain or the FQDN (fully qualified domain name). Unless you are using bind or NIS for host lookups you can change the FQDN (Fully Qualified Domain Name) and the DNS domain name (which is part of the FQDN) in the /etc/hosts file. |
#hostname linux2
OpenSSL is not installed, will not configure sendmail support for it. to install openssl, get openssl. To enable sendmail TLS support at a later date, invoke "/usr/share/sendmail/update_tls" Creating /etc/mail/relay-domains # Optional file... Updating Makefile ... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/Makefile... Updating sendmail.cf ... |
#hostname -f
hostname: No address associated with name |
#hostname -f
hostname: No address associated with name |
#vi /etc/hosts
|
#hostname -f
linux2.unix.nt |
#telnet 127.0.0.1 25
Creating /etc/mail/relay-domains # Optional file... Updating Makefile ... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/Makefile... Updating sendmail.cf ... Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. 220 linux2.unix.nt.unix.nt ESMTP Sendmail 8.13.7/8.13.7/Debian-1; Thu, 29 Jun 2006 11:23:00 +0300; (No UCE/UBE) logging access from: localhost.localdomain(OK)-localhost.localdomain [127.0.0.1] ^] telnet> q Connection closed. |
#echo test | mail user
|
#tail /var/log/daemon.log
Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/Makefile... Updating sendmail.cf ... Jun 29 10:40:35 linux2 named[7781]: master zone "0.in-addr.arpa" (IN) loaded (serial 1) Jun 29 10:40:35 linux2 named[7781]: master zone "255.in-addr.arpa" (IN) loaded (serial 1) Jun 29 10:40:35 linux2 named[7781]: master zone "linux2.unix.nt" (IN) loaded (serial 2006062701) Jun 29 10:40:35 linux2 named[7781]: slave zone "linux1.unix.nt" (IN) loaded (serial 200651103) Jun 29 10:40:35 linux2 named[7781]: master zone "fifa2006.unix.nt" (IN) loaded (serial 2006062701) Jun 29 10:40:35 linux2 named[7781]: listening on [127.0.0.1].53 (lo) Jun 29 10:40:35 linux2 named[7781]: listening on [192.168.15.2].53 (eth0) Jun 29 10:40:35 linux2 named[7781]: Forwarding source address is [::].32788 Jun 29 10:40:35 linux2 named[7781]: Forwarding source address is [0.0.0.0].32789 Jun 29 10:40:35 linux2 named[7782]: Ready to answer queries. |
Search unix.nt nameserver 127.0.0.1
Время первой команды журнала | 10:26:41 2006- 6-29 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 11:23:16 2006- 6-29 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 30.69 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.94 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.78 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ 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 |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008