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

Содержание

Журнал

Пятница (04/08/11)

/dev/pts/7
10:03:21
#smbclient -o username=Administrator,password=rootpass \\192.168.15
username=Administrator,password=rootpass: Not enough '\' characters in service
Usage: smbclient [-?] [-?EgV] [-?EgV] [-?EgVNkP] [-?|--help] [--usage]
        [-R|--name-resolve NAME-RESOLVE-ORDER] [-M|--message HOST]
        [-I|--ip-address IP] [-E|--stderr] [-L|--list HOST] [-t|--terminal CODE]
        [-m|--max-protocol LEVEL] [-T|--tar <c|x>IXFqgbNan] [-D|--directory DIR]
        [-c|--command STRING] [-b|--send-buffer BYTES] [-p|--port PORT]
        [-g|--grepable] [-d|--debuglevel DEBUGLEVEL]
        [-s|--configfile CONFIGFILE] [-l|--log-basename LOGFILEBASE]
        [-V|--version] [-O|--socket-options SOCKETOPTIONS]
        [-n|--netbiosname NETBIOSNAME] [-W|--workgroup WORKGROUP]
        [-i|--scope SCOPE] [-U|--user USERNAME] [-N|--no-pass] [-k|--kerberos]
        [-A|--authentication-file FILE] [-S|--signing on|off|required]
        [-P|--machine-pass] service <password>
10:03:40
#smbclient -o username=Administrator,password=rootpass 192.168.15
username=Administrator,password=rootpass: Not enough '\' characters in service
Usage: smbclient [-?] [-?EgV] [-?EgV] [-?EgVNkP] [-?|--help] [--usage]
        [-R|--name-resolve NAME-RESOLVE-ORDER] [-M|--message HOST]
        [-I|--ip-address IP] [-E|--stderr] [-L|--list HOST] [-t|--terminal CODE]
        [-m|--max-protocol LEVEL] [-T|--tar <c|x>IXFqgbNan] [-D|--directory DIR]
        [-c|--command STRING] [-b|--send-buffer BYTES] [-p|--port PORT]
        [-g|--grepable] [-d|--debuglevel DEBUGLEVEL]
        [-s|--configfile CONFIGFILE] [-l|--log-basename LOGFILEBASE]
        [-V|--version] [-O|--socket-options SOCKETOPTIONS]
        [-n|--netbiosname NETBIOSNAME] [-W|--workgroup WORKGROUP]
        [-i|--scope SCOPE] [-U|--user USERNAME] [-N|--no-pass] [-k|--kerberos]
        [-A|--authentication-file FILE] [-S|--signing on|off|required]
        [-P|--machine-pass] service <password>
10:03:44
#smbclient -o username=user, password=password 192.168.15.5
username=user,: Not enough '\' characters in service
Usage: smbclient [-?] [-?EgV] [-?EgV] [-?EgVNkP] [-?|--help] [--usage]
        [-R|--name-resolve NAME-RESOLVE-ORDER] [-M|--message HOST]
        [-I|--ip-address IP] [-E|--stderr] [-L|--list HOST] [-t|--terminal CODE]
        [-m|--max-protocol LEVEL] [-T|--tar <c|x>IXFqgbNan] [-D|--directory DIR]
        [-c|--command STRING] [-b|--send-buffer BYTES] [-p|--port PORT]
        [-g|--grepable] [-d|--debuglevel DEBUGLEVEL]
        [-s|--configfile CONFIGFILE] [-l|--log-basename LOGFILEBASE]
        [-V|--version] [-O|--socket-options SOCKETOPTIONS]
        [-n|--netbiosname NETBIOSNAME] [-W|--workgroup WORKGROUP]
        [-i|--scope SCOPE] [-U|--user USERNAME] [-N|--no-pass] [-k|--kerberos]
        [-A|--authentication-file FILE] [-S|--signing on|off|required]
        [-P|--machine-pass] service <password>
