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

Содержание

Журнал

Среда (12/19/12)

/dev/pts/0
15:42:14
#/etc/init.d/xinetd restart
Stopping internet superserver: xinetd.
Starting internet superserver: xinetd.
15:42:22
#tail /var/log/daemon.log
Dec 19 16:40:55 debian1 xinetd[2219]: Reading included configuration file: /usr/local/etc/xinetd.d/echo [file=/usr/local/etc/xinetd.d/echo] [line=11]
Dec 19 16:40:55 debian1 xinetd[2219]: Reading included configuration file: /usr/local/etc/xinetd.d/telnet [file=/usr/local/etc/xinetd.d/telnet] [line=10]
Dec 19 16:40:55 debian1 xinetd[2219]: xinetd Version 2.3.14 started with libwrap loadavg options compiled in.
Dec 19 16:40:55 debian1 xinetd[2219]: Started working: 3 available services
Dec 19 16:42:22 debian1 xinetd[2219]: Exiting...
Dec 19 16:42:22 debian1 xinetd[2276]: Reading included configuration file: /usr/local/etc/xinetd.d/chargen [file=/etc/xinetd.conf] [line=37]
Dec 19 16:42:22 debian1 xinetd[2276]: Reading included configuration file: /usr/local/etc/xinetd.d/echo [file=/usr/local/etc/xinetd.d/echo] [line=11]
Dec 19 16:42:22 debian1 xinetd[2276]: Reading included configuration file: /usr/local/etc/xinetd.d/telnet [file=/usr/local/etc/xinetd.d/telnet] [line=10]
Dec 19 16:42:22 debian1 xinetd[2276]: xinetd Version 2.3.14 started with libwrap loadavg options compiled in.
Dec 19 16:42:22 debian1 xinetd[2276]: Started working: 3 available services
15:42:27
#telnet 127.0.0.1
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
Debian GNU/Linux 6.0
debian1 login: ^CConnection closed by foreign host.
15:42:36
#telnet 192.168.13.2
Trying 192.168.13.2...
Connected to 192.168.13.2.
Escape character is '^]'.
Connection closed by foreign host.
15:43:33
#vim telnet
15:43:54
#{
{
   flags          = REUSE
   socket_type    = stream
   wait           = no
                              .0/24 127.0.0.1
}  user           = root
~
~
~
~
...
~
~
~
~
~
~
~
~
~
"telnet" 11L, 223C записано
15:44:07
#/etc/init.d/xinetd restart
Stopping internet superserver: xinetd.
Starting internet superserver: xinetd.
15:44:12
#vim /etc/rc.local
15:45:25
#~
Display all 162 possibilities? (y or n)
acpi/                   fstab                   lynx-cur/               rc5.d/
adduser.conf            gai.conf                magic                   rc6.d/
adjtime                 groff/                  magic.mime              rc.local
aliases                 group                   mailcap                 rcS.d/
alternatives/           group-                  mailcap.order           reportbug.conf
anacrontab              grub.d/                 mailname                resolv.conf
apache2/                gshadow                 mail.rc                 rmt
apm/                    gshadow-                manpath.config          rpc
apt/                    gssapi_mech.conf        mime.types              rsyslog.conf
...
dhcp/                   ld.so.conf.d/           profile.d/              updatedb.conf
dictionaries-common/    lilalo/                 protocols               vim/
discover.conf.d/        locale.alias            .pwd.lock               w3m/
discover-modprobe.conf  locale.gen              python/                 wgetrc
dpkg/                   localtime               python2.6/              X11/
emacs/                  logcheck/               rc0.d/                  xinetd.conf
email-addresses         login.defs              rc1.d/                  xinetd.d/
environment             logrotate.conf          rc2.d/                  xml/
exim4/                  logrotate.d/            rc3.d/
fonts/                  lsb-base/               rc4.d/
15:45:25
#vim /etc/r
15:45:25
#ls -hl /etc/init.d/
acpid                  hostname.sh            mtab.sh                sendsigs
anacron                hwclockfirst.sh        netdiag                single
apache2                hwclock.sh             networking             skeleton
atd                    ifupdown               nfs-common             ssh
bootlogd               ifupdown-clean         openbsd-inetd          stop-bootlogd
bootlogs               kbd                    pcmciautils            stop-bootlogd-single
bootmisc.sh            keyboard-setup         portmap                sudo
checkfs.sh             killprocs              pppd-dns               udev
checkroot.sh           module-init-tools      procps                 udev-mtab
console-setup          mountall-bootclean.sh  rc                     umountfs
cron                   mountall.sh            rc.local               umountnfs.sh
.depend.boot           mountdevsubfs.sh       rcS                    umountroot
.depend.start          mountkernfs.sh         README                 urandom
.depend.stop           mountnfs-bootclean.sh  reboot                 x11-common
exim4                  mountnfs.sh            rmnologin              xinetd
halt                   mountoverflowtmp       rsyslog
15:45:25
#chkconfig --help
usage:
        chkconfig -A|--allservices              (together with -l: show all services)
        chkconfig -t|--terse [names]            (shows the links)
        chkconfig -e|--edit  [names]            (configure services)
        chkconfig -s|--set   [name state]...    (configure services)
        chkconfig -l|--list [--deps] [names]    (shows the links)
        chkconfig -c|--check name [state]       (check state)
        chkconfig -a|--add   [names]            (runs insserv)
        chkconfig -d|--del   [names]            (runs insserv -r)
        chkconfig -h|--help                     (print usage)
        chkconfig -f|--force ...                (call insserv with -f)
        chkconfig [name]           same as chkconfig -t
        chkconfig name state...    same as chkconfig -s name state
