/l3/users/eb/2009/linux3/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 :23 :24 :25 :26 :27 :28 :29 :30 :31 :32 :33 :34 :35 :36 :37 :38 |
|
#ls l /var/mail/mail
ls: cannot access l: No such file or directory /var/mail/mail |
#ls l /var/mail/mail
ls: cannot access l: No such file or directory /var/mail/mail |
#ls -l /var/mail/mail
-rw------- 1 mail mail 7465 2009-06-01 10:50 /var/mail/mail |
#ls -l /var/mail/mail
-rw------- 1 mail mail 7465 2009-06-01 10:50 /var/mail/mail |
#vi /etc/mail/sendmail.mc
--- /tmp/l3-saved-7966.588.28034 2009-06-04 18:06:36.000000000 +0300 +++ /etc/mail/sendmail.mc 2009-06-04 18:07:47.000000000 +0300 @@ -96,14 +96,13 @@ 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(`linux4')dnl FEATURE(`allmasquerade')dnl FEATURE(`masquerade_envelope')dnl +dnl # Default Mailer setup +MAILER_DEFINITIONS +MAILER(`local')dnl +MAILER(`smtp')dnl |
#/etc/init.d/send
sendmail sendsigs |
#/etc/init.d/send
sendmail sendsigs |
#-------------------------------------------------------------------------
cat: /etc/resolv: No such file or directory |
#-------------------------------------------------------------------------
cat: /etc/resolv: No such file or directory |
#nc 127.0.0.1 25
220 linux3.class3.unix.nt ESMTP Sendmail 8.14.3/8.14.3/Debian-9; Thu, 4 Jun 2009 18:17:56 +0300; (No UCE/UBE) logging access from: [127.0.0.1](FORGED)-localhost [127.0.0.1] (may be forged) HELO 501 5.0.0 HELO requires domain address HELO class3.unix.net 250 linux3.class3.unix.nt Hello localhost [127.0.0.1] (may be forged), pleased to meet you QUIT 221 2.0.0 linux3.class3.unix.nt closing connection |
#nc 127.0.0.1 25
220 linux3.class3.unix.nt ESMTP Sendmail 8.14.3/8.14.3/Debian-9; Thu, 4 Jun 2009 18:17:56 +0300; (No UCE/UBE) logging access from: [127.0.0.1](FORGED)-localhost [127.0.0.1] (may be forged) HELO 501 5.0.0 HELO requires domain address HELO class3.unix.net 250 linux3.class3.unix.nt Hello localhost [127.0.0.1] (may be forged), pleased to meet you QUIT 221 2.0.0 linux3.class3.unix.nt closing connection |
#netstat -nlp -A inet | grep send
tcp 0 0 127.0.0.1:587 0.0.0.0:* LISTEN 9921/sendmail: MTA: tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 9921/sendmail: MTA: |
#netstat -nlp -A inet | grep send
tcp 0 0 127.0.0.1:587 0.0.0.0:* LISTEN 9921/sendmail: MTA: tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 9921/sendmail: MTA: |
##### $Id: conncontrol.m4,v 1.4 2004/02/19 21:31:47 ca Exp $ #####
OSTYPE(`debian')dnl.mc" 108L, 4200C+q436f+q6b75+q6b64+q6b72+q6b6c+q2332+q2334+q2569+q2a37+q6b31 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. ... `needmailhelo,needexpnhelo,needvrfyhelo,restrictqrun,restrictexpand,nobodyreturn,authwarnings')dnl dnl # =0.0.0.0')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 "/etc/mail/sendmail.mc" 108L, 4198C written |
##### $Id: conncontrol.m4,v 1.4 2004/02/19 21:31:47 ca Exp $ #####
OSTYPE(`debian')dnl.mc" 108L, 4200C+q436f+q6b75+q6b64+q6b72+q6b6c+q2332+q2334+q2569+q2a37+q6b31 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. ... `needmailhelo,needexpnhelo,needvrfyhelo,restrictqrun,restrictexpand,nobodyreturn,authwarnings')dnl dnl # =0.0.0.0')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 "/etc/mail/sendmail.mc" 108L, 4198C written |
#nc 192.168.15.3 110
+OK Qpopper (version 4.0.9) at linux3.class3.unix.nt starting. <10324.1244129228@linux3.class3.unix.nt> USER user +OK Password required for user. PASS password +OK user has 1 visible message (0 hidden) in 432 octets. STAT +OK 1 432 LIST 1 +OK 1 432 TOP 1 10 ... Date: Thu, 4 Jun 2009 18:24:11 +0300 From: root <root@linux4> Message-Id: <200906041525.n54FOB33010313@linux3.class3.unix.nt> X-UIDL: pY3!!-8Q!!g(g"!Oa_"! test test test . QUIT +OK Pop server at linux3.class3.unix.nt signing off. |
#nc 192.168.15.3 110
+OK Qpopper (version 4.0.9) at linux3.class3.unix.nt starting. <10324.1244129228@linux3.class3.unix.nt> USER user +OK Password required for user. PASS password +OK user has 1 visible message (0 hidden) in 432 octets. STAT +OK 1 432 LIST 1 +OK 1 432 TOP 1 10 ... Date: Thu, 4 Jun 2009 18:24:11 +0300 From: root <root@linux4> Message-Id: <200906041525.n54FOB33010313@linux3.class3.unix.nt> X-UIDL: pY3!!-8Q!!g(g"!Oa_"! test test test . QUIT +OK Pop server at linux3.class3.unix.nt signing off. |
#apt-get install mutt
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: portmap Use 'apt-get autoremove' to remove them. The following extra packages will be installed: libgpgme11 libpth20 Suggested packages: gpgsm urlview mixmaster ... Selecting previously deselected package libgpgme11. Unpacking libgpgme11 (from .../libgpgme11_1.1.8-2_i386.deb) ... Selecting previously deselected package mutt. Unpacking mutt (from .../mutt_1.5.19-4_i386.deb) ... Processing triggers for man-db ... Processing triggers for menu ... Setting up libpth20 (2.0.7-12) ... Setting up libgpgme11 (1.1.8-2) ... Setting up mutt (1.5.19-4) ... Processing triggers for menu ... |
#apt-get install mutt
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: portmap Use 'apt-get autoremove' to remove them. The following extra packages will be installed: libgpgme11 libpth20 Suggested packages: gpgsm urlview mixmaster ... Selecting previously deselected package libgpgme11. Unpacking libgpgme11 (from .../libgpgme11_1.1.8-2_i386.deb) ... Selecting previously deselected package mutt. Unpacking mutt (from .../mutt_1.5.19-4_i386.deb) ... Processing triggers for man-db ... Processing triggers for menu ... Setting up libpth20 (2.0.7-12) ... Setting up libgpgme11 (1.1.8-2) ... Setting up mutt (1.5.19-4) ... Processing triggers for menu ... |
#dpkg -L mutt
/usr/share/locale/ga/LC_MESSAGES /usr/share/locale/ga/LC_MESSAGES/mutt.mo /usr/share/locale/zh_TW /usr/share/locale/zh_TW/LC_MESSAGES /usr/share/locale/zh_TW/LC_MESSAGES/mutt.mo /usr/share/locale/it /usr/share/locale/it/LC_MESSAGES /usr/share/locale/it/LC_MESSAGES/mutt.mo /usr/share/locale/lt /usr/share/locale/lt/LC_MESSAGES ... /usr/share/bug/mutt/control /usr/share/bug/mutt/script /usr/share/menu /usr/share/menu/mutt /usr/share/pixmaps /usr/share/pixmaps/mutt.xpm /usr/bin /usr/bin/smime_keys /usr/bin/mutt /usr/bin/mutt_dotlock |
#dpkg -L mutt
/usr/share/locale/ga/LC_MESSAGES /usr/share/locale/ga/LC_MESSAGES/mutt.mo /usr/share/locale/zh_TW /usr/share/locale/zh_TW/LC_MESSAGES /usr/share/locale/zh_TW/LC_MESSAGES/mutt.mo /usr/share/locale/it /usr/share/locale/it/LC_MESSAGES /usr/share/locale/it/LC_MESSAGES/mutt.mo /usr/share/locale/lt /usr/share/locale/lt/LC_MESSAGES ... /usr/share/bug/mutt/control /usr/share/bug/mutt/script /usr/share/menu /usr/share/menu/mutt /usr/share/pixmaps /usr/share/pixmaps/mutt.xpm /usr/bin /usr/bin/smime_keys /usr/bin/mutt /usr/bin/mutt_dotlock |
#strings `!!`
-HOMESPOOL +USE_SETGID +USE_DOTLOCK +DL_STANDALONE +USE_FCNTL -USE_FLOCK +USE_POP +USE_IMAP +USE_SMTP -USE_SSL_OPENSSL +USE_SSL_GNUTLS +USE_SASL +USE_GSS +HAVE_GETADDRINFO +HAVE_REGCOMP -USE_GNU_REGEX +HAVE_COLOR +HAVE_START_COLOR +HAVE_TYPEAHEAD +HAVE_BKGDSET +HAVE_CURS_SET +HAVE_META +HAVE_RESIZETERM +CRYPT_BACKEND_CLASSIC_PGP +CRYPT_BACKEND_CLASSIC_SMIME +CRYPT_BACKEND_GPGME -EXACT_ADDRESS -SUN_ATTACHMENT +ENABLE_NLS -LOCALES_HACK +COMPRESSED +HAVE_WC_FUNCS +HAVE_LANGINFO_CODESET +HAVE_LANGINFO_YESEXPR +HAVE_ICONV -ICONV_NONTRANS +HAVE_LIBIDN +HAVE_GETSID +USE_HCACHE ... maildir_commit_message(): unable to set time on file maildir_sync_message: %s: unable to find subdir! maildir_open_new_message (): Trying %s. maildir_open_new_message (): Success. Integer overflow -- can't allocate memory. mx_close_message (): unlinking %s mx_commit_message(): msg->write = %d, ctx->append = %d mx_open_message: fopen: %s: %s (errno %d). mx_open_message(): function not implemented for mailbox type %d. mx_check_mailbox: null or invalid context. |
#strings `!!`
-HOMESPOOL +USE_SETGID +USE_DOTLOCK +DL_STANDALONE +USE_FCNTL -USE_FLOCK +USE_POP +USE_IMAP +USE_SMTP -USE_SSL_OPENSSL +USE_SSL_GNUTLS +USE_SASL +USE_GSS +HAVE_GETADDRINFO +HAVE_REGCOMP -USE_GNU_REGEX +HAVE_COLOR +HAVE_START_COLOR +HAVE_TYPEAHEAD +HAVE_BKGDSET +HAVE_CURS_SET +HAVE_META +HAVE_RESIZETERM +CRYPT_BACKEND_CLASSIC_PGP +CRYPT_BACKEND_CLASSIC_SMIME +CRYPT_BACKEND_GPGME -EXACT_ADDRESS -SUN_ATTACHMENT +ENABLE_NLS -LOCALES_HACK +COMPRESSED +HAVE_WC_FUNCS +HAVE_LANGINFO_CODESET +HAVE_LANGINFO_YESEXPR +HAVE_ICONV -ICONV_NONTRANS +HAVE_LIBIDN +HAVE_GETSID +USE_HCACHE ... maildir_commit_message(): unable to set time on file maildir_sync_message: %s: unable to find subdir! maildir_open_new_message (): Trying %s. maildir_open_new_message (): Success. Integer overflow -- can't allocate memory. mx_close_message (): unlinking %s mx_commit_message(): msg->write = %d, ctx->append = %d mx_open_message: fopen: %s: %s (errno %d). mx_open_message(): function not implemented for mailbox type %d. mx_check_mailbox: null or invalid context. |
#strings `which mutt` | grep \.conf
Reading configuration file '%s'. /etc/resolv.conf -Q <variable> query a configuration variable Local configuration error. |
#strings `which mutt` | grep \.conf
Reading configuration file '%s'. /etc/resolv.conf -Q <variable> query a configuration variable Local configuration error. |
#mutt
q:Quit d:Del u:Undel s:Save m:Mail r:Reply g:Group 1 Jun 04 Mail Delivery S ( 42) Returned mail: see transcript for details 2 Jun 04 Mail Delivery S ( 46) Postmaster notify: see transcript for det Postmaster notify: see transcript for details [-- Attachment #2 --] 2 [-- Type: message/delivery-status, Encoding: 7bit, Size: 0.3K --] Reporting-MTA: dns; linux3.class3.unix.nt Received-From-MTA: DNS; linux3.class3.unix.nt *-Mutt: /var/mail/root [Msgs:2 4.1K]---(threads/date)------------------(all)--- Date: Thu, 4 Jun 2009 18:40:38 +0300 Message-Id: <200906041542.n54FecPU010550@linux3.class3.unix.nt>5.3]) Postmaster notify: see transcript for -- (85% 2 kept, 0 deleted. |
#mutt
q:Quit d:Del u:Undel s:Save m:Mail r:Reply g:Group 1 Jun 04 Mail Delivery S ( 42) Returned mail: see transcript for details 2 Jun 04 Mail Delivery S ( 46) Postmaster notify: see transcript for det Postmaster notify: see transcript for details [-- Attachment #2 --] 2 [-- Type: message/delivery-status, Encoding: 7bit, Size: 0.3K --] Reporting-MTA: dns; linux3.class3.unix.nt Received-From-MTA: DNS; linux3.class3.unix.nt *-Mutt: /var/mail/root [Msgs:2 4.1K]---(threads/date)------------------(all)--- Date: Thu, 4 Jun 2009 18:40:38 +0300 Message-Id: <200906041542.n54FecPU010550@linux3.class3.unix.nt>5.3]) Postmaster notify: see transcript for -- (85% 2 kept, 0 deleted. |
#vi /etc/mail/local-host-names
--- /tmp/l3-saved-10685.25013.22924 2009-06-04 18:54:17.000000000 +0300 +++ /etc/mail/local-host-names 2009-06-04 18:54:55.000000000 +0300 @@ -1,2 +1,3 @@ localhost +class3.unix.nt linux3.class3.unix.nt |
#mutt
Message-Id: <200906041542.n54FecPU010550@linux3.class3.unix.nt>5.3]) - 1/2: Mail Delivery Subsys Returned mail: see transcript for det -- (96%) Mailbox is unchanged. |
#mutt
Message-Id: <200906041542.n54FecPU010550@linux3.class3.unix.nt>5.3]) - 1/2: Mail Delivery Subsys Returned mail: see transcript for det -- (96%) Mailbox is unchanged. |
#nc 192.168.15.3 25
220 linux3.class3.unix.nt ESMTP Sendmail 8.14.3/8.14.3/Debian-9; Thu, 4 Jun 2009 18:59:51 +0300; (No UCE/UBE) logging access from: linux3.class3.unix.nt(OK)-linux3.class3.unix.nt [192.168.15.3] HELO class3.unix.nt 250 linux3.class3.unix.nt Hello linux3.class3.unix.nt [192.168.15.3], pleased to meet you MAIL FROM root@linux3.class3.unix.nt 501 5.5.2 Syntax error in parameters scanning "FROM" MAIL FROM: root@linux3.class3.unix.nt 250 2.1.0 root@linux3.class3.unix.nt... Sender ok RCPT TO: user@class3.unix.nt 250 2.1.5 user@class3.unix.nt... Recipient ok DATA 354 Enter mail, end with "." on a line by itself From: Sergey Dryomov To: Sergey Dryomov Subject: Test message This is the test message. Sorry :) WBR, root . 250 2.0.0 n54FxpZs010886 Message accepted for delivery QUIT 221 2.0.0 linux3.class3.unix.nt closing connection |
#nc 192.168.15.3 25
220 linux3.class3.unix.nt ESMTP Sendmail 8.14.3/8.14.3/Debian-9; Thu, 4 Jun 2009 18:59:51 +0300; (No UCE/UBE) logging access from: linux3.class3.unix.nt(OK)-linux3.class3.unix.nt [192.168.15.3] HELO class3.unix.nt 250 linux3.class3.unix.nt Hello linux3.class3.unix.nt [192.168.15.3], pleased to meet you MAIL FROM root@linux3.class3.unix.nt 501 5.5.2 Syntax error in parameters scanning "FROM" MAIL FROM: root@linux3.class3.unix.nt 250 2.1.0 root@linux3.class3.unix.nt... Sender ok RCPT TO: user@class3.unix.nt 250 2.1.5 user@class3.unix.nt... Recipient ok DATA 354 Enter mail, end with "." on a line by itself From: Sergey Dryomov To: Sergey Dryomov Subject: Test message This is the test message. Sorry :) WBR, root . 250 2.0.0 n54FxpZs010886 Message accepted for delivery QUIT 221 2.0.0 linux3.class3.unix.nt closing connection |
#nc 192.168.15.3 110
+OK Qpopper (version 4.0.9) at linux3.class3.unix.nt starting. <10918.1244131401@linux3.class3.unix.nt> USER user +OK Password required for user. PASS password +OK user has 2 visible messages (0 hidden) in 984 octets. STAT +OK 2 984 TOP 2 10 +OK Message follows Return-Path: <root@linux4> ... From: Sergey.Dryomov@linux4 To: Sergey@linux4, Dryomov@linux4 Subject: Test message X-UIDL: 2$D"!$bd"!2Y="!YGD"! This is the test message. Sorry :) WBR, root . QUIT +OK Pop server at linux3.class3.unix.nt signing off. |
#nc 192.168.15.3 110
+OK Qpopper (version 4.0.9) at linux3.class3.unix.nt starting. <10918.1244131401@linux3.class3.unix.nt> USER user +OK Password required for user. PASS password +OK user has 2 visible messages (0 hidden) in 984 octets. STAT +OK 2 984 TOP 2 10 +OK Message follows Return-Path: <root@linux4> ... From: Sergey.Dryomov@linux4 To: Sergey@linux4, Dryomov@linux4 Subject: Test message X-UIDL: 2$D"!$bd"!2Y="!YGD"! This is the test message. Sorry :) WBR, root . QUIT +OK Pop server at linux3.class3.unix.nt signing off. |
#ÑÑssh -l swd crimea-board.info
-s: Set your source address -t: Set the IP TOS field (default 0) -u: Use microsecond timestamps -v: Verbose -w: Set timeout for replies (default 5 sec) -A: Report AS# at each hop (from GRR) -I: use this IP protocol instead of UDP -M: Do RFC1191 path MTU discovery -O: Report owner at each hop (from DNS) -P: Parallel probing ... -U: Go to next hop on any success swd@crimea-board:~$ sudo traceroute 193.33.236.253 traceroute to 193.33.236.253 (193.33.236.253), 64 hops max, 40 byte packets 1 193.238.109.57 (193.238.109.57) 1 ms 1 ms 1 ms 2 core.crimea-com.net (193.238.109.58) 1 ms 1 ms 1 ms 3 core-ix.crimea-com.net (193.238.110.94) 1 ms 1 ms 1 ms 4 *^C swd@crimea-board:~$ exit logout Connection to crimea-board.info closed. |
#ÑÑssh -l swd crimea-board.info
-s: Set your source address -t: Set the IP TOS field (default 0) -u: Use microsecond timestamps -v: Verbose -w: Set timeout for replies (default 5 sec) -A: Report AS# at each hop (from GRR) -I: use this IP protocol instead of UDP -M: Do RFC1191 path MTU discovery -O: Report owner at each hop (from DNS) -P: Parallel probing ... -U: Go to next hop on any success swd@crimea-board:~$ sudo traceroute 193.33.236.253 traceroute to 193.33.236.253 (193.33.236.253), 64 hops max, 40 byte packets 1 193.238.109.57 (193.238.109.57) 1 ms 1 ms 1 ms 2 core.crimea-com.net (193.238.109.58) 1 ms 1 ms 1 ms 3 core-ix.crimea-com.net (193.238.110.94) 1 ms 1 ms 1 ms 4 *^C swd@crimea-board:~$ exit logout Connection to crimea-board.info closed. |
#ssh 212.109.52.53
ssh: connect to host 212.109.52.53 port 22: Connection refused |
#whois 212.109.52.53
% This is the RIPE Whois query server #2. % The objects are in RPSL format. % % The RIPE Database is subject to Terms and Conditions. % See http://www.ripe.net/db/support/db-terms-conditions.pdf % Note: This output has been filtered. % To receive output for a database update, use the "-B" flag % Information related to '212.109.52.48 - 212.109.52.55' inetnum: 212.109.52.48 - 212.109.52.55 netname: EXPRESS-BANK-GTUA ... fax-no: +380 44 2764269 e-mail: dato@express.kiev.ua nic-hdl: DG885-RIPE source: RIPE # Filtered % Information related to '212.109.32.0/19AS12530' route: 212.109.32.0/19 descr: SOL Small Delegated Block origin: AS12530 mnt-by: GTUA-RT-MNT source: RIPE # Filtered |
#whois 212.109.32.0
% This is the RIPE Whois query server #1. % The objects are in RPSL format. % % The RIPE Database is subject to Terms and Conditions. % See http://www.ripe.net/db/support/db-terms-conditions.pdf % Note: This output has been filtered. % To receive output for a database update, use the "-B" flag. % Information related to '212.109.32.0 - 212.109.32.127' inetnum: 212.109.32.0 - 212.109.32.127 netname: CORENET-STAFF-GTUA ... tech-c: OR816-RIPE nic-hdl: GTUA-RIPE mnt-by: GTUA-MNT source: RIPE # Filtered % Information related to '212.109.32.0/19AS12530' route: 212.109.32.0/19 descr: SOL Small Delegated Block origin: AS12530 mnt-by: GTUA-RT-MNT source: RIPE # Filtered |
#dig krymtel.net
; <<>> DiG 9.6.0-P1 <<>> krymtel.net ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 37853 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 0 ;; QUESTION SECTION: ;krymtel.net. IN A ;; ANSWER SECTION: krymtel.net. 86400 IN A 193.178.145.154 ;; AUTHORITY SECTION: krymtel.net. 86400 IN NS ns2.krymtel.net. krymtel.net. 86400 IN NS ns1.krymtel.net. ;; Query time: 607 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Fri Jun 5 10:41:31 2009 ;; MSG SIZE rcvd: 81 |
#dig krymtel.net
; <<>> DiG 9.6.0-P1 <<>> krymtel.net ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 37853 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 0 ;; QUESTION SECTION: ;krymtel.net. IN A ;; ANSWER SECTION: krymtel.net. 86400 IN A 193.178.145.154 ;; AUTHORITY SECTION: krymtel.net. 86400 IN NS ns2.krymtel.net. krymtel.net. 86400 IN NS ns1.krymtel.net. ;; Query time: 607 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Fri Jun 5 10:41:31 2009 ;; MSG SIZE rcvd: 81 |
#dig ns1.krymtel.net
; <<>> DiG 9.6.0-P1 <<>> ns1.krymtel.net ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 35792 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 1 ;; QUESTION SECTION: ;ns1.krymtel.net. IN A ;; ANSWER SECTION: ns1.krymtel.net. 86400 IN A 195.216.212.138 ;; AUTHORITY SECTION: krymtel.net. 86349 IN NS ns2.krymtel.net. krymtel.net. 86349 IN NS ns1.krymtel.net. ;; ADDITIONAL SECTION: ns2.krymtel.net. 86400 IN A 91.198.175.2 ;; Query time: 78 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Fri Jun 5 10:42:22 2009 ;; MSG SIZE rcvd: 97 |
#dig ns1.krymtel.net
; <<>> DiG 9.6.0-P1 <<>> ns1.krymtel.net ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 35792 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 1 ;; QUESTION SECTION: ;ns1.krymtel.net. IN A ;; ANSWER SECTION: ns1.krymtel.net. 86400 IN A 195.216.212.138 ;; AUTHORITY SECTION: krymtel.net. 86349 IN NS ns2.krymtel.net. krymtel.net. 86349 IN NS ns1.krymtel.net. ;; ADDITIONAL SECTION: ns2.krymtel.net. 86400 IN A 91.198.175.2 ;; Query time: 78 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Fri Jun 5 10:42:22 2009 ;; MSG SIZE rcvd: 97 |
#dig ns2.krymtel.net
; <<>> DiG 9.6.0-P1 <<>> ns2.krymtel.net ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 53148 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 1 ;; QUESTION SECTION: ;ns2.krymtel.net. IN A ;; ANSWER SECTION: ns2.krymtel.net. 86391 IN A 91.198.175.2 ;; AUTHORITY SECTION: krymtel.net. 86340 IN NS ns2.krymtel.net. krymtel.net. 86340 IN NS ns1.krymtel.net. ;; ADDITIONAL SECTION: ns1.krymtel.net. 86391 IN A 195.216.212.138 ;; Query time: 1 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Fri Jun 5 10:42:31 2009 ;; MSG SIZE rcvd: 97 |
#dig ns2.krymtel.net
; <<>> DiG 9.6.0-P1 <<>> ns2.krymtel.net ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 53148 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 1 ;; QUESTION SECTION: ;ns2.krymtel.net. IN A ;; ANSWER SECTION: ns2.krymtel.net. 86391 IN A 91.198.175.2 ;; AUTHORITY SECTION: krymtel.net. 86340 IN NS ns2.krymtel.net. krymtel.net. 86340 IN NS ns1.krymtel.net. ;; ADDITIONAL SECTION: ns1.krymtel.net. 86391 IN A 195.216.212.138 ;; Query time: 1 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Fri Jun 5 10:42:31 2009 ;; MSG SIZE rcvd: 97 |
#ssh -l swd crimea-board.info
Password: Password: Linux crimea-board.info 2.6.27 #1 SMP Fri Oct 10 12:30:02 EEST 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. Last login: Fri Jun 5 10:11:07 2009 from 194.150.93.78 swd@crimea-board:~$ sudo traceroute 193.33.236.253 [sudo] password for swd: traceroute to 193.33.236.253 (193.33.236.253), 64 hops max, 40 byte packets 1 193.238.109.57 (193.238.109.57) 1 ms 1 ms 0 ms 2 core.crimea-com.net (193.238.109.58) 1 ms 1 ms 1 ms 3 core-ix.crimea-com.net (193.238.110.94) 1 ms 1 ms 2 ms 4 *^C swd@crimea-board:~$ exit logout Connection to crimea-board.info closed. |
#ssh -l swd crimea-board.info
Password: Password: Linux crimea-board.info 2.6.27 #1 SMP Fri Oct 10 12:30:02 EEST 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. Last login: Fri Jun 5 10:11:07 2009 from 194.150.93.78 swd@crimea-board:~$ sudo traceroute 193.33.236.253 [sudo] password for swd: traceroute to 193.33.236.253 (193.33.236.253), 64 hops max, 40 byte packets 1 193.238.109.57 (193.238.109.57) 1 ms 1 ms 0 ms 2 core.crimea-com.net (193.238.109.58) 1 ms 1 ms 1 ms 3 core-ix.crimea-com.net (193.238.110.94) 1 ms 1 ms 2 ms 4 *^C swd@crimea-board:~$ exit logout Connection to crimea-board.info closed. |
#vi /etc/mail/sendmail.mc
--- /tmp/l3-saved-3756.3589.29125 2009-06-05 12:36:32.000000000 +0300 +++ /etc/mail/sendmail.mc 2009-06-05 12:37:22.000000000 +0300 @@ -99,7 +99,7 @@ dnl # Masquerading options FEATURE(`always_add_domain')dnl -MASQUERADE_AS(`linux4')dnl +MASQUERADE_AS(`class3.unix.nt')dnl FEATURE(`allmasquerade')dnl FEATURE(`masquerade_envelope')dnl dnl # Default Mailer setup |
#/etc/init.d/sendmail restart
Restarting Mail Transport Agent (MTA): sendmail. |
#ls -l /etc/alternatives/
total 4 lrwxrwxrwx 1 root root 41 2009-06-04 17:56 aliases.5.gz -> /usr/share/man/man5/aliases.sendmail.5.gz lrwxrwxrwx 1 root root 13 2009-06-01 11:35 awk -> /usr/bin/mawk lrwxrwxrwx 1 root root 29 2009-06-01 11:35 awk.1.gz -> /usr/share/man/man1/mawk.1.gz lrwxrwxrwx 1 root root 38 2009-06-01 11:35 builtins.7.gz -> /usr/share/man/man7/bash-builtins.7.gz lrwxrwxrwx 1 root root 12 2009-06-01 11:35 c++ -> /usr/bin/g++ lrwxrwxrwx 1 root root 16 2009-06-01 11:35 c89 -> /usr/bin/c89-gcc lrwxrwxrwx 1 root root 32 2009-06-01 11:35 c89.1.gz -> /usr/share/man/man1/c89-gcc.1.gz lrwxrwxrwx 1 root root 16 2009-06-01 11:35 c99 -> /usr/bin/c99-gcc lrwxrwxrwx 1 root root 32 2009-06-01 11:35 c99.1.gz -> /usr/share/man/man1/c99-gcc.1.gz ... lrwxrwxrwx 1 root root 22 2009-06-01 11:35 x-session-manager -> /usr/bin/xfce4-session lrwxrwxrwx 1 root root 38 2009-06-01 11:35 x-session-manager.1.gz -> /usr/share/man/man1/xfce4-session.1.gz lrwxrwxrwx 1 root root 15 2009-06-01 11:35 x-terminal-emulator -> /usr/bin/lxterm lrwxrwxrwx 1 root root 31 2009-06-01 11:35 x-terminal-emulator.1.gz -> /usr/share/man/man1/lxterm.1.gz lrwxrwxrwx 1 root root 24 2009-06-01 11:35 xvncviewer -> /usr/bin/xtightvncviewer lrwxrwxrwx 1 root root 40 2009-06-01 11:35 xvncviewer.1.gz -> /usr/share/man/man1/xtightvncviewer.1.gz lrwxrwxrwx 1 root root 14 2009-06-01 11:35 x-window-manager -> /usr/bin/xfwm4 lrwxrwxrwx 1 root root 30 2009-06-01 11:35 x-window-manager.1.gz -> /usr/share/man/man1/xfwm4.1.gz lrwxrwxrwx 1 root root 18 2009-06-01 11:35 x-www-browser -> /usr/bin/iceweasel lrwxrwxrwx 1 root root 34 2009-06-01 11:35 x-www-browser.1.gz -> /usr/share/man/man1/iceweasel.1.gz |
#echo $EDITOR
|
#mutt
q:Quit d:Del u:Undel s:Save m:Mail r:Reply g:Group ?:Help 1 D Jun 04 Mail Delivery S ( 42) Returned mail: see transcript for details 1 D Jun 04 Mail Delivery S ( 42) Returned mail: see transcript for details 2 D Jun 04 Mail Del stmaster notify: s *-Mutt: /var/mail/root [Msgs:2 Del:2 4.1K]---(threads/date)-------------------------------------------------------------(all)--- Help for index |
#cat /etc/host
cat: /etc/host: No such file or directory |
#cat /etc/hosts
cat: /etc/hosts: No such file or directory |
#cat /etc/hostname
linux3 |
#$Sendmail: debproto.mc,v 8.14.3 2009-03-01 18:51:56 cowboy Exp $
; <<>> DiG 9.6.0-P1 <<>> class3.unix.nt ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 57520 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;class3.unix.nt. IN A ;; AUTHORITY SECTION: class3.unix.nt. 3600 IN SOA linux3.class3.unix.nt. root.class3.unit.nt. 2009060402 10800 43200 259200 3600 ;; Query time: 1 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Fri Jun 5 12:58:06 2009 ;; MSG SIZE rcvd: 92 |
#dig class3.unix.nt MX
; <<>> DiG 9.6.0-P1 <<>> class3.unix.nt MX ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 26164 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 2 ;; QUESTION SECTION: ;class3.unix.nt. IN MX ;; ANSWER SECTION: class3.unix.nt. 10800 IN MX 10 linux3.class3.unix.nt. ;; AUTHORITY SECTION: class3.unix.nt. 10800 IN NS linux3.class3.unix.nt. ;; ADDITIONAL SECTION: linux3.class3.unix.nt. 10800 IN A 192.168.15.3 linux3.class3.unix.nt. 10800 IN A 192.168.202.2 ;; Query time: 1 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Fri Jun 5 12:58:12 2009 ;; MSG SIZE rcvd: 101 |
#cat /etc/mail/local-host-names
localhost class3.unix.nt linux3.class3.unix.nt |
#mutt
To: user@class4.unix.nt Cc: Bcc: Subject: Test_1 from class3 Reply-To: Fcc: ~/sent Mix: <no chain defined> Security: Clear -- Attachments ---Mutt: /var/mail/root [Msgs:0]---(threads/date)------------------------------------------------------------------------(all)--- Mailbox is unchanged. |
#mutt
---Mutt: /var/mail/root [Msgs:0]---(threads/date)------------------------------------------------------------------------(all)--- Mailbox is unchanged. |
#ifcongig -a
bash: ifcongig: command not found |
#ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:07:e9:3c:2c:ba inet addr:192.168.15.3 Bcast:192.168.15.255 Mask:255.255.255.0 inet6 addr: fe80::207:e9ff:fe3c:2cba/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:17567 errors:0 dropped:0 overruns:0 frame:0 TX packets:17934 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:5848184 (5.5 MiB) TX bytes:2245668 (2.1 MiB) eth0.102 Link encap:Ethernet HWaddr 00:07:e9:3c:2c:ba inet addr:192.168.102.1 Bcast:192.168.102.255 Mask:255.255.255.0 ... TX packets:1068 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:123230 (120.3 KiB) TX bytes:123230 (120.3 KiB) tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 inet addr:172.16.1.2 P-t-P:172.16.1.1 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) |
#ping 192.168.202.1
PING 192.168.202.1 (192.168.202.1) 56(84) bytes of data. 64 bytes from 192.168.202.1: icmp_seq=1 ttl=64 time=0.711 ms 64 bytes from 192.168.202.1: icmp_seq=2 ttl=64 time=0.678 ms ^C --- 192.168.202.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1000ms rtt min/avg/max/mdev = 0.678/0.694/0.711/0.031 ms |
#ip route
172.16.1.1 dev tun0 proto kernel scope link src 172.16.1.2 192.168.101.0/24 via 172.16.1.1 dev tun0 192.168.102.0/24 dev eth0.102 proto kernel scope link src 192.168.102.1 192.168.15.0/24 dev eth0 proto kernel scope link src 192.168.15.3 192.168.202.0/24 dev eth0.202 proto kernel scope link src 192.168.202.2 default via 192.168.202.1 dev eth0.202 |
#ip route change default via 192.168.15.254 dev eth0
|
#ip route change default via 192.168.202.1 dev eth0.202
|
#vi /etc/mail/access
|
linux3
localhost class3.unix.nt linux3.class3.unix.nt
nameserver 127.0.0.1 domain class3.unix.nt
Время первой команды журнала | 18:04:21 2009- 6- 4 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 14:21:22 2009- 6- 5 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 12.87 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.99 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.80 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.93 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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