10:04:06
#smbclient -o username=user, password=password //\192.168.15.5
username=user,: Not enough '\' characters in service
Usage: smbclient [-?] [-?EgV] [-?EgV] [-?EgVNkP] [-?|--help] [--usage]
        [-R|--name-resolve NAME-RESOLVE-ORDER] [-M|--message HOST]
        [-I|--ip-address IP] [-E|--stderr] [-L|--list HOST] [-t|--terminal CODE]
        [-m|--max-protocol LEVEL] [-T|--tar <c|x>IXFqgbNan] [-D|--directory DIR]
        [-c|--command STRING] [-b|--send-buffer BYTES] [-p|--port PORT]
        [-g|--grepable] [-d|--debuglevel DEBUGLEVEL]
        [-s|--configfile CONFIGFILE] [-l|--log-basename LOGFILEBASE]
        [-V|--version] [-O|--socket-options SOCKETOPTIONS]
        [-n|--netbiosname NETBIOSNAME] [-W|--workgroup WORKGROUP]
        [-i|--scope SCOPE] [-U|--user USERNAME] [-N|--no-pass] [-k|--kerberos]
        [-A|--authentication-file FILE] [-S|--signing on|off|required]
        [-P|--machine-pass] service <password>
10:04:12
#smbclient -o username=user, password=password //192.168.15.5
username=user,: Not enough '\' characters in service
Usage: smbclient [-?] [-?EgV] [-?EgV] [-?EgVNkP] [-?|--help] [--usage]
        [-R|--name-resolve NAME-RESOLVE-ORDER] [-M|--message HOST]
        [-I|--ip-address IP] [-E|--stderr] [-L|--list HOST] [-t|--terminal CODE]
        [-m|--max-protocol LEVEL] [-T|--tar <c|x>IXFqgbNan] [-D|--directory DIR]
        [-c|--command STRING] [-b|--send-buffer BYTES] [-p|--port PORT]
        [-g|--grepable] [-d|--debuglevel DEBUGLEVEL]
        [-s|--configfile CONFIGFILE] [-l|--log-basename LOGFILEBASE]
        [-V|--version] [-O|--socket-options SOCKETOPTIONS]
        [-n|--netbiosname NETBIOSNAME] [-W|--workgroup WORKGROUP]
        [-i|--scope SCOPE] [-U|--user USERNAME] [-N|--no-pass] [-k|--kerberos]
        [-A|--authentication-file FILE] [-S|--signing on|off|required]
        [-P|--machine-pass] service <password>
10:04:17
#smbclient -o username=user, password=password -L //192.168.15.5
username=user,: Not enough '\' characters in service
Usage: smbclient [-?] [-?EgV] [-?EgV] [-?EgVNkP] [-?|--help] [--usage]
        [-R|--name-resolve NAME-RESOLVE-ORDER] [-M|--message HOST]
        [-I|--ip-address IP] [-E|--stderr] [-L|--list HOST] [-t|--terminal CODE]
        [-m|--max-protocol LEVEL] [-T|--tar <c|x>IXFqgbNan] [-D|--directory DIR]
        [-c|--command STRING] [-b|--send-buffer BYTES] [-p|--port PORT]
        [-g|--grepable] [-d|--debuglevel DEBUGLEVEL]
        [-s|--configfile CONFIGFILE] [-l|--log-basename LOGFILEBASE]
        [-V|--version] [-O|--socket-options SOCKETOPTIONS]
        [-n|--netbiosname NETBIOSNAME] [-W|--workgroup WORKGROUP]
        [-i|--scope SCOPE] [-U|--user USERNAME] [-N|--no-pass] [-k|--kerberos]
        [-A|--authentication-file FILE] [-S|--signing on|off|required]
        [-P|--machine-pass] service <password>
