/l3/users/igor/samba-ldap-setup/samba.liag.org.ua/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 :39 |
#vim /etc/samba/smb.conf
337,342c337,342 < #[mashinen] < # comment = "Authorised users only" < # writeable = yes < # locking = yes < # path = /home/samba/pub/Maschinen < # valid users = donchik,oksana_skakun,olga,konovalov --- > [mashinen] > comment = "Authorised users only" > writeable = yes > locking = yes > path = /home/samba/pub/Maschinen > valid users = donchik,oksana_skakun,olga,konovalov |
#/etc/init.d/samba restart
Stopping Samba daemons: nmbd smbd. Starting Samba daemons: nmbd smbd. |
#mc
|
#ping 192.168.129.2
│ IPCset.zip │1035644 │ Microso~_RU.rar│637176K PING 192.168.129.2 (192.168.129.2) 56(84) bytes of data. 64 bytes from 192.168.129.2: icmp_seq=1 ttl=126 time=16.0 ms From 194.150.93.83: icmp_seq=2 Redirect Host(New nexthop: 194.150.93.89) 64 bytes from 192.168.129.2: icmp_seq=2 ttl=126 time=18.5 ms 64 bytes from 192.168.129.2: icmp_seq=3 ttl=126 time=11.2 ms --- 192.168.129.2 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 1998ms rtt min/avg/max/mdev = 11.207/15.282/18.565/3.057 ms |
#ping 192.168.130.2
PING 192.168.130.2 (192.168.130.2) 56(84) bytes of data. 64 bytes from 192.168.130.2: icmp_seq=1 ttl=126 time=78.3 ms From 194.150.93.83: icmp_seq=2 Redirect Host(New nexthop: 194.150.93.89) 64 bytes from 192.168.130.2: icmp_seq=2 ttl=126 time=75.1 ms 64 bytes from 192.168.130.2: icmp_seq=3 ttl=126 time=78.8 ms 64 bytes from 192.168.130.2: icmp_seq=4 ttl=126 time=86.0 ms 64 bytes from 192.168.130.2: icmp_seq=5 ttl=126 time=93.7 ms 64 bytes from 192.168.130.2: icmp_seq=6 ttl=126 time=106 ms 64 bytes from 192.168.130.2: icmp_seq=7 ttl=126 time=84.3 ms 64 bytes from 192.168.130.2: icmp_seq=8 ttl=126 time=78.7 ms ... 64 bytes from 192.168.130.2: icmp_seq=65 ttl=126 time=85.9 ms 64 bytes from 192.168.130.2: icmp_seq=66 ttl=126 time=73.0 ms 64 bytes from 192.168.130.2: icmp_seq=67 ttl=126 time=83.2 ms 64 bytes from 192.168.130.2: icmp_seq=68 ttl=126 time=111 ms 64 bytes from 192.168.130.2: icmp_seq=69 ttl=126 time=87.3 ms 64 bytes from 192.168.130.2: icmp_seq=70 ttl=126 time=89.0 ms 64 bytes from 192.168.130.2: icmp_seq=71 ttl=126 time=81.6 ms --- 192.168.130.2 ping statistics --- 71 packets transmitted, 71 received, 0% packet loss, time 70004ms rtt min/avg/max/mdev = 70.157/98.134/221.152/26.583 ms |
#ping proxy.liag.org.ua
PING proxy.liag.org.ua (194.150.93.87) 56(84) bytes of data. 64 bytes from proxy.liag.org.ua (194.150.93.87): icmp_seq=1 ttl=64 time=2.54 ms 64 bytes from proxy.liag.org.ua (194.150.93.87): icmp_seq=2 ttl=64 time=0.203 ms --- proxy.liag.org.ua ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.203/1.375/2.548/1.173 ms |
#ping vpn.liag.org.ua
PING vpn.liag.org.ua (194.150.93.89) 56(84) bytes of data. 64 bytes from vpn.liag.org.ua (194.150.93.89): icmp_seq=1 ttl=64 time=1.35 ms 64 bytes from vpn.liag.org.ua (194.150.93.89): icmp_seq=2 ttl=64 time=0.192 ms --- vpn.liag.org.ua ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1001ms rtt min/avg/max/mdev = 0.192/0.774/1.357/0.583 ms |
#ping liag.org.ua
![]() PING liag.org.ua (194.150.93.92) 56(84) bytes of data. From samba.liag.org.ua (194.150.93.88) icmp_seq=1 Destination Host Unreachable From samba.liag.org.ua (194.150.93.88) icmp_seq=2 Destination Host Unreachable From samba.liag.org.ua (194.150.93.88) icmp_seq=3 Destination Host Unreachable From samba.liag.org.ua (194.150.93.88) icmp_seq=4 Destination Host Unreachable From samba.liag.org.ua (194.150.93.88) icmp_seq=5 Destination Host Unreachable From samba.liag.org.ua (194.150.93.88) icmp_seq=6 Destination Host Unreachable --- liag.org.ua ping statistics --- 8 packets transmitted, 0 received, +6 errors, 100% packet loss, time 7027ms , pipe 3 |
#ping liag.org.ua
![]() PING liag.org.ua (194.150.93.92) 56(84) bytes of data. From samba.liag.org.ua (194.150.93.88) icmp_seq=1 Destination Host Unreachable From samba.liag.org.ua (194.150.93.88) icmp_seq=2 Destination Host Unreachable From samba.liag.org.ua (194.150.93.88) icmp_seq=3 Destination Host Unreachable From samba.liag.org.ua (194.150.93.88) icmp_seq=4 Destination Host Unreachable From samba.liag.org.ua (194.150.93.88) icmp_seq=5 Destination Host Unreachable From samba.liag.org.ua (194.150.93.88) icmp_seq=6 Destination Host Unreachable From samba.liag.org.ua (194.150.93.88) icmp_seq=7 Destination Host Unreachable From samba.liag.org.ua (194.150.93.88) icmp_seq=8 Destination Host Unreachable From samba.liag.org.ua (194.150.93.88) icmp_seq=9 Destination Host Unreachable ... From samba.liag.org.ua (194.150.93.88) icmp_seq=60 Destination Host Unreachable From samba.liag.org.ua (194.150.93.88) icmp_seq=62 Destination Host Unreachable From samba.liag.org.ua (194.150.93.88) icmp_seq=63 Destination Host Unreachable From samba.liag.org.ua (194.150.93.88) icmp_seq=64 Destination Host Unreachable From samba.liag.org.ua (194.150.93.88) icmp_seq=66 Destination Host Unreachable From samba.liag.org.ua (194.150.93.88) icmp_seq=67 Destination Host Unreachable From samba.liag.org.ua (194.150.93.88) icmp_seq=68 Destination Host Unreachable --- liag.org.ua ping statistics --- 69 packets transmitted, 0 received, +66 errors, 100% packet loss, time 68298ms , pipe 3 |
#ping liag.org.ua
![]() PING liag.org.ua (194.150.93.92) 56(84) bytes of data. From samba.liag.org.ua (194.150.93.88) icmp_seq=2 Destination Host Unreachable From samba.liag.org.ua (194.150.93.88) icmp_seq=3 Destination Host Unreachable From samba.liag.org.ua (194.150.93.88) icmp_seq=4 Destination Host Unreachable From samba.liag.org.ua (194.150.93.88) icmp_seq=6 Destination Host Unreachable From samba.liag.org.ua (194.150.93.88) icmp_seq=7 Destination Host Unreachable From samba.liag.org.ua (194.150.93.88) icmp_seq=8 Destination Host Unreachable From samba.liag.org.ua (194.150.93.88) icmp_seq=10 Destination Host Unreachable From samba.liag.org.ua (194.150.93.88) icmp_seq=11 Destination Host Unreachable From samba.liag.org.ua (194.150.93.88) icmp_seq=12 Destination Host Unreachable ... From samba.liag.org.ua (194.150.93.88) icmp_seq=16 Destination Host Unreachable From samba.liag.org.ua (194.150.93.88) icmp_seq=18 Destination Host Unreachable From samba.liag.org.ua (194.150.93.88) icmp_seq=19 Destination Host Unreachable From samba.liag.org.ua (194.150.93.88) icmp_seq=20 Destination Host Unreachable From samba.liag.org.ua (194.150.93.88) icmp_seq=22 Destination Host Unreachable From samba.liag.org.ua (194.150.93.88) icmp_seq=23 Destination Host Unreachable From samba.liag.org.ua (194.150.93.88) icmp_seq=24 Destination Host Unreachable --- liag.org.ua ping statistics --- 25 packets transmitted, 0 received, +18 errors, 100% packet loss, time 24000ms , pipe 3 |
#ping samba.liag.org.ua
![]() PING samba.liag.org.ua (192.168.1.8) 56(84) bytes of data. From gw.liag.org.ua (194.150.93.83) icmp_seq=1 Destination Host Unreachable From gw.liag.org.ua (194.150.93.83) icmp_seq=2 Destination Host Unreachable From gw.liag.org.ua (194.150.93.83) icmp_seq=3 Destination Host Unreachable From gw.liag.org.ua (194.150.93.83) icmp_seq=4 Destination Host Unreachable From gw.liag.org.ua (194.150.93.83) icmp_seq=5 Destination Host Unreachable From gw.liag.org.ua (194.150.93.83) icmp_seq=6 Destination Host Unreachable --- samba.liag.org.ua ping statistics --- 7 packets transmitted, 0 received, +6 errors, 100% packet loss, time 6003ms , pipe 3 |
#mc
|
#ping 192.168.130.2
PING 192.168.130.2 (192.168.130.2) 56(84) bytes of data. 64 bytes from 192.168.130.2: icmp_seq=1 ttl=126 time=75.4 ms From 194.150.93.83: icmp_seq=2 Redirect Host(New nexthop: 194.150.93.89) 64 bytes from 192.168.130.2: icmp_seq=2 ttl=126 time=74.0 ms 64 bytes from 192.168.130.2: icmp_seq=3 ttl=126 time=76.6 ms 64 bytes from 192.168.130.2: icmp_seq=4 ttl=126 time=72.8 ms 64 bytes from 192.168.130.2: icmp_seq=5 ttl=126 time=72.8 ms 64 bytes from 192.168.130.2: icmp_seq=6 ttl=126 time=72.8 ms 64 bytes from 192.168.130.2: icmp_seq=7 ttl=126 time=75.5 ms 64 bytes from 192.168.130.2: icmp_seq=8 ttl=126 time=70.8 ms 64 bytes from 192.168.130.2: icmp_seq=9 ttl=126 time=73.2 ms 64 bytes from 192.168.130.2: icmp_seq=10 ttl=126 time=77.3 ms 64 bytes from 192.168.130.2: icmp_seq=11 ttl=126 time=75.0 ms 64 bytes from 192.168.130.2: icmp_seq=12 ttl=126 time=75.8 ms 64 bytes from 192.168.130.2: icmp_seq=13 ttl=126 time=72.7 ms --- 192.168.130.2 ping statistics --- 13 packets transmitted, 13 received, 0% packet loss, time 11993ms rtt min/avg/max/mdev = 70.843/74.246/77.303/1.839 ms |
#mc
|
#smbldap-passwd siriks
exit Changing UNIX and samba passwords for siriks New password: Retype new password: |
#ssh kab@192.168.4.129
![]() kab@192.168.4.129's password: Linux kab-desktop 2.6.24-19-generic #1 SMP Wed Jun 18 14:15:37 UTC 2008 x86_64 The programs included with the Ubuntu system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. To access official Ubuntu documentation, please visit: http://help.ubuntu.com/ Last login: Tue Jan 13 10:29:39 2009 from 192.168.4.253 kab@kab-desktop:~$ reboot reboot: Need to be root kab@kab-desktop:~$ sudo su [sudo] password for kab: root@kab-desktop:/home/kab# reboot Broadcast message from kab@kab-desktop (/dev/pts/0) at 15:08 ... The system is going down for reboot NOW! root@kab-desktop:/home/kab# Connection to 192.168.4.129 closed by remote host. Connection to 192.168.4.129 closed. |
#ssh kab@192.168.4.129
â FTP link... â â/.cache âââââââââââââââââââââââ FTP to machine âââââââââââââââââââââââ â Shell link... â â/.camel â Enter machine name (F1 for details): â â SMB link... â â/.compi â [^] â â âââââââââââââââââââââ â â/.confi â [< OK >] [ Cancel ] â â Rescan C-r â â/.evolu ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ âââââââââââââââââââââââââ â/.fontc â/.gconf â 4096 â/.gconfd â 4096 â/.gimp-2.4 â 4096 â/.gnome2 â 4096 â/.gnome2_privateâ 4096 |
#mc
|
#smbldap-p
![]() smbldap-passwd smbldap-populate |
#smbldap-passwd konovalov
Changing UNIX and samba passwords for konovalov New password: Retype new password: |
#smbldap-passwd konovalov
Changing UNIX and samba passwords for konovalov New password: Retype new password: |
#ssh kab@192.168.4.129
![]() kab@192.168.4.129's password: Linux kab-desktop 2.6.24-19-generic #1 SMP Wed Jun 18 14:15:37 UTC 2008 x86_64 The programs included with the Ubuntu system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. To access official Ubuntu documentation, please visit: http://help.ubuntu.com/ Last login: Sat Jan 17 21:54:06 2009 from 192.168.4.253 kab@kab-desktop:~$ reboot reboot: Need to be root kab@kab-desktop:~$ sudo su [sudo] password for kab: root@kab-desktop:/home/kab# reboot Broadcast message from kab@kab-desktop (/dev/pts/7) at 11:14 ... The system is going down for reboot NOW! root@kab-desktop:/home/kab# Connection to 192.168.4.129 closed by remote host. Connection to 192.168.4.129 closed. |
#smbldap-passwd sivokon
Changing UNIX and samba passwords for sivokon New password: Retype new password: |
#ssh 192.168.4.254 -p 22222
The authenticity of host '192.168.4.254 (192.168.4.254)' can't be established. RSA key fingerprint is d5:9a:6b:cb:16:c7:0a:98:3e:9f:24:1e:f4:b8:0b:41. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.4.254' (RSA) to the list of known hosts. root@192.168.4.254's password: l3-agent is already running: pid=1551; pidfile=/root/.lilalo/l3-agent.pid |
#mc
![]() |
#vim /etc/network/interfaces
|
#vim /etc/network/interfaces
|
#ssh 192.168.1.190
![]() Left File Command Options Right Hint: Leap to frequently used directories in a single bound with C-\. |
#e
![]() |
#ssh gw.liag.org.ua -p 22222
│/.gconf │ 4096 │/.gconfd │ 4096 │/.gimp-2.4 │ 4096 │/.gnome2 │ 4096 │/.gnome2_private│ 4096 The authenticity of host 'gw.liag.org.ua (194.150.93.83)' can't be established. RSA key fingerprint is d5:9a:6b:cb:16:c7:0a:98:3e:9f:24:1e:f4:b8:0b:41. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'gw.liag.org.ua' (RSA) to the list of known hosts. root@gw.liag.org.ua's password: l3-agent is already running: pid=1213; pidfile=/root/.lilalo/l3-agent.pid |
#iptables -t nat -L
Chain PREROUTING (policy ACCEPT) target prot opt source destination Chain POSTROUTING (policy ACCEPT) target prot opt source destination MASQUERADE 0 -- 192.168.4.130 anywhere MASQUERADE 0 -- alien.veer.net.ua 192.168.4.0/24 MASQUERADE 0 -- 192.168.4.0/24 alien.veer.net.ua MASQUERADE 0 -- 192.168.4.0/24 ip.194.150.95.4.veer.net.ua MASQUERADE 0 -- 192.168.4.135 anywhere MASQUERADE 0 -- 192.168.4.128 anywhere MASQUERADE 0 -- 192.168.4.129 anywhere MASQUERADE 0 -- 192.168.3.0/24 anywhere MASQUERADE 0 -- 192.168.4.129 anywhere MASQUERADE 0 -- 192.168.128.3 anywhere MASQUERADE 0 -- 192.168.128.2 anywhere MASQUERADE 0 -- 192.168.128.4 anywhere MASQUERADE 0 -- anywhere voip.veer.net.ua Chain OUTPUT (policy ACCEPT) target prot opt source destination |
#ping 192.168.4.130
![]() PING 192.168.4.130 (192.168.4.130) 56(84) bytes of data. --- 192.168.4.130 ping statistics --- 5 packets transmitted, 0 received, 100% packet loss, time 4008ms |
#ping 192.168.4.129
PING 192.168.4.129 (192.168.4.129) 56(84) bytes of data. 64 bytes from 192.168.4.129: icmp_seq=1 ttl=63 time=0.387 ms 64 bytes from 192.168.4.129: icmp_seq=2 ttl=63 time=0.304 ms --- 192.168.4.129 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.304/0.345/0.387/0.045 ms |
#ping 192.168.4.130
PING 192.168.4.130 (192.168.4.130) 56(84) bytes of data. 64 bytes from 192.168.4.130: icmp_seq=10 ttl=127 time=0.346 ms 64 bytes from 192.168.4.130: icmp_seq=11 ttl=127 time=0.258 ms 64 bytes from 192.168.4.130: icmp_seq=12 ttl=127 time=0.269 ms 64 bytes from 192.168.4.130: icmp_seq=13 ttl=127 time=0.265 ms 64 bytes from 192.168.4.130: icmp_seq=14 ttl=127 time=0.284 ms 64 bytes from 192.168.4.130: icmp_seq=15 ttl=127 time=1.74 ms 64 bytes from 192.168.4.130: icmp_seq=16 ttl=127 time=0.311 ms 64 bytes from 192.168.4.130: icmp_seq=17 ttl=127 time=0.298 ms 64 bytes from 192.168.4.130: icmp_seq=18 ttl=127 time=0.302 ms 64 bytes from 192.168.4.130: icmp_seq=19 ttl=127 time=0.370 ms 64 bytes from 192.168.4.130: icmp_seq=20 ttl=127 time=0.328 ms 64 bytes from 192.168.4.130: icmp_seq=21 ttl=127 time=0.382 ms --- 192.168.4.130 ping statistics --- 53 packets transmitted, 12 received, 77% packet loss, time 52011ms rtt min/avg/max/mdev = 0.258/0.429/1.742/0.398 ms |
#ping 192.168.4.130
![]() PING 192.168.4.130 (192.168.4.130) 56(84) bytes of data. --- 192.168.4.130 ping statistics --- 12 packets transmitted, 0 received, 100% packet loss, time 11003ms |
#exit
Connection to gw.liag.org.ua closed. |
#ssh gw.liag.org.ua -p 22222
exit root@gw.liag.org.ua's password: l3-agent is already running: pid=1213; pidfile=/root/.lilalo/l3-agent.pid |
#iptables -D FORWARD -s 192.168.4.0/24 -d 194.150.95.4 -j ACCEPT
![]() |
#iptables -t nat -I POSTROUTING -s 192.168.4.0/24 -d 194.150.92.1
![]() |
#iptables -L
![]() |
#iptables -t nat -I POSTROUTING -s 194.150.92.1 -d 192.168.4.0/24
![]() |
#iptables -t nat -L
![]() |
#iptables -t nat -L
|
#exit
exit Connection to gw.liag.org.ua closed. |
#mc
|
#ssh kab@192.168.4.129
â FTP link... â â/.cache âââââââââââââââââââââââ FTP to machine âââââââââââââââââââââââ â Shell link... â â/.camel â Enter machine name (F1 for details): â â SMB link... â â/.compi â [^] â â âââââââââââââââââââââ â â/.confi â [< OK >] [ Cancel ] â â Rescan C-r â â/.evolu ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ âââââââââââââââââââââââââ â/.fontc â/.frozen-bubble â 4096 â/.gconf â 4096 â/.gconfd â 4096 â/.gimp-2.4 â 4096 â/.glob2 â 4096 |
#ssh root@vpn.liag.org.ua -p 22222
root@vpn.liag.org.ua's password: l3-agent is already running: pid=1704; pidfile=/root/.lilalo/l3-agent.pid |
#ssh gw.liag.org.ua -p 22222
exit root@gw.liag.org.ua's password: l3-agent is already running: pid=1213; pidfile=/root/.lilalo/l3-agent.pid |
#iptables -t nat -I POSTROUTING -s 192.168.4.131 -j MASQUERADE
|
#iptables -t nat -L
Chain PREROUTING (policy ACCEPT) target prot opt source destination Chain POSTROUTING (policy ACCEPT) target prot opt source destination MASQUERADE 0 -- 192.168.4.131 anywhere MASQUERADE 0 -- 192.168.4.130 anywhere MASQUERADE 0 -- alien.veer.net.ua 192.168.4.0/24 MASQUERADE 0 -- 192.168.4.0/24 alien.veer.net.ua MASQUERADE 0 -- 192.168.4.0/24 ip.194.150.95.4.veer.net.ua MASQUERADE 0 -- 192.168.4.135 anywhere MASQUERADE 0 -- 192.168.4.128 anywhere MASQUERADE 0 -- 192.168.4.129 anywhere MASQUERADE 0 -- 192.168.3.0/24 anywhere MASQUERADE 0 -- 192.168.4.129 anywhere MASQUERADE 0 -- 192.168.128.3 anywhere MASQUERADE 0 -- 192.168.128.2 anywhere MASQUERADE 0 -- 192.168.128.4 anywhere MASQUERADE 0 -- anywhere voip.veer.net.ua Chain OUTPUT (policy ACCEPT) target prot opt source destination |
#ping 192.168.130.2
│/.gconf │ 4096 │/.gconfd │ 4096 │/.gimp-2.4 │ 4096 PING 192.168.130.2 (192.168.130.2) 56(84) bytes of data. 64 bytes from 192.168.130.2: icmp_seq=1 ttl=117 time=146 ms 64 bytes from 192.168.130.2: icmp_seq=2 ttl=117 time=142 ms 64 bytes from 192.168.130.2: icmp_seq=3 ttl=117 time=144 ms --- 192.168.130.2 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2001ms rtt min/avg/max/mdev = 142.759/144.597/146.250/1.431 ms |
#smbldap-passwd samarseva
Changing UNIX and samba passwords for samarseva New password: Retype new password: |
#smbldap-passwd sivokon
Changing UNIX and samba passwords for sivokon New password: Retype new password: |
#ping 192.168.128.3
PING 192.168.128.3 (192.168.128.3) 56(84) bytes of data. 64 bytes from 192.168.128.3: icmp_seq=1 ttl=54 time=84.0 ms 64 bytes from 192.168.128.3: icmp_seq=2 ttl=54 time=82.7 ms 64 bytes from 192.168.128.3: icmp_seq=3 ttl=54 time=78.3 ms 64 bytes from 192.168.128.3: icmp_seq=4 ttl=54 time=86.5 ms --- 192.168.128.3 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 3000ms rtt min/avg/max/mdev = 78.318/82.918/86.535/2.988 ms |
#ping 192.168.130.2
PING 192.168.130.2 (192.168.130.2) 56(84) bytes of data. 64 bytes from 192.168.130.2: icmp_seq=1 ttl=117 time=92.4 ms 64 bytes from 192.168.130.2: icmp_seq=2 ttl=117 time=110 ms 64 bytes from 192.168.130.2: icmp_seq=3 ttl=117 time=104 ms 64 bytes from 192.168.130.2: icmp_seq=4 ttl=117 time=81.4 ms 64 bytes from 192.168.130.2: icmp_seq=5 ttl=117 time=79.1 ms 64 bytes from 192.168.130.2: icmp_seq=6 ttl=117 time=86.9 ms --- 192.168.130.2 ping statistics --- 6 packets transmitted, 6 received, 0% packet loss, time 4999ms rtt min/avg/max/mdev = 79.151/92.401/110.378/11.449 ms |
#ssh 192.168.128.3
![]() c53xx-fe00-dotq2.dn.velton.ua 0.0% 6 123.2 120.4 67.3 203.5 53.5 2. c37xx-fe00-dot1q2.dn.velton.ua 0.0% 6 63.3 86.1 63.3 133.5 25.8 3. lgw-kiev-dot1q151.kiev.velton.ua 33.3% 6 85.3 98.5 67.5 171.5 49.2 4. c72xx-kiev-kh.kh.velton.ua 0.0% 6 117.4 105.8 91.8 117.4 12.8 5. 195.35.65.225 20.0% 6 199.5 311.0 139.6 497.8 169.3 7. airbus.itc.ua 0.0% 6 97.2 80.3 67.7 97.2 9.9 donetsk:~# /etc/init.d/openvpn restart Stopping virtual private network daemon:Read from remote host 192.168.128.3: Connection timed out Connection to 192.168.128.3 closed. |
#ping 192.168.128.3
![]() PING 192.168.128.3 (192.168.128.3) 56(84) bytes of data. From 194.150.93.83: icmp_seq=2 Redirect Host(New nexthop: 194.150.93.89) --- 192.168.128.3 ping statistics --- 5 packets transmitted, 0 received, 100% packet loss, time 4005ms |
#ping 192.168.130.2
![]() PING 192.168.130.2 (192.168.130.2) 56(84) bytes of data. From 194.150.93.83: icmp_seq=2 Redirect Host(New nexthop: 194.150.93.89) --- 192.168.130.2 ping statistics --- 27 packets transmitted, 0 received, 100% packet loss, time 26012ms |
#ping 192.168.128.3
![]() PING 192.168.128.3 (192.168.128.3) 56(84) bytes of data. --- 192.168.128.3 ping statistics --- 40 packets transmitted, 0 received, 100% packet loss, time 39009ms |
#ping 192.168.130.2
![]() PING 192.168.130.2 (192.168.130.2) 56(84) bytes of data. --- 192.168.130.2 ping statistics --- 7 packets transmitted, 0 received, 100% packet loss, time 6005ms |
#ping 192.168.128.3
![]() PING 192.168.128.3 (192.168.128.3) 56(84) bytes of data. From 194.150.93.83: icmp_seq=386 Redirect Host(New nexthop: 194.150.93.89) --- 192.168.128.3 ping statistics --- 985 packets transmitted, 0 received, 100% packet loss, time 984180ms |
#ping 192.168.128.3
![]() PING 192.168.128.3 (192.168.128.3) 56(84) bytes of data. From 194.150.93.83: icmp_seq=2 Redirect Host(New nexthop: 194.150.93.89) --- 192.168.128.3 ping statistics --- 114 packets transmitted, 0 received, 100% packet loss, time 113015ms |
#ssh kab@192.168.4.129
â FTP link... â â/.bogof âââââââââââââââââââââââ FTP to machine âââââââââââââââââââââââ â Shell link... â â/.cache â Enter machine name (F1 for details): â â SMB link... â â/.camel â [^] â â âââââââââââââââââââââ â â/.compi â [< OK >] [ Cancel ] â â Rescan C-r â â/.confi ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ âââââââââââââââââââââââââ â/.evolu â/.fontconfig â 4096 â/.frozen-bubble â 4096 â/.gconf â 4096 â/.gconfd â 4096 â/.gimp-2.4 â 4096 |
#mc
|
#mc
|
#mc
![]() |
#mc
|
#smbldap-passwd admin
![]() Changing UNIX and samba passwords for admin New password: Retype new password: |
#smbldap-passwd admin
root@192.168.128.2's password: Last login: Tue Dec 2 08:58:00 2008 from 192.168.128.1 Linux kharkov 2.6.18-5-686 #1 SMP Fri Jun 1 00:47:00 UTC 2007 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. kharkov:~# iptables -D INPUT 1 kharkov:~# iptables -D INPUT 1 ... ACCEPT 0 -- 192.168.129.100 anywhere ACCEPT 0 -- 192.168.129.4 anywhere ACCEPT 0 -- 192.168.129.2 anywhere DROP 0 -- 192.168.129.0/24 anywhere Chain OUTPUT (policy ACCEPT) target prot opt source destination kharkov:~# Changing UNIX and samba passwords for admin New password: Retype new password: |
#smbldap-passwd siriks
![]() Changing UNIX and samba passwords for siriks New password: Retype new password: |
#smbldap-passwd siriks
Changing UNIX and samba passwords for siriks New password: Retype new password: |
#ssh kab@194.150.95.50
![]() 6802 ? S 0:00 /usr/lib/gnome-vfs-2.0/gnome-vfs-daemon 6812 ? Sl 0:00 /usr/lib/evolution/evolution-data-server-2.22 --oaf-a 6830 ? Ss 0:00 /bin/sh -c /usr/bin/compiz-decorator 6831 ? S 0:00 /bin/sh /usr/bin/compiz-decorator 6833 ? S 0:06 /usr/bin/gtk-window-decorator 6845 ? S 0:01 tsclient 6953 ? S 0:01 /usr/lib/notification-daemon/notification-daemon 6955 ? Sl 0:01 gnome-terminal 6957 ? S 0:00 gnome-pty-helper 6958 pts/0 Ss 0:00 bash ... 6309 ? S 0:00 hobbitd_channel --channel=status --log=/var/log/hobbi 6310 ? S 0:00 hobbitd_channel --channel=data --log=/var/log/hobbit/ 6311 ? S 0:00 hobbitd_channel --channel=client --log=/var/log/hobbi 6325 ? S 0:00 hobbitd_history 6326 ? S 0:00 hobbitd_rrd --rrddir=/var/lib/hobbit/rrd 6327 ? S 0:00 hobbitd_client 6328 ? S 0:00 hobbitd_hostdata 6329 ? S 0:00 hobbitd_alert --checkpoint-file=/var/lib/hobbit/tmp/a 6330 ? S 0:00 hobbitd_rrd --rrddir=/var/lib/hobbit/rrd 6351 tty7 S+ 0:00 /usr/bin/X :0 -br -audit 0 -auth /var/lib/gdm/:0.Xaut |
#ssh kab@194.150.95.50
![]() 6802 ? S 0:00 /usr/lib/gnome-vfs-2.0/gnome-vfs-daemon 6812 ? Sl 0:00 /usr/lib/evolution/evolution-data-server-2.22 --oaf-a 6830 ? Ss 0:00 /bin/sh -c /usr/bin/compiz-decorator 6831 ? S 0:00 /bin/sh /usr/bin/compiz-decorator 6833 ? S 0:06 /usr/bin/gtk-window-decorator 6845 ? S 0:01 tsclient 6953 ? S 0:01 /usr/lib/notification-daemon/notification-daemon 6955 ? Sl 0:01 gnome-terminal 6957 ? S 0:00 gnome-pty-helper 6958 pts/0 Ss 0:00 bash ... 6309 ? S 0:00 hobbitd_channel --channel=status --log=/var/log/hobbi 6310 ? S 0:00 hobbitd_channel --channel=data --log=/var/log/hobbit/ 6311 ? S 0:00 hobbitd_channel --channel=client --log=/var/log/hobbi 6325 ? S 0:00 hobbitd_history 6326 ? S 0:00 hobbitd_rrd --rrddir=/var/lib/hobbit/rrd 6327 ? S 0:00 hobbitd_client 6328 ? S 0:00 hobbitd_hostdata 6329 ? S 0:00 hobbitd_alert --checkpoint-file=/var/lib/hobbit/tmp/a 6330 ? S 0:00 hobbitd_rrd --rrddir=/var/lib/hobbit/rrd 6351 tty7 S+ 0:00 /usr/bin/X :0 -br -audit 0 -auth /var/lib/gdm/:0.Xaut |
#mc
|
#mc
![]() |
#mc
|
#smbldap-useradd -a -m -s /bin/true -c 'Vypzhakov
![]() |
#smbldap-useradd -a -m -s /bin/true -c 'erico' erico
![]() |
#smbldap-useradd -a -m -s /bin/true -c 'Vypzhakov
![]() |
#smbldap-useradd -a -m -s /bin/true -c 'erico' erico
|
#smbldap-passwd erico
![]() Changing UNIX and samba passwords for erico New password: Retype new password: |
#smbldap-passwd erico
Changing UNIX and samba passwords for erico New password: Retype new password: |
#ssh kab@192.168.4.129
![]() Left File Command Options Right <â~ v> â<â~ââââââââââââââââââââââ Size â MTime ââ v>Name â Size â MTime ââââââââââââââââââââââv>ââ<â~âââââââââââââââââââââââââââââââââââââââ â Quick view C-x q âUP--DIRâ â²â/.. âUP--DIRâ â² â â 4096âMay 29 2008 ââ/.AbiSuite â 4096âMay 29 2008 â â Tree â 4096âMay 29 2008 ââ/.adobe â 4096âMay 29 2008 â â/.. âUP--DIRâ ââ/.ayttm â 4096âFeb 5 12:17 â â Panel codepage â 4096âSep 23 08:44 ââ/.bogofilter â 4096âSep 23 08:44 â â/.AbiSuite â 4096âMay 29 2008 ââ/.cache â 4096âMay 29 2008 â â Sort order... â 4096âMay 29 2008 ââ/.camel_certs â 4096âMay 29 2008 â ... â/.gconf âââââââââââââââââââââââ FTP to machine âââââââââââââââââââââââ â/.macromedia â 4096âMay 29 2008 ââ/.macromedia â 4096âMay 29 2008 â â/.gconfd âââââââââââââ â Enter machine name (F1 for details): â â 4096âFeb 25 08:30 â â/.mcop â 4096âJan 21 16:56 ââ/.mcop â 4096âJan 21 16:56 â â/.gimp-2.4 ââââââââââââ â [^] â ââââââââââââââââââââââââââââââââââââââââââââââââââ¼âââââââââââââââââââââââââââââââââââââââ â/.. ââ/.. â ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ Hint: You can specify the username when doing ftps: 'cd /#ftp:user@machine.edu' kab@kab-desktop:~$ [^] 1Help 2Menu 3View 4Edit 5Copy 6RenMov 7Mkdir 8Delete 9PullDn 10Quit |
#ssh kab@192.168.4.129
Left File Command Options Right <â~ v> â<â~ââââââââââââââââââââââ Size â MTime ââ v>Name â Size â MTime ââââââââââââââââââââââv>ââ<â~âââââââââââââââââââââââââââââââââââââââ â Quick view C-x q âUP--DIRâ â²â/.. âUP--DIRâ â² â â 4096âMay 29 2008 ââ/.AbiSuite â 4096âMay 29 2008 â â Tree â 4096âMay 29 2008 ââ/.adobe â 4096âMay 29 2008 â â/.. âUP--DIRâ ââ/.ayttm â 4096âFeb 5 12:17 â â Panel codepage â 4096âSep 23 08:44 ââ/.bogofilter â 4096âSep 23 08:44 â â/.AbiSuite â 4096âMay 29 2008 ââ/.cache â 4096âMay 29 2008 â â Sort order... â 4096âMay 29 2008 ââ/.camel_certs â 4096âMay 29 2008 â ... â/.gconf âââââââââââââââââââââââ FTP to machine âââââââââââââââââââââââ â/.macromedia â 4096âMay 29 2008 ââ/.macromedia â 4096âMay 29 2008 â â/.gconfd âââââââââââââ â Enter machine name (F1 for details): â â 4096âFeb 25 08:30 â â/.mcop â 4096âJan 21 16:56 ââ/.mcop â 4096âJan 21 16:56 â â/.gimp-2.4 ââââââââââââ â [^] â ââââââââââââââââââââââââââââââââââââââââââââââââââ¼âââââââââââââââââââââââââââââââââââââââ â/.. ââ/.. â ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ Hint: You can specify the username when doing ftps: 'cd /#ftp:user@machine.edu' kab@kab-desktop:~$ [^] 1Help 2Menu 3View 4Edit 5Copy 6RenMov 7Mkdir 8Delete 9PullDn 10Quit |
#mc
|
#mc
|
#mc
|
Время первой команды журнала | 13:50:50 2008-12-24 | |||||||||||||||||||||||||||||||||
Время последней команды журнала | 11:05:18 2009- 3-10 | |||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 17.82 | |||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.99 | |||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.55 | |||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.09 | |||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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