15:51:18
#chkconfig -l
acpid                     0:off  1:off  2:on   3:on   4:on   5:on   6:off
anacron                   0:off  1:off  2:on   3:on   4:on   5:on   6:off
apache2                   0:off  1:off  2:on   3:on   4:on   5:on   6:off
atd                       0:off  1:off  2:on   3:on   4:on   5:on   6:off
bootlogd                  0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on
bootlogs                  0:off  1:on   2:on   3:on   4:on   5:on   6:off
bootmisc.sh               0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on
checkfs.sh                0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on
checkroot.sh              0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on
console-setup             0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on
...
umountroot                0:off  1:off  2:off  3:off  4:off  5:off  6:off
urandom                   0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on
x11-common                0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on
xinetd                    0:off  1:off  2:on   3:on   4:on   5:on   6:off
xinetd based services:
        chargen:            off
        daytime:            off
        discard:            off
        echo:               off
        time:               off
15:51:27
#chkconfig
acpid                  on
anacron                on
apache2                on
atd                    on
bootlogd               on
bootlogs               on
bootmisc.sh            on
chargen                off
checkfs.sh             on
checkroot.sh           on
...
sudo                   on
time                   off
udev                   on
udev-mtab              on
umountfs               off
umountnfs.sh           off
umountroot             off
urandom                on
x11-common             on
xinetd                 on
15:52:05
#chkconfig -l
acpid                     0:off  1:off  2:on   3:on   4:on   5:on   6:off
anacron                   0:off  1:off  2:on   3:on   4:on   5:on   6:off
apache2                   0:off  1:off  2:on   3:on   4:on   5:on   6:off
atd                       0:off  1:off  2:on   3:on   4:on   5:on   6:off
bootlogd                  0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on
bootlogs                  0:off  1:on   2:on   3:on   4:on   5:on   6:off
bootmisc.sh               0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on
checkfs.sh                0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on
checkroot.sh              0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on
console-setup             0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on
...
umountroot                0:off  1:off  2:off  3:off  4:off  5:off  6:off
urandom                   0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on
x11-common                0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on
xinetd                    0:off  1:off  2:on   3:on   4:on   5:on   6:off
xinetd based services:
        chargen:            off
        daytime:            off
        discard:            off
        echo:               off
        time:               off
15:52:06
#vim /etc/ssh/sshd_config
15:53:06
#PermitEmptyPasswords no
The authenticity of host 'localhost (127.0.0.1)' can't be established.
RSA key fingerprint is 62:dd:81:b1:0d:50:38:41:e7:82:ea:89:d5:48:16:e0.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'localhost' (RSA) to the list of known hosts.
user@localhost's password:
15:53:47
#scp -r root@192.168.13.2:/etc ~/etc-that
root@192.168.13.2's password:
inittab                                                                 100% 2008     2.0KB/s   00:00
profile                                                                 100%  823     0.8KB/s   00:00
securetty                                                               100% 3828     3.7KB/s   00:00
l3config.pm                                                             100% 5830     5.7KB/s   00:00
anacron                                                                 100%  753     0.7KB/s   00:00
catalog.old                                                             100%  335     0.3KB/s   00:00
xml-core.cat                                                            100%  391     0.4KB/s   00:00
catalog                                                                 100%  366     0.4KB/s   00:00
ucf.conf