10:04:37
#smbclient -u //192.168.15.5
\\192.168.15.5: Not enough '\' characters in service
Usage: smbclient [-?] [-?EgV] [-?EgV] [-?EgVNkP] [-?|--help] [--usage]
        [-R|--name-resolve NAME-RESOLVE-ORDER] [-M|--message HOST]
        [-I|--ip-address IP] [-E|--stderr] [-L|--list HOST] [-t|--terminal CODE]
        [-m|--max-protocol LEVEL] [-T|--tar <c|x>IXFqgbNan] [-D|--directory DIR]
        [-c|--command STRING] [-b|--send-buffer BYTES] [-p|--port PORT]
        [-g|--grepable] [-d|--debuglevel DEBUGLEVEL]
        [-s|--configfile CONFIGFILE] [-l|--log-basename LOGFILEBASE]
        [-V|--version] [-O|--socket-options SOCKETOPTIONS]
        [-n|--netbiosname NETBIOSNAME] [-W|--workgroup WORKGROUP]
        [-i|--scope SCOPE] [-U|--user USERNAME] [-N|--no-pass] [-k|--kerberos]
        [-A|--authentication-file FILE] [-S|--signing on|off|required]
        [-P|--machine-pass] service <password>
10:04:54
#smbclient -U user //192.168.15.5
\\192.168.15.5: Not enough '\' characters in service
Usage: smbclient [-?] [-?EgV] [-?EgV] [-?EgVNkP] [-?|--help] [--usage]
        [-R|--name-resolve NAME-RESOLVE-ORDER] [-M|--message HOST]
        [-I|--ip-address IP] [-E|--stderr] [-L|--list HOST] [-t|--terminal CODE]
        [-m|--max-protocol LEVEL] [-T|--tar <c|x>IXFqgbNan] [-D|--directory DIR]
        [-c|--command STRING] [-b|--send-buffer BYTES] [-p|--port PORT]
        [-g|--grepable] [-d|--debuglevel DEBUGLEVEL]
        [-s|--configfile CONFIGFILE] [-l|--log-basename LOGFILEBASE]
        [-V|--version] [-O|--socket-options SOCKETOPTIONS]
        [-n|--netbiosname NETBIOSNAME] [-W|--workgroup WORKGROUP]
        [-i|--scope SCOPE] [-U|--user USERNAME] [-N|--no-pass] [-k|--kerberos]
        [-A|--authentication-file FILE] [-S|--signing on|off|required]
        [-P|--machine-pass] service <password>
10:05:01
#smbclient -U user 192.168.15.5
192.168.15.5: Not enough '\' characters in service
Usage: smbclient [-?] [-?EgV] [-?EgV] [-?EgVNkP] [-?|--help] [--usage]
        [-R|--name-resolve NAME-RESOLVE-ORDER] [-M|--message HOST]
        [-I|--ip-address IP] [-E|--stderr] [-L|--list HOST] [-t|--terminal CODE]
        [-m|--max-protocol LEVEL] [-T|--tar <c|x>IXFqgbNan] [-D|--directory DIR]
        [-c|--command STRING] [-b|--send-buffer BYTES] [-p|--port PORT]
        [-g|--grepable] [-d|--debuglevel DEBUGLEVEL]
        [-s|--configfile CONFIGFILE] [-l|--log-basename LOGFILEBASE]
        [-V|--version] [-O|--socket-options SOCKETOPTIONS]
        [-n|--netbiosname NETBIOSNAME] [-W|--workgroup WORKGROUP]
        [-i|--scope SCOPE] [-U|--user USERNAME] [-N|--no-pass] [-k|--kerberos]
        [-A|--authentication-file FILE] [-S|--signing on|off|required]
        [-P|--machine-pass] service <password>
