/l3/users/10-12-2007/unix-win/linux3.net.nt/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 |
|
#vim /tmp/stun.conf
1,2c1,6 < stunnel < cert /etc/pki/tls/certs/stunnel2.pem -d 901 -l /usr/sbin/swat swat --- > [swat] > accept = 901 > exec = /usr/sbin/swat > execargs = swat > cert /etc/pki/tls/certs/stunnel2.pem > key /etc/pki/tls/certs/stunnel2.pem |
#stunnel /tmp/stun.conf
file /tmp/stun.conf line 5: No '=' found |
#vim /tmp/stun.conf
5,6c5,6 < cert /etc/pki/tls/certs/stunnel2.pem < key /etc/pki/tls/certs/stunnel2.pem --- > cert = /etc/pki/tls/certs/stunnel2.pem > key = /etc/pki/tls/certs/stunnel2.pem |
#stunnel /tmp/stun.conf
file /tmp/stun.conf line 5: Specified option name is not valid here |
#vim /tmp/stun.conf
5c5 < cert = /etc/pki/tls/certs/stunnel2.pem --- > #cert = /etc/pki/tls/certs/stunnel2.pem |
#stunnel /tmp/stun.conf
file /tmp/stun.conf line 6: Specified option name is not valid here |
#vim /tmp/stun.conf
5,6c5,6 < #cert = /etc/pki/tls/certs/stunnel2.pem < key = /etc/pki/tls/certs/stunnel2.pem --- > cert = /etc/pki/tls/certs/stunnel.pem > key = /etc/pki/tls/certs/stunnel.key |
#stunnel /tmp/stun.conf
file /tmp/stun.conf line 5: Specified option name is not valid here |
#vim /tmp/stun.conf
3,4d2 < exec = /usr/sbin/swat < execargs = swat 6a5,7 > exec = /usr/sbin/swat > execargs = swat > |
#stunnel /tmp/stun.conf
]file /tmp/stun.conf line 3: Specified option name is not valid here |
#]man stunnel
bash: ]man: command not found |
#man stunnel
|
#vim /tmp/stun.conf
|
#vim /tmp/stun.conf
1,2c1 < [swat] < accept = 901 --- > 4a4,6 > > [swat] > accept = 901 |
#stunnel /tmp/stun.conf
|
#netstat -lnp| grep 901
tcp 0 0 0.0.0.0:901 0.0.0.0:* LISTEN 4272/stunnel |
#vim /tmp/stun.conf
2,3c2,3 < cert = /etc/pki/tls/certs/stunnel.pem < key = /etc/pki/tls/certs/stunnel.key --- > cert = /etc/pki/tls/certs/stunnel2.pem > key = /etc/pki/tls/certs/stunneli2.pem |
#ps aux | grep stunnel
root 4272 0.1 0.0 4508 1620 ? Ss 12:51 0:00 stunnel /tmp/stun.conf root 4435 0.0 0.0 3792 772 pts/2 S+ 12:54 0:00 grep stunnel |
#kill -9 4272
|
#stunnel /tmp/stun.conf
|
#netstat -lnp| grep 901
|
#netstat -lnp| grep 901
|
#ps aux | grep stunnel
root 4477 0.0 0.0 3784 752 pts/2 R+ 12:54 0:00 grep stunnel |
#stunnel /tmp/stun.conf
|
#ps aux | grep stunnel
root 4494 0.0 0.0 3784 748 pts/2 R+ 12:55 0:00 grep stunnel |
#vim /tmp/stun.conf
2,3c2,3 < cert = /etc/pki/tls/certs/stunnel2.pem < key = /etc/pki/tls/certs/stunneli2.pem --- > cert = /etc/pki/tls/certs/stunnel.pem > key = /etc/pki/tls/certs/stunneli.key |
#stunnel /tmp/stun.conf
|
#ps aux | grep stunnel
root 4528 0.0 0.0 3784 760 pts/2 S+ 12:55 0:00 grep stunnel |
#netstat -lnp| grep 901
|
#stunnel /tmp/stun.conf
|
#pkill stunnel
|
#stunnel /tmp/stun.conf
|
#netstat -lnp| grep 901
|
#less /var/log/messages
|
#stunnel /tmp/stun.conf
|
#less /var/log/messages
|
#man stunnel
|
#vim /tmp/stun.conf
|
#vim /tmp/stun.conf
3a4 > output = /var/log/stunnel.log |
#stunnel /tmp/stun.conf
|
#netstat -lnp | grep 901
|
#less /var/lo
|
#less /var/log/stunnel.log
|
#vim /tmp/stun.conf
3c3 < key = /etc/pki/tls/certs/stunneli.key --- > key = /etc/pki/tls/certs/stunnel.key |
#stunnel /tmp/stun.conf
|
#netstat -lnp | grep 901
tcp 0 0 0.0.0.0:901 0.0.0.0:* LISTEN 4791/stunnel |
#ps aux | grep stunnel
user 4693 0.0 0.0 3932 864 pts/5 S+ 12:58 0:00 man stunnel user 4696 0.0 0.0 4324 968 pts/5 S+ 12:58 0:00 sh -c (cd /usr/share/man && (echo ".ll 8.7i"; echo ".nr LL 8.7i"; echo ".pl 1100i"; /usr/bin/gunzip -c '/usr/share/man/man8/stunnel.8.gz'; echo ".\\\""; echo ".pl \n(nlu+10") | /usr/bin/gtbl | /usr/bin/nroff -c --legacy ISO-8859-1 -mandoc 2>/dev/null | /usr/bin/less -is) user 4697 0.0 0.0 4324 412 pts/5 S+ 12:58 0:00 sh -c (cd /usr/share/man && (echo ".ll 8.7i"; echo ".nr LL 8.7i"; echo ".pl 1100i"; /usr/bin/gunzip -c '/usr/share/man/man8/stunnel.8.gz'; echo ".\\\""; echo ".pl \n(nlu+10") | /usr/bin/gtbl | /usr/bin/nroff -c --legacy ISO-8859-1 -mandoc 2>/dev/null | /usr/bin/less -is) root 4791 0.0 0.0 4208 648 ? Ss 12:59 0:00 stunnel /tmp/stun.conf root 4815 0.0 0.0 3788 760 pts/2 S+ 13:00 0:00 grep stunnel |
#pkill stunnel
|
#netstat -lnp | grep 901
|
#less /var/log/stunnel.log
|
#vim /tmp/stun.conf
2,3c2,3 < cert = /etc/pki/tls/certs/stunnel.pem < key = /etc/pki/tls/certs/stunnel.key --- > cert = /etc/pki/tls/certs/stunnel2.pem > key = /etc/pki/tls/certs/stunnel2.pem |
#stunnel /tmp/stun.conf
|
#less /var/log/stunnel.log
|
#ps aux | grep stunnel
user 4693 0.0 0.0 3932 864 pts/5 S+ 12:58 0:00 man stunnel user 4696 0.0 0.0 4324 968 pts/5 S+ 12:58 0:00 sh -c (cd /usr/share/man && (echo ".ll 8.7i"; echo ".nr LL 8.7i"; echo ".pl 1100i"; /usr/bin/gunzip -c '/usr/share/man/man8/stunnel.8.gz'; echo ".\\\""; echo ".pl \n(nlu+10") | /usr/bin/gtbl | /usr/bin/nroff -c --legacy ISO-8859-1 -mandoc 2>/dev/null | /usr/bin/less -is) user 4697 0.0 0.0 4324 412 pts/5 S+ 12:58 0:00 sh -c (cd /usr/share/man && (echo ".ll 8.7i"; echo ".nr LL 8.7i"; echo ".pl 1100i"; /usr/bin/gunzip -c '/usr/share/man/man8/stunnel.8.gz'; echo ".\\\""; echo ".pl \n(nlu+10") | /usr/bin/gtbl | /usr/bin/nroff -c --legacy ISO-8859-1 -mandoc 2>/dev/null | /usr/bin/less -is) root 4871 0.0 0.0 4212 648 ? Ss 13:01 0:00 stunnel /tmp/stun.conf root 4890 0.0 0.0 3784 760 pts/2 R+ 13:01 0:00 grep stunnel |
#netstat -lnp | grep 901
tcp 0 0 0.0.0.0:901 0.0.0.0:* LISTEN 4871/stunnel |
#yum search stunnel4
Setting up Install Process Setting up repositories Reading repository metadata in from local files Parsing package install arguments Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Package samba.i386 0:3.0.24-1.110asp set to be updated --> Running transaction check --> Processing Dependency: samba = 0:3.0.20 for package: samba-swat --> Processing Dependency: samba-common = 0:3.0.24-1.110asp for package: samba ... Transaction Summary ============================================================================= Install 0 Package(s) Update 4 Package(s) Remove 0 Package(s) Total download size: 35 M Is this ok [y/N]: y Downloading Packages: (1/4): samba-3.0.24-1.110 43% |========== | 6.5 MB 10:02 ETA Existing lock /var/run/yum.pid: another copy is running. Aborting. |
#yum install samba
Setting up Install Process Setting up repositories Reading repository metadata in from local files Parsing package install arguments Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Package samba.i386 0:3.0.24-1.110asp set to be updated --> Running transaction check --> Processing Dependency: samba = 0:3.0.20 for package: samba-swat --> Processing Dependency: samba-common = 0:3.0.24-1.110asp for package: samba ... samba-common i386 3.0.24-1.110asp updates-released 7.9 M samba-swat i386 3.0.24-1.110asp updates-released 7.2 M Transaction Summary ============================================================================= Install 0 Package(s) Update 4 Package(s) Remove 0 Package(s) Total download size: 35 M Is this ok [y/N]: y Downloading Packages: |
#/etc/init.d/smb start
Setting up Install Process Setting up repositories Reading repository metadata in from local files Parsing package install arguments Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Package samba.i386 0:3.0.24-1.110asp set to be updated --> Running transaction check --> Processing Dependency: samba = 0:3.0.20 for package: samba-swat --> Processing Dependency: samba-common = 0:3.0.24-1.110asp for package: samba ... Transaction Summary ============================================================================= Install 0 Package(s) Update 4 Package(s) Remove 0 Package(s) Total download size: 35 M Is this ok [y/N]: y Downloading Packages: Запускаются службы SMB: Запускаются службы NMB: |
#cat /tmp/link
Setting up Install Process Setting up repositories Reading repository metadata in from local files Parsing package install arguments Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Package samba.i386 0:3.0.24-1.110asp set to be updated --> Running transaction check --> Processing Dependency: samba = 0:3.0.20 for package: samba-swat --> Processing Dependency: samba-common = 0:3.0.24-1.110asp for package: samba ... samba-swat i386 3.0.24-1.110asp updates-released 7.2 M Transaction Summary ============================================================================= Install 0 Package(s) Update 4 Package(s) Remove 0 Package(s) Total download size: 35 M Is this ok [y/N]: y Downloading Packages: ftp://mirror.yandex.ru/asplinux/i386/RPMS.11 |
#ls /tmp/
Setting up Install Process Setting up repositories Reading repository metadata in from local files Parsing package install arguments Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Package samba.i386 0:3.0.24-1.110asp set to be updated --> Running transaction check --> Processing Dependency: samba = 0:3.0.20 for package: samba-swat --> Processing Dependency: samba-common = 0:3.0.24-1.110asp for package: samba ... dmesg.prot gconfd-root mapping-user vmware-root etc gconfd-user model_temp.hdd vmware-root.0 fdisk.bat init.log monprobe.msg vmware-user fdisk.batsda installOK openvpn-2.1~rc4-3.i386.rpm vmware-user.0 fdisk.hstsda install_steps orbit-root vmware-user.2 fdisk.log kde-user orbit-user xses-user.2gC1cA fdisk.logsda keyring-f5bW7H rpmlog xses-user.NDiNvV fdisk_name keyring-hIolK7 setup.history xses-user.RNlSgu file9NF5hK keyring-vN2BRQ setup.log xses-user.uS7UNb FinalXSettings.err ksocket-user setup_sound.log Xtest.log |
#less
|
#nmblookup --help
Setting up Install Process Setting up repositories Reading repository metadata in from local files Parsing package install arguments Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Package samba.i386 0:3.0.24-1.110asp set to be updated --> Running transaction check --> Processing Dependency: samba = 0:3.0.20 for package: samba-swat --> Processing Dependency: samba-common = 0:3.0.24-1.110asp for package: samba ... Common samba options: -d, --debuglevel=DEBUGLEVEL Set debug level -s, --configfile=CONFIGFILE Use alternative configuration file -l, --log-basename=LOGFILEBASE Basename for log/debug files -V, --version Print version Connection options: -O, --socket-options=SOCKETOPTIONS socket options to use -n, --netbiosname=NETBIOSNAME Primary netbios name -W, --workgroup=WORKGROUP Set the workgroup name -i, --scope=SCOPE Use this Netbios scope |
#nmblookup '*'
Setting up Install Process Setting up repositories Reading repository metadata in from local files Parsing package install arguments Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Package samba.i386 0:3.0.24-1.110asp set to be updated --> Running transaction check --> Processing Dependency: samba = 0:3.0.20 for package: samba-swat --> Processing Dependency: samba-common = 0:3.0.24-1.110asp for package: samba ... Total download size: 35 M Is this ok [y/N]: y Downloading Packages: querying * on 192.168.16.255 192.168.16.254 *<00> 192.168.16.3 *<00> 192.168.16.22 *<00> 192.168.16.21 *<00> 192.168.16.1 *<00> 192.168.16.2 *<00> |
#nmblookup -M
Setting up Install Process Setting up repositories Reading repository metadata in from local files Parsing package install arguments Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Package samba.i386 0:3.0.24-1.110asp set to be updated --> Running transaction check --> Processing Dependency: samba = 0:3.0.20 for package: samba-swat --> Processing Dependency: samba-common = 0:3.0.24-1.110asp for package: samba ... Is this ok [y/N]: y Downloading Packages: Usage: [-?] [-?TV] [-?TV] [-?|--help] [--usage] [-B|--broadcast BROADCAST-ADDRESS] [-f|--flags] [-U|--unicast STRING] [-M|--master-browser] [-R|--recursion] [-S|--status] [-T|--translate] [-r|--root-port] [-A|--lookup-by-ip] [-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] <NODE> ... |
#nmblookup -M localhost
Setting up Install Process Setting up repositories Reading repository metadata in from local files Parsing package install arguments Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Package samba.i386 0:3.0.24-1.110asp set to be updated --> Running transaction check --> Processing Dependency: samba = 0:3.0.20 for package: samba-swat --> Processing Dependency: samba-common = 0:3.0.24-1.110asp for package: samba ... Transaction Summary ============================================================================= Install 0 Package(s) Update 4 Package(s) Remove 0 Package(s) Total download size: 35 M Is this ok [y/N]: y Downloading Packages: querying localhost on 192.168.16.255 name_query failed to find name localhost#1d |
#nmblookup -M 192.168.16.253
Setting up Install Process Setting up repositories Reading repository metadata in from local files Parsing package install arguments Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Package samba.i386 0:3.0.24-1.110asp set to be updated --> Running transaction check --> Processing Dependency: samba = 0:3.0.20 for package: samba-swat --> Processing Dependency: samba-common = 0:3.0.24-1.110asp for package: samba ... Transaction Summary ============================================================================= Install 0 Package(s) Update 4 Package(s) Remove 0 Package(s) Total download size: 35 M Is this ok [y/N]: y Downloading Packages: querying 192.168.16.253 on 192.168.16.255 name_query failed to find name 192.168.16.253#1d |
#nmblookup -A 192.168.16.253
Setting up Install Process Setting up repositories Reading repository metadata in from local files Parsing package install arguments Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Package samba.i386 0:3.0.24-1.110asp set to be updated --> Running transaction check --> Processing Dependency: samba = 0:3.0.20 for package: samba-swat --> Processing Dependency: samba-common = 0:3.0.24-1.110asp for package: samba ... Looking up status of 192.168.16.253 DC <00> - B <ACTIVE> CLINIKA0 <00> - <GROUP> B <ACTIVE> CLINIKA0 <1c> - <GROUP> B <ACTIVE> DC <20> - B <ACTIVE> CLINIKA0 <1b> - B <ACTIVE> CLINIKA0 <1e> - <GROUP> B <ACTIVE> CLINIKA0 <1d> - B <ACTIVE> ..__MSBROWSE__. <01> - <GROUP> B <ACTIVE> MAC Address = 00-07-E9-3C-29-FF |
#nmblookup -M 192.168.16.3
Setting up Install Process Setting up repositories Reading repository metadata in from local files Parsing package install arguments Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Package samba.i386 0:3.0.24-1.110asp set to be updated --> Running transaction check --> Processing Dependency: samba = 0:3.0.20 for package: samba-swat --> Processing Dependency: samba-common = 0:3.0.24-1.110asp for package: samba ... Transaction Summary ============================================================================= Install 0 Package(s) Update 4 Package(s) Remove 0 Package(s) Total download size: 35 M Is this ok [y/N]: y Downloading Packages: querying 192.168.16.3 on 192.168.16.255 name_query failed to find name 192.168.16.3#1d |
#nmblookup -M linux3
Setting up Install Process Setting up repositories Reading repository metadata in from local files Parsing package install arguments Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Package samba.i386 0:3.0.24-1.110asp set to be updated --> Running transaction check --> Processing Dependency: samba = 0:3.0.20 for package: samba-swat --> Processing Dependency: samba-common = 0:3.0.24-1.110asp for package: samba ... Transaction Summary ============================================================================= Install 0 Package(s) Update 4 Package(s) Remove 0 Package(s) Total download size: 35 M Is this ok [y/N]: y Downloading Packages: querying linux3 on 192.168.16.255 name_query failed to find name linux3#1d |
#nmblookup -W RUSLAN
Setting up Install Process Setting up repositories Reading repository metadata in from local files Parsing package install arguments Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Package samba.i386 0:3.0.24-1.110asp set to be updated --> Running transaction check --> Processing Dependency: samba = 0:3.0.20 for package: samba-swat --> Processing Dependency: samba-common = 0:3.0.24-1.110asp for package: samba ... Is this ok [y/N]: y Downloading Packages: Usage: [-?] [-?TV] [-?TV] [-?|--help] [--usage] [-B|--broadcast BROADCAST-ADDRESS] [-f|--flags] [-U|--unicast STRING] [-M|--master-browser] [-R|--recursion] [-S|--status] [-T|--translate] [-r|--root-port] [-A|--lookup-by-ip] [-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] <NODE> ... |
#nmblookup -W RUSLAN '*'
Setting up Install Process Setting up repositories Reading repository metadata in from local files Parsing package install arguments Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Package samba.i386 0:3.0.24-1.110asp set to be updated --> Running transaction check --> Processing Dependency: samba = 0:3.0.20 for package: samba-swat --> Processing Dependency: samba-common = 0:3.0.24-1.110asp for package: samba ... Total download size: 35 M Is this ok [y/N]: y Downloading Packages: querying * on 192.168.16.255 192.168.16.254 *<00> 192.168.16.3 *<00> 192.168.16.22 *<00> 192.168.16.21 *<00> 192.168.16.2 *<00> 192.168.16.1 *<00> |
#ping 192.168.16.103
Setting up Install Process Setting up repositories Reading repository metadata in from local files Parsing package install arguments Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Package samba.i386 0:3.0.24-1.110asp set to be updated --> Running transaction check --> Processing Dependency: samba = 0:3.0.20 for package: samba-swat --> Processing Dependency: samba-common = 0:3.0.24-1.110asp for package: samba ... Total download size: 35 M Is this ok [y/N]: y Downloading Packages: PING 192.168.16.103 (192.168.16.103) 56(84) bytes of data. 64 bytes from 192.168.16.103: icmp_seq=0 ttl=128 time=1.66 ms 64 bytes from 192.168.16.103: icmp_seq=1 ttl=128 time=0.539 ms 64 bytes from 192.168.16.103: icmp_seq=2 ttl=128 time=0.518 ms --- 192.168.16.103 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2003ms rtt min/avg/max/mdev = 0.518/0.907/1.664/0.535 ms, pipe 2 |
#/etc/init.d/smb start
Setting up Install Process Setting up repositories Reading repository metadata in from local files Parsing package install arguments Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Package samba.i386 0:3.0.24-1.110asp set to be updated --> Running transaction check --> Processing Dependency: samba = 0:3.0.20 for package: samba-swat --> Processing Dependency: samba-common = 0:3.0.24-1.110asp for package: samba ... Transaction Summary ============================================================================= Install 0 Package(s) Update 4 Package(s) Remove 0 Package(s) Total download size: 35 M Is this ok [y/N]: y Downloading Packages: Запускаются службы SMB: Запускаются службы NMB: |
#LANG=C
|
#/etc/init.d/smb start
Setting up Install Process Setting up repositories Reading repository metadata in from local files Parsing package install arguments Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Package samba.i386 0:3.0.24-1.110asp set to be updated --> Running transaction check --> Processing Dependency: samba = 0:3.0.20 for package: samba-swat --> Processing Dependency: samba-common = 0:3.0.24-1.110asp for package: samba ... Transaction Summary ============================================================================= Install 0 Package(s) Update 4 Package(s) Remove 0 Package(s) Total download size: 35 M Is this ok [y/N]: y Downloading Packages: Запускаются службы SMB: Запускаются службы NMB: |
#LANG=C
|
#smblookup -W RUSLAn "*"
Setting up Install Process Setting up repositories Reading repository metadata in from local files Parsing package install arguments Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Package samba.i386 0:3.0.24-1.110asp set to be updated --> Running transaction check --> Processing Dependency: samba = 0:3.0.20 for package: samba-swat --> Processing Dependency: samba-common = 0:3.0.24-1.110asp for package: samba ... samba-swat i386 3.0.24-1.110asp updates-released 7.2 M Transaction Summary ============================================================================= Install 0 Package(s) Update 4 Package(s) Remove 0 Package(s) Total download size: 35 M Is this ok [y/N]: y Downloading Packages: bash: smblookup: command not found |
#nmblookup -W RUSLAN "*"
Setting up Install Process Setting up repositories Reading repository metadata in from local files Parsing package install arguments Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Package samba.i386 0:3.0.24-1.110asp set to be updated --> Running transaction check --> Processing Dependency: samba = 0:3.0.20 for package: samba-swat --> Processing Dependency: samba-common = 0:3.0.24-1.110asp for package: samba ... Total download size: 35 M Is this ok [y/N]: y Downloading Packages: querying * on 192.168.16.255 192.168.16.254 *<00> 192.168.16.3 *<00> 192.168.16.21 *<00> 192.168.16.22 *<00> 192.168.16.1 *<00> 192.168.16.2 *<00> |
#nmblookup -W RUSLAN
Setting up Install Process Setting up repositories Reading repository metadata in from local files Parsing package install arguments Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Package samba.i386 0:3.0.24-1.110asp set to be updated --> Running transaction check --> Processing Dependency: samba = 0:3.0.20 for package: samba-swat --> Processing Dependency: samba-common = 0:3.0.24-1.110asp for package: samba ... Is this ok [y/N]: y Downloading Packages: Usage: [-?] [-?TV] [-?TV] [-?|--help] [--usage] [-B|--broadcast BROADCAST-ADDRESS] [-f|--flags] [-U|--unicast STRING] [-M|--master-browser] [-R|--recursion] [-S|--status] [-T|--translate] [-r|--root-port] [-A|--lookup-by-ip] [-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] <NODE> ... |
#nmblookup RUSLAN#1d
Setting up Install Process Setting up repositories Reading repository metadata in from local files Parsing package install arguments Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Package samba.i386 0:3.0.24-1.110asp set to be updated --> Running transaction check --> Processing Dependency: samba = 0:3.0.20 for package: samba-swat --> Processing Dependency: samba-common = 0:3.0.24-1.110asp for package: samba ... Transaction Summary ============================================================================= Install 0 Package(s) Update 4 Package(s) Remove 0 Package(s) Total download size: 35 M Is this ok [y/N]: y Downloading Packages: querying RUSLAN on 192.168.16.255 192.168.16.3 RUSLAN<1d> |
#nmblookup RUSLAN#1b
querying RUSLAN on 192.168.16.255 name_query failed to find name RUSLAN#1b |
#nmblookup RUSLAN#1c
Setting up Install Process Setting up repositories Reading repository metadata in from local files Parsing package install arguments Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Package samba.i386 0:3.0.24-1.110asp set to be updated --> Running transaction check --> Processing Dependency: samba = 0:3.0.20 for package: samba-swat --> Processing Dependency: samba-common = 0:3.0.24-1.110asp for package: samba ... Transaction Summary ============================================================================= Install 0 Package(s) Update 4 Package(s) Remove 0 Package(s) Total download size: 35 M Is this ok [y/N]: y Downloading Packages: querying RUSLAN on 192.168.16.255 name_query failed to find name RUSLAN#1c |
#nmblookup -U 192.168.16.3 WinXP03
Setting up Install Process Setting up repositories Reading repository metadata in from local files Parsing package install arguments Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Package samba.i386 0:3.0.24-1.110asp set to be updated --> Running transaction check --> Processing Dependency: samba = 0:3.0.20 for package: samba-swat --> Processing Dependency: samba-common = 0:3.0.24-1.110asp for package: samba ... Transaction Summary ============================================================================= Install 0 Package(s) Update 4 Package(s) Remove 0 Package(s) Total download size: 35 M Is this ok [y/N]: y Downloading Packages: querying WinXP03 on 192.168.16.3 name_query failed to find name WinXP03 |
#smbclient --help
Setting up Install Process Setting up repositories Reading repository metadata in from local files Parsing package install arguments Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Package samba.i386 0:3.0.24-1.110asp set to be updated --> Running transaction check --> Processing Dependency: samba = 0:3.0.20 for package: samba-swat --> Processing Dependency: samba-common = 0:3.0.24-1.110asp for package: samba ... -W, --workgroup=WORKGROUP Set the workgroup name -i, --scope=SCOPE Use this Netbios scope Authentication options: -U, --user=USERNAME Set the network username -N, --no-pass Don't ask for a password -k, --kerberos Use kerberos (active directory) authentication -A, --authentication-file=FILE Get the credentials from a file -S, --signing=on|off|required Set the client signing state -P, --machine-pass Use stored machine account password |
#smbclient --help | less
|
#nmblookup -U 192.168.16.3 WinXP03
querying WinXP03 on 192.168.16.3 name_query failed to find name WinXP03 |
#nmblookup -W RUSLAN '*'
querying * on 192.168.16.255 192.168.16.254 *<00> 192.168.16.3 *<00> 192.168.16.21 *<00> 192.168.16.22 *<00> 192.168.16.1 *<00> 192.168.16.2 *<00> |
#smbclient -L //winxp03
Password: session setup failed: NT_STATUS_LOGON_FAILURE |
#smbclient -L //winxp03 -U admin
Password: Domain=[WINXP03] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager] Sharename Type Comment --------- ---- ------- IPC$ IPC Удаленный IPC ADMIN$ Disk Удаленный Admin C$ Disk Стандартный общий ресурс Domain=[WINXP03] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager] Server Comment --------- ------- Workgroup Master --------- ------- |
#smbclient //winxp03/c$ -U admin
Password: Domain=[WINXP03] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager] smb: \> ls PAGEFILE.SYS AHS 402653184 Tue Dec 11 13:15:46 2007 WINDOWS D 0 Sun Dec 9 00:11:52 2007 Bootfont.bin AHSR 4952 Wed Aug 18 13:00:00 2004 ntldr AHSR 250624 Wed Aug 18 13:00:00 2004 NTDETECT.COM AHSR 47564 Wed Aug 18 13:00:00 2004 boot.ini HS 214 Sun Dec 9 00:25:26 2007 Documents and Settings D 0 Sun Dec 9 00:18:30 2007 ... Temp D 0 Mon Dec 10 15:40:56 2007 65324 blocks of size 131072. 50958 blocks available smb: \> cd Temp smb: \Temp\> ls . D 0 Mon Dec 10 15:40:56 2007 .. D 0 Mon Dec 10 15:40:56 2007 openvpn-2.0.9-gui-1.0.3-install.exe A 1119521 Mon Dec 10 14:57:32 2007 tech.crl A 739 Mon Dec 10 17:08:40 2007 65324 blocks of size 131072. 50958 blocks available smb: \Temp\> |
#nmblookup -R -U 192.168.16.103 '*'
querying * on 192.168.16.103 name_query failed to find name * |
#nmblookup -R -U 192.168.16.3 '*'
querying * on 192.168.16.3 192.168.16.3 *<00> |
#testparm -s
Load smb config files from /etc/samba/smb.conf Processing section "[homes]" Processing section "[printers]" Processing section "[Share1]" Processing section "[Share2]" Loaded services file OK. Server role: ROLE_STANDALONE [global] workgroup = RUSLAN server string = Samba Server ... [Share1] comment = Test Share1 path = /home/Share1 read only = No guest ok = Yes [Share2] comment = Test Share2 path = /home/Share2 write list = @wheel guest ok = Yes |
#testparm -s | less
|
#testparm -s | grep wins
Load smb config files from /etc/samba/smb.conf Processing section "[homes]" Processing section "[printers]" Processing section "[Share1]" Processing section "[Share2]" Loaded services file OK. Server role: ROLE_STANDALONE |
#vim /etc/samba/smb.conf
|
#/etc/init.d/smb restart
Останавливаются службы SMB: [ ОК ] Останавливаются службы NMB: [ ОК ] Запускаются службы SMB: [ ОК ] Запускаются службы NMB: [ ОК ] |
#smbclient //winxp03/c$ -U admin
Password: Domain=[WINXP03] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager] smb: \> cd temp smb: \temp\> ls . D 0 Mon Dec 10 15:40:56 2007 .. D 0 Mon Dec 10 15:40:56 2007 openvpn-2.0.9-gui-1.0.3-install.exe A 1119521 Mon Dec 10 14:57:32 2007 tech.crl A 739 Mon Dec 10 17:08:40 2007 65324 blocks of size 131072. 50958 blocks available smb: \temp\> lcd /home/user smb: \temp\> prompt smb: \temp\> mget getting file \temp\openvpn-2.0.9-gui-1.0.3-install.exe of size 1119521 as openvpn-2.0.9-gui-1.0.3-install.exe (2839,7 kb/s) (average 2839,7 kb/s) getting file \temp\tech.crl of size 739 as tech.crl (15,4 kb/s) (average 2532,4 kb/s) smb: \temp\> quit |
Setting up Install Process Setting up repositories Reading repository metadata in from local files Parsing package install arguments Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Package samba.i386 0:3.0.24-1.110asp set to be updated --> Running transaction check --> Processing Dependency: samba = 0:3.0.20 for package: samba-swat --> Processing Dependency: samba-common = 0:3.0.24-1.110asp for package: samba --> Restarting Dependency Resolution with new changes. --> Populating transaction set with selected packages. Please wait. ---> Package samba-common.i386 0:3.0.24-1.110asp set to be updated ---> Package samba-swat.i386 0:3.0.24-1.110asp set to be updated --> Running transaction check --> Processing Dependency: samba-common = 0:3.0.20 for package: samba-client --> Restarting Dependency Resolution with new changes. --> Populating transaction set with selected packages. Please wait. ---> Package samba-client.i386 0:3.0.24-1.110asp set to be updated --> Running transaction check Dependencies Resolved ============================================================================= Package Arch Version Repository Size ============================================================================= Updating: samba i386 3.0.24-1.110asp updates-released 16 M Updating for dependencies: samba-client i386 3.0.24-1.110asp updates-released 4.3 M samba-common i386 3.0.24-1.110asp updates-released 7.9 M samba-swat i386 3.0.24-1.110asp updates-released 7.2 M Transaction Summary ============================================================================= Install 0 Package(s) Update 4 Package(s) Remove 0 Package(s) Total download size: 35 M Is this ok [y/N]: y Downloading Packages: ftp://mirror.yandex.ru/asplinux/i386/RPMS.11
Время первой команды журнала | 12:46:21 2007-12-11 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 13:57:13 2007-12-11 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 26.73 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 1.98 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.18 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.43 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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