10:05:05
#smbclient -U user 192.168.15.5
192.168.15.5: Not enough '\' characters in service
Usage: smbclient [-?] [-?EgV] [-?EgV] [-?EgVNkP] [-?|--help] [--usage]
        [-R|--name-resolve NAME-RESOLVE-ORDER] [-M|--message HOST]
        [-I|--ip-address IP] [-E|--stderr] [-L|--list HOST] [-t|--terminal CODE]
        [-m|--max-protocol LEVEL] [-T|--tar <c|x>IXFqgbNan] [-D|--directory DIR]
        [-c|--command STRING] [-b|--send-buffer BYTES] [-p|--port PORT]
        [-g|--grepable] [-d|--debuglevel DEBUGLEVEL]
        [-s|--configfile CONFIGFILE] [-l|--log-basename LOGFILEBASE]
        [-V|--version] [-O|--socket-options SOCKETOPTIONS]
        [-n|--netbiosname NETBIOSNAME] [-W|--workgroup WORKGROUP]
        [-i|--scope SCOPE] [-U|--user USERNAME] [-N|--no-pass] [-k|--kerberos]
        [-A|--authentication-file FILE] [-S|--signing on|off|required]
        [-P|--machine-pass] service <password>
10:05:11
#smbclient -L -U user 192.168.15.5
user: Not enough '\' characters in service
Usage: smbclient [-?] [-?EgV] [-?EgV] [-?EgVNkP] [-?|--help] [--usage]
        [-R|--name-resolve NAME-RESOLVE-ORDER] [-M|--message HOST]
        [-I|--ip-address IP] [-E|--stderr] [-L|--list HOST] [-t|--terminal CODE]
        [-m|--max-protocol LEVEL] [-T|--tar <c|x>IXFqgbNan] [-D|--directory DIR]
        [-c|--command STRING] [-b|--send-buffer BYTES] [-p|--port PORT]
        [-g|--grepable] [-d|--debuglevel DEBUGLEVEL]
        [-s|--configfile CONFIGFILE] [-l|--log-basename LOGFILEBASE]
        [-V|--version] [-O|--socket-options SOCKETOPTIONS]
        [-n|--netbiosname NETBIOSNAME] [-W|--workgroup WORKGROUP]
        [-i|--scope SCOPE] [-U|--user USERNAME] [-N|--no-pass] [-k|--kerberos]
        [-A|--authentication-file FILE] [-S|--signing on|off|required]
        [-P|--machine-pass] service <password>
10:05:27
#smbclient -U user -L 192.168.15.5
Password:
Domain=[LINUX5] OS=[Unix] Server=[Samba 3.0.33-3.29.el5_5.1]
        Sharename       Type      Comment
        ---------       ----      -------
        IPC$            IPC       IPC Service (Samba Server Version 3.0.33-3.29.el5_5.1)
        no_device_found Printer   HP Fax
        lp1             Printer   lp1
        user            Disk      Home Directories
Domain=[LINUX5] OS=[Unix] Server=[Samba 3.0.33-3.29.el5_5.1]
        Server               Comment
        ---------            -------
        Workgroup            Master
        ---------            -------
        DOM                  DC01
        MYGROUP              LINUX3
        WINGRP               LINUX1
10:06:02
#ls
!  anaconda-ks.cfg  fotki.tar           mbox
1  b                install.log         rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
2  backups          install.log.syslog
3  c                ls
a  Desktop          Mail
10:06:47
#mount -o username=user,password=password //192.168.15.5/user
mount: can't find //192.168.15.5/user in /etc/fstab or /etc/mtab
10:08:05
#ls /mnt/smb/
cpumem.info  Desktop  find.out  issue  Projects  winda1.iso
10:08:11
#cat /etc/mo
modprobe.conf   modprobe.conf~  modprobe.d/     motd
10:08:11
#cat /etc/fstab
LABEL=/                 /                       ext3    defaults        1 1
LABEL=/tmp              /tmp                    ext3    defaults        1 2
LABEL=/var              /var                    ext3    defaults        1 2
LABEL=/usr              /usr                    ext3    defaults        1 2
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
LABEL=SWAP-sda5         swap                    swap    defaults        0 0
LABEL=DATA7             /mnt/data7                      ext3    defaults        0 0
10:08:44
#mount
/dev/sda1 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda6 on /tmp type ext3 (rw)
/dev/sda3 on /var type ext3 (rw)
/dev/sda2 on /usr type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
/dev/sda7 on /mnt/data7 type ext3 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
//192.168.15.5/user on /mnt/smb type cifs (rw,mand)
10:09:04
#vim /etc/fstab
--- /tmp/l3-saved-5320.13727.12430	2011-04-08 14:09:36.000000000 +0600
+++ /etc/fstab	2011-04-08 14:10:48.000000000 +0600
@@ -8,3 +8,4 @@
 proc                    /proc                   proc    defaults        0 0
 LABEL=SWAP-sda5         swap                    swap    defaults        0 0
 LABEL=DATA7 		/mnt/data7			ext3	defaults	0 0
+//192.168.15.5		/mnt/smb		cifs	username=user,password=password
10:11:18
#vin /etc/samba/smb.conf
bash: vin: command not found
10:11:59
#vim /etc/samba/smb.conf
--- /tmp/l3-saved-5320.10218.15243	2011-04-08 14:12:02.000000000 +0600
+++ /etc/samba/smb.conf	2011-04-08 14:14:48.000000000 +0600
@@ -71,7 +71,7 @@
 # Hosts Allow/Hosts Deny lets you restrict who can connect, and you can
 # specifiy it as a per share option as well
 #
-	workgroup = DOM
+	workgroup = MYGROUP3
 	server string = Samba Server Version %v
 
 ;	netbios name = MYSERVER
@@ -181,9 +181,9 @@
 #
 # Preferred Master causes Samba to force a local browser election on startup
 # and gives it a slightly higher chance of winning the election
-;	local master = no
-;	os level = 33
-;	preferred master = yes
+	local master = yes
+	os level = 128
+	preferred master = yes
 
 #----------------------------- Name Resolution -------------------------------
 # Windows Internet Name Serving Support Section:
10:14:48
#/etc/init.d/smb restart
Shutting down SMB services:                                [  OK  ]
Shutting down NMB services:                                [  OK  ]
Starting SMB services:                                     [  OK  ]
Starting NMB services:                                     [  OK  ]
10:15:00
#testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[printers]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
[global]
        workgroup = MYGROUP3
        server string = Samba Server Version %v
        passdb backend = tdbsam
...
        cups options = raw
[homes]
        comment = Home Directories
        read only = No
        browseable = No
[printers]
        comment = All Printers
        path = /var/spool/samba
        printable = Yes
        browseable = No
10:16:19
#smbstatus
Samba version 3.0.33-3.29.el5_5.1
PID     Username      Group         Machine
-------------------------------------------------------------------
 6560   user          user          dc01         (192.168.15.222)
Service      pid     machine       Connected at
-------------------------------------------------------
user         6560   dc01          Fri Apr  8 14:15:11 2011
IPC$         6560   dc01          Fri Apr  8 14:15:08 2011
Locked files:
Pid          Uid        DenyMode   Access      R/W        Oplock           SharePath   Name   Time
--------------------------------------------------------------------------------------------------
6560         500        DENY_NONE  0x100001    RDONLY     NONE             /home/user   .   Fri Apr  8 14:17:17 2011
10:17:37
#kill
kill      killall   killall5
10:17:37
#kill 6560

прошло 26 минут
10:43:37
#vim /etc/resolv.conf
--- /tmp/l3-saved-5320.14618.26748	2011-04-08 14:43:49.000000000 +0600
+++ /etc/resolv.conf	2011-04-08 14:44:07.000000000 +0600
@@ -1,3 +1,3 @@
 search 		unix.bas
-nameserver 	127.0.0.1
+nameserver 	192.168.15.222
 options		ndots:2
10:44:07
#/etc/init.d/smb restart
Shutting down SMB services:                                [  OK  ]
Shutting down NMB services:                                [  OK  ]
Starting SMB services:                                     [  OK  ]
Starting NMB services:                                     [  OK  ]
10:44:16
#vim /etc/samba/
10:44:16
#vim /etc/krb5.conf
--- /tmp/l3-saved-5320.10573.23431	2011-04-08 14:45:10.000000000 +0600
+++ /etc/krb5.conf	2011-04-08 14:46:40.000000000 +0600
@@ -4,9 +4,9 @@
  admin_server = FILE:/var/log/kadmind.log
 
 [libdefaults]
- default_realm = EXAMPLE.COM
- dns_lookup_realm = false
- dns_lookup_kdc = false
+ default_realm = DOM.KZ
+ dns_lookup_realm = true
+ dns_lookup_kdc = true
  ticket_lifetime = 24h
  forwardable = yes
 
@@ -14,12 +14,12 @@
  EXAMPLE.COM = {
   kdc = kerberos.example.com:88
   admin_server = kerberos.example.com:749
-  default_domain = example.com
+  default_domain = dom.kz
  }
 
 [domain_realm]
- .example.com = EXAMPLE.COM
- example.com = EXAMPLE.COM
+ .example.com = DOM.KZ
+ example.com = DOM.KZ
 
 [appdefaults]
  pam = {
10:46:43
#kinit Administrator
Password for Administrator@DOM.KZ:
10:47:53
#hostname
linux5.unix.bas
10:48:16
#vim /etc/sysconfig/network-scripts/
10:48:16
#vim /etc/sysconfig/network-scripts/ifcfg-eth0
10:49:22
#vim /etc/sysconfig/network
10:49:22
#vim /etc/sysconfig/network
--- /tmp/l3-saved-5320.733.31342	2011-04-08 14:49:35.000000000 +0600
+++ /etc/sysconfig/network	2011-04-08 14:49:48.000000000 +0600
@@ -1,3 +1,3 @@
 NETWORKING=yes
 NETWORKING_IPV6=no
-HOSTNAME=linux5.unix.bas
+HOSTNAME=linux5.dom.kz
10:50:24
#vim /etc/samba/smb.conf
--- /tmp/l3-saved-5320.8584.12090	2011-04-08 14:50:51.000000000 +0600
+++ /etc/samba/smb.conf	2011-04-08 14:54:44.000000000 +0600
@@ -247,8 +247,9 @@
 
 [homes]
 	comment = Home Directories
+	read only = no
 	browseable = no
-	writable = yes
+#	writable = yes
 ;	valid users = %S
 ;	valid users = MYDOMAIN\%S
 
10:54:44
#testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[printers]"
Loaded services file OK.
Server role: ROLE_DOMAIN_MEMBER
Press enter to see a dump of your service definitions
[global]
        workgroup = DOM
        realm = DOM.KZ
        server string = Samba Server Version %v
...
        cups options = raw
[homes]
        comment = Home Directories
        read only = No
        browseable = No
[printers]
        comment = All Printers
        path = /var/spool/samba
        printable = Yes
        browseable = No
10:55:13
#history | grep reds
  770  history | grep reds
/dev/pts/4
10:55:25
#rdesktop -u user -p password 192.168.15.222
Autoselected keyboard map en-us
WARNING: Remote desktop does not support colour depth 24; falling back to 16
/dev/pts/7
10:55:37
#history | grep rdes
  117  rdesktop
  118  yum list rdesktop
  119  yum install rdesktop
  120  rdesktop 192.168.15.15
  121  rdesktop -f 192.168.15.15
  494  rdesktop 192.168.15.2
  495  rdesktop 192.168.15.3
  496  rdesktop 192.168.151
  497  rdesktop 192.168.15.1
  498  rdesktop 192.168.15.2
  771  history | grep rdes
/dev/pts/4
10:56:37
#htop
bash: htop: command not found
прошло 65 минут
12:01:58
#top
top - 16:02:09 up  6:04,  4 users,  load average: 0.08, 0.02, 0.00
Tasks: 187 total,   2 running, 185 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.7%us,  0.2%sy,  0.0%ni, 99.2%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   4016364k total,  1483836k used,  2532528k free,   111788k buffers
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
Swap:  2096984k total,        0k used,  2096984k free,   806736k cached
 3821 user      15   0  628m 184m  26m S  0.7  4.7   2:38.26 firefox
 3408 user      15   0  398m  23m  11m S  1.0  0.6   0:09.89 gnome-terminal
 3141 root      15   0  367m  23m 8208 S  0.7  0.6   4:33.33 Xorg
 3821 user      15   0  628m 184m  26m S  0.3  4.7   2:38.24 firefox
...
  432 root      12  -5     0    0    0 S  0.0  0.0   0:00.00 scsi_eh_1
  439 root      13  -5     0    0    0 S  0.0  0.0   0:00.00 kstriped
  452 root      10  -5     0    0    0 S  0.0  0.0   0:00.29 kjournald
  477 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 kauditd
  510 root      16  -4 13040 1212  388 S  0.0  0.0   0:00.11 udevd
 1530 root      20  -5     0    0    0 S  0.0  0.0   0:00.00 hd-audio0
 1695 root      18  -5     0    0    0 S  0.0  0.0   0:00.00 kksmd
 1812 root      20  -5     0    0    0 S  0.0  0.0   0:00.00 kmpathd/0
 1813 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 kmpathd/1
 1814 root      20  -5     0    0    0 S  0.0  0.0   0:00.00 kmpath_handlerd
12:02:14
#yum install squid
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * addons: mirror.space.kz
 * base: mirror.space.kz
 * extras: mirror.space.kz
 * rpmforge: fr2.rpmfind.net
 * updates: mirror.space.kz
Setting up Install Process
Resolving Dependencies
--> Running transaction check
...
Transaction Test Succeeded
Running Transaction
  Installing     : perl-URI                                                       1/2
error: failed to stat /mnt/smb: Input/output error
  Installing     : squid                                                          2/2
Installed:
  squid.x86_64 7:2.6.STABLE21-6.el5
Dependency Installed:
  perl-URI.noarch 0:1.35-3
Complete!
12:03:03
#chk
chkconfig    chkfontpath
12:03:03
#chkconfig squid on

12:03:32
#chkconfig --list
NetworkManager  0:off   1:off   2:off   3:off   4:off   5:off   6:off
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
atd             0:off   1:off   2:off   3:on    4:on    5:on    6:off
auditd          0:off   1:off   2:on    3:on    4:on    5:on    6:off
autofs          0:off   1:off   2:off   3:on    4:on    5:on    6:off
avahi-daemon    0:off   1:off   2:off   3:on    4:on    5:on    6:off
avahi-dnsconfd  0:off   1:off   2:off   3:off   4:off   5:off   6:off
bluetooth       0:off   1:off   2:on    3:on    4:on    5:off   6:off
capi            0:off   1:off   2:off   3:off   4:off   5:off   6:off
...
        finger:         on
        gssftp:         off
        klogin:         off
        krb5-telnet:    off
        kshell:         off
        rsync:          off
        tcpmux-server:  off
        telnet:         off
        time-dgram:     off
        time-stream:    off
12:03:39
#vim /etc/squid/squid.conf
12:05:27
#grep -v ^# /etc/squid/squid.conf | grep -xv '' | less
прошло 23 минуты
12:29:00
#cat /var/log/messages
Apr  4 11:25:01 linux5 syslogd 1.4.1: restart.
Apr  4 11:50:46 linux5 kernel: kjournald starting.  Commit interval 5 seconds
Apr  4 11:50:46 linux5 kernel: EXT3 FS on sda7, internal journal
Apr  4 11:50:46 linux5 kernel: EXT3-fs: mounted filesystem with ordered data mode.
Apr  4 12:03:50 linux5 kernel: kjournald starting.  Commit interval 5 seconds
Apr  4 12:03:50 linux5 kernel: EXT3 FS on sda7, internal journal
Apr  4 12:03:50 linux5 kernel: EXT3-fs: mounted filesystem with ordered data mode.
Apr  4 12:03:57 linux5 kernel: kjournald starting.  Commit interval 5 seconds
Apr  4 12:03:57 linux5 kernel: EXT3 FS on sda7, internal journal
Apr  4 12:03:57 linux5 kernel: EXT3-fs: mounted filesystem with ordered data mode.
...
Apr  8 16:03:01 linux5 smbd[7175]:   connect_to_domain_password_server: unable to open the domain client session to machine DC01.DOM.KZ. Error was : NT_STATUS_CANT_ACCESS_DOMAIN_INFO.
Apr  8 16:03:01 linux5 smbd[7175]: [2011/04/08 16:03:01, 0] auth/auth_domain.c:domain_client_validate(220)
Apr  8 16:03:01 linux5 smbd[7175]:   domain_client_validate: Domain password server not available.
Apr  8 16:03:01 linux5 kernel: Status code returned 0xc00000da NT_STATUS_CANT_ACCESS_DOMAIN_INFO
Apr  8 16:03:01 linux5 kernel:  CIFS VFS: Send error in SessSetup = -5
Apr  8 16:03:02 linux5 yum: Installed: perl-URI-1.35-3.noarch
Apr  8 16:03:03 linux5 yum: Installed: 7:squid-2.6.STABLE21-6.el5.x86_64
Apr  8 16:06:18 linux5 squid[7293]: Squid Parent: child process 7295 started
Apr  8 16:29:00 linux5 squid[7380]: Bungled squid.conf line 633: acl myauth proxy_auth REQUIRED
Apr  8 16:29:00 linux5 squid[7381]: Bungled squid.conf line 633: acl myauth proxy_auth REQUIRED
12:29:15
#cat /var/log/messages | grep head

12:29:28
#cat /var/log/messages | grep squid
Apr  8 16:03:03 linux5 yum: Installed: 7:squid-2.6.STABLE21-6.el5.x86_64
Apr  8 16:06:18 linux5 squid[7293]: Squid Parent: child process 7295 started
Apr  8 16:29:00 linux5 squid[7380]: Bungled squid.conf line 633: acl myauth proxy_auth REQUIRED
Apr  8 16:29:00 linux5 squid[7381]: Bungled squid.conf line 633: acl myauth proxy_auth REQUIRED
12:30:03
#vim /etc/squid/squid.conf
прошло 14 минут
12:44:37
#/etc/init.d/squid start
Starting squid:                                            [FAILED]

Суббота (04/09/11)

/dev/pts/4
06:01:42
#chkconfig | grep named
chkconfig version 1.3.30.2 - Copyright (C) 1997-2000 Red Hat, Inc.
This may be freely redistributed under the terms of the GNU Public License.
usage:   chkconfig --list [name]
         chkconfig --add <name>
         chkconfig --del <name>
         chkconfig [--level <levels>] <name> <on|off|reset|resetpriorities>
06:01:50
#chkconfig
chkconfig version 1.3.30.2 - Copyright (C) 1997-2000 Red Hat, Inc.
This may be freely redistributed under the terms of the GNU Public License.
usage:   chkconfig --list [name]
         chkconfig --add <name>
         chkconfig --del <name>
         chkconfig [--level <levels>] <name> <on|off|reset|resetpriorities>
06:02:04
#chkconfig -- list | grep namde

06:02:12
#chkconfig -- list | grep named

06:02:15
#chkconfig --list | grep namde

06:02:24
#chkconfig --list
NetworkManager  0:off   1:off   2:off   3:off   4:off   5:off   6:off
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