/l3/users/27-07-2009/nt-fbsdnet/fbsd4.net.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 |
|
#cd /usr/ports/security/xinetd/
|
#ls
![]() Makefile files pkg-plist distinfo pkg-descr work |
#ls
Makefile files pkg-plist distinfo pkg-descr work |
#make install
![]() ===> Building for xinetd-2.3.14_1 cd libs/src/portable ; gmake CC='cc' CFLAGS='-O2 -fno-strict-aliasing -pipe -O2 -fno-strict-aliasing -pipe -I../../include' install gmake[1]: Entering directory `/usr/ports/security/xinetd/work/xinetd-2.3.14/libs/src/portable' Installed libportable.a to ../../lib Installed ./libportable.h to ../../include gmake[1]: Leaving directory `/usr/ports/security/xinetd/work/xinetd-2.3.14/libs/src/portable' cd libs/src/sio ; gmake CC='cc' CFLAGS='-O2 -fno-strict-aliasing -pipe -O2 -fno-strict-aliasing -pipe -I../../include' install gmake[1]: Entering directory `/usr/ports/security/xinetd/work/xinetd-2.3.14/libs/src/sio' Installed libsio.a to ../../lib Installed ./sio.h to ../../include ... these network services to be started at boot time. /usr/local/etc/rc.d/xinetd If there are vulnerabilities in these programs there may be a security risk to the system. FreeBSD makes no guarantee about the security of ports included in the Ports Collection. Please type 'make deinstall' to deinstall the port if this is a concern. For more information, and contact details about the security status of this software, see the following webpage: http://www.xinetd.org/ õ ×ÁÓ ÅÓÔØ ÎÏ×ÁÑ ÐÏÞÔÁ × /var/mail/root |
#make install
===> Building for xinetd-2.3.14_1 cd libs/src/portable ; gmake CC='cc' CFLAGS='-O2 -fno-strict-aliasing -pipe -O2 -fno-strict-aliasing -pipe -I../../include' install gmake[1]: Entering directory `/usr/ports/security/xinetd/work/xinetd-2.3.14/libs/src/portable' Installed libportable.a to ../../lib Installed ./libportable.h to ../../include gmake[1]: Leaving directory `/usr/ports/security/xinetd/work/xinetd-2.3.14/libs/src/portable' cd libs/src/sio ; gmake CC='cc' CFLAGS='-O2 -fno-strict-aliasing -pipe -O2 -fno-strict-aliasing -pipe -I../../include' install gmake[1]: Entering directory `/usr/ports/security/xinetd/work/xinetd-2.3.14/libs/src/sio' Installed libsio.a to ../../lib Installed ./sio.h to ../../include ... these network services to be started at boot time. /usr/local/etc/rc.d/xinetd If there are vulnerabilities in these programs there may be a security risk to the system. FreeBSD makes no guarantee about the security of ports included in the Ports Collection. Please type 'make deinstall' to deinstall the port if this is a concern. For more information, and contact details about the security status of this software, see the following webpage: http://www.xinetd.org/ õ ×ÁÓ ÅÓÔØ ÎÏ×ÁÑ ÐÏÞÔÁ × /var/mail/root |
#killall inetd
![]() |
#killall inetd
|
#vim /e
![]() |
#vim /etc/rc.conf
![]() --- /tmp/l3-saved-1872.26213.10090 2009-07-31 21:42:18.000000000 +0300 +++ /etc/rc.conf 2009-07-31 21:43:17.000000000 +0300 @@ -10,7 +10,7 @@ saver="fire" scrnmap="koi8-r2cp866" usbd_enable="YES" -inetd_enable=yes +inetd_enable="NO" defaultrouter="192.168.16.254" ifconfig_re0="inet 192.168.16.24 netmask 255.255.255.0" ifconfig_re1="inet 192.168.54.1 netmask 255.255.255.224" |
#vim /e
![]() --- /tmp/l3-saved-1872.26213.10090 2009-07-31 21:42:18.000000000 +0300 +++ /etc/rc.conf 2009-07-31 21:43:17.000000000 +0300 @@ -10,7 +10,7 @@ saver="fire" scrnmap="koi8-r2cp866" usbd_enable="YES" -inetd_enable=yes +inetd_enable="NO" defaultrouter="192.168.16.254" ifconfig_re0="inet 192.168.16.24 netmask 255.255.255.0" ifconfig_re1="inet 192.168.54.1 netmask 255.255.255.224" |
#vim /etc/rc.conf
|
#ls /usr/local/etc/rc.d/xinetd.sh
![]() ls: /usr/local/etc/rc.d/xinetd.sh: No such file or directory |
#ls /usr/local/etc/rc.d/xinetd.sh
![]() ls: /usr/local/etc/rc.d/xinetd.sh: No such file or directory |
#ls /usr/local/etc/rc.d/
![]() avahi-daemon.sh gdm xfs avahi-dnsconfd.sh hald xinetd dbus polkitd ffserver system-tools-backends |
#ls /usr/local/etc/rc.d/
avahi-daemon.sh gdm xfs avahi-dnsconfd.sh hald xinetd dbus polkitd ffserver system-tools-backends |
#ls /usr/local/etc/rc.d/xinetd
![]() /usr/local/etc/rc.d/xinetd |
#ls /usr/local/etc/rc.d/xinetd
/usr/local/etc/rc.d/xinetd |
#ls
![]() Makefile files pkg-plist distinfo pkg-descr work |
#ls
Makefile files pkg-plist distinfo pkg-descr work |
#ping ya.ru
![]() PING ya.ru (213.180.204.8): 56 data bytes 64 bytes from 213.180.204.8: icmp_seq=0 ttl=50 time=51.032 ms 64 bytes from 213.180.204.8: icmp_seq=1 ttl=51 time=59.202 ms 64 bytes from 213.180.204.8: icmp_seq=2 ttl=51 time=59.358 ms 64 bytes from 213.180.204.8: icmp_seq=3 ttl=51 time=60.292 ms 64 bytes from 213.180.204.8: icmp_seq=4 ttl=50 time=61.352 ms ^C --- ya.ru ping statistics --- 5 packets transmitted, 5 packets received, 0% packet loss round-trip min/avg/max/stddev = 51.032/58.247/61.352/3.689 ms |
#ping ya.ru
PING ya.ru (213.180.204.8): 56 data bytes 64 bytes from 213.180.204.8: icmp_seq=0 ttl=50 time=51.032 ms 64 bytes from 213.180.204.8: icmp_seq=1 ttl=51 time=59.202 ms 64 bytes from 213.180.204.8: icmp_seq=2 ttl=51 time=59.358 ms 64 bytes from 213.180.204.8: icmp_seq=3 ttl=51 time=60.292 ms 64 bytes from 213.180.204.8: icmp_seq=4 ttl=50 time=61.352 ms ^C --- ya.ru ping statistics --- 5 packets transmitted, 5 packets received, 0% packet loss round-trip min/avg/max/stddev = 51.032/58.247/61.352/3.689 ms |
#cd /usr/local/etc/rc.d/xinetd
![]() bash: cd: /usr/local/etc/rc.d/xinetd: Not a directory |
#cd /usr/local/etc/rc.d/xinetd
![]() bash: cd: /usr/local/etc/rc.d/xinetd: Not a directory |
#cd /usr/local/etc/rc.d/
![]() |
#cd /usr/local/etc/rc.d/
|
#ls
![]() avahi-daemon.sh gdm xfs avahi-dnsconfd.sh hald xinetd dbus polkitd ffserver system-tools-backends |
#ls
avahi-daemon.sh gdm xfs avahi-dnsconfd.sh hald xinetd dbus polkitd ffserver system-tools-backends |
#ls -l
![]() total 20 -r-xr-xr-x 1 root wheel 873 1 ÄÅË 2007 avahi-daemon.sh -r-xr-xr-x 1 root wheel 1119 1 ÄÅË 2007 avahi-dnsconfd.sh -r-xr-xr-x 1 root wheel 664 1 ÄÅË 2007 dbus -r-xr-xr-x 1 root wheel 469 1 ÄÅË 2007 ffserver -r-xr-xr-x 1 root wheel 563 17 ÄÅË 2007 gdm -r-xr-xr-x 1 root wheel 1126 1 ÄÅË 2007 hald -r-xr-xr-x 1 root wheel 1036 1 ÄÅË 2007 polkitd -r-xr-xr-x 1 root wheel 765 1 ÄÅË 2007 system-tools-backends -r-xr-xr-x 1 root wheel 935 1 ÄÅË 2007 xfs -r-xr-xr-x 1 root wheel 461 31 ÉÀÌ 21:41 xinetd |
#ls -l
total 20 -r-xr-xr-x 1 root wheel 873 1 ÄÅË 2007 avahi-daemon.sh -r-xr-xr-x 1 root wheel 1119 1 ÄÅË 2007 avahi-dnsconfd.sh -r-xr-xr-x 1 root wheel 664 1 ÄÅË 2007 dbus -r-xr-xr-x 1 root wheel 469 1 ÄÅË 2007 ffserver -r-xr-xr-x 1 root wheel 563 17 ÄÅË 2007 gdm -r-xr-xr-x 1 root wheel 1126 1 ÄÅË 2007 hald -r-xr-xr-x 1 root wheel 1036 1 ÄÅË 2007 polkitd -r-xr-xr-x 1 root wheel 765 1 ÄÅË 2007 system-tools-backends -r-xr-xr-x 1 root wheel 935 1 ÄÅË 2007 xfs -r-xr-xr-x 1 root wheel 461 31 ÉÀÌ 21:41 xinetd |
#ping ya.ru
![]() PING ya.ru (93.158.134.8): 56 data bytes 64 bytes from 93.158.134.8: icmp_seq=0 ttl=50 time=61.732 ms 64 bytes from 93.158.134.8: icmp_seq=1 ttl=50 time=61.521 ms 64 bytes from 93.158.134.8: icmp_seq=2 ttl=49 time=51.979 ms 64 bytes from 93.158.134.8: icmp_seq=3 ttl=49 time=52.226 ms 64 bytes from 93.158.134.8: icmp_seq=4 ttl=49 time=52.794 ms 64 bytes from 93.158.134.8: icmp_seq=5 ttl=49 time=52.912 ms 64 bytes from 93.158.134.8: icmp_seq=6 ttl=50 time=60.837 ms 64 bytes from 93.158.134.8: icmp_seq=7 ttl=49 time=52.395 ms 64 bytes from 93.158.134.8: icmp_seq=8 ttl=49 time=52.686 ms 64 bytes from 93.158.134.8: icmp_seq=9 ttl=49 time=53.072 ms 64 bytes from 93.158.134.8: icmp_seq=10 ttl=50 time=61.016 ms 64 bytes from 93.158.134.8: icmp_seq=11 ttl=49 time=51.774 ms 64 bytes from 93.158.134.8: icmp_seq=12 ttl=49 time=52.641 ms 64 bytes from 93.158.134.8: icmp_seq=13 ttl=50 time=61.400 ms ^C --- ya.ru ping statistics --- 14 packets transmitted, 14 packets received, 0% packet loss round-trip min/avg/max/stddev = 51.774/55.642/61.732/4.236 ms |
#ping ya.ru
PING ya.ru (93.158.134.8): 56 data bytes 64 bytes from 93.158.134.8: icmp_seq=0 ttl=50 time=61.732 ms 64 bytes from 93.158.134.8: icmp_seq=1 ttl=50 time=61.521 ms 64 bytes from 93.158.134.8: icmp_seq=2 ttl=49 time=51.979 ms 64 bytes from 93.158.134.8: icmp_seq=3 ttl=49 time=52.226 ms 64 bytes from 93.158.134.8: icmp_seq=4 ttl=49 time=52.794 ms 64 bytes from 93.158.134.8: icmp_seq=5 ttl=49 time=52.912 ms 64 bytes from 93.158.134.8: icmp_seq=6 ttl=50 time=60.837 ms 64 bytes from 93.158.134.8: icmp_seq=7 ttl=49 time=52.395 ms 64 bytes from 93.158.134.8: icmp_seq=8 ttl=49 time=52.686 ms 64 bytes from 93.158.134.8: icmp_seq=9 ttl=49 time=53.072 ms 64 bytes from 93.158.134.8: icmp_seq=10 ttl=50 time=61.016 ms 64 bytes from 93.158.134.8: icmp_seq=11 ttl=49 time=51.774 ms 64 bytes from 93.158.134.8: icmp_seq=12 ttl=49 time=52.641 ms 64 bytes from 93.158.134.8: icmp_seq=13 ttl=50 time=61.400 ms ^C --- ya.ru ping statistics --- 14 packets transmitted, 14 packets received, 0% packet loss round-trip min/avg/max/stddev = 51.774/55.642/61.732/4.236 ms |
#ls -l
![]() total 20 -r-xr-xr-x 1 root wheel 873 1 ÄÅË 2007 avahi-daemon.sh -r-xr-xr-x 1 root wheel 1119 1 ÄÅË 2007 avahi-dnsconfd.sh -r-xr-xr-x 1 root wheel 664 1 ÄÅË 2007 dbus -r-xr-xr-x 1 root wheel 469 1 ÄÅË 2007 ffserver -r-xr-xr-x 1 root wheel 563 17 ÄÅË 2007 gdm -r-xr-xr-x 1 root wheel 1126 1 ÄÅË 2007 hald -r-xr-xr-x 1 root wheel 1036 1 ÄÅË 2007 polkitd -r-xr-xr-x 1 root wheel 765 1 ÄÅË 2007 system-tools-backends -r-xr-xr-x 1 root wheel 935 1 ÄÅË 2007 xfs -r-xr-xr-x 1 root wheel 461 31 ÉÀÌ 21:41 xinetd |
#ls -l
total 20 -r-xr-xr-x 1 root wheel 873 1 ÄÅË 2007 avahi-daemon.sh -r-xr-xr-x 1 root wheel 1119 1 ÄÅË 2007 avahi-dnsconfd.sh -r-xr-xr-x 1 root wheel 664 1 ÄÅË 2007 dbus -r-xr-xr-x 1 root wheel 469 1 ÄÅË 2007 ffserver -r-xr-xr-x 1 root wheel 563 17 ÄÅË 2007 gdm -r-xr-xr-x 1 root wheel 1126 1 ÄÅË 2007 hald -r-xr-xr-x 1 root wheel 1036 1 ÄÅË 2007 polkitd -r-xr-xr-x 1 root wheel 765 1 ÄÅË 2007 system-tools-backends -r-xr-xr-x 1 root wheel 935 1 ÄÅË 2007 xfs -r-xr-xr-x 1 root wheel 461 31 ÉÀÌ 21:41 xinetd |
#cp /etc/inetd.conf > /tmp/xinetd.conf
![]() usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-lpv] source_file target_file cp [-R [-H | -L | -P]] [-f | -i | -n] [-lpv] source_file ... target_directory õ ×ÁÓ ÅÓÔØ ÎÏ×ÁÑ ÐÏÞÔÁ × /var/mail/root |
#cp /etc/inetd.conf > /tmp/xinetd.conf
![]() usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-lpv] source_file target_file cp [-R [-H | -L | -P]] [-f | -i | -n] [-lpv] source_file ... target_directory õ ×ÁÓ ÅÓÔØ ÎÏ×ÁÑ ÐÏÞÔÁ × /var/mail/root |
#ls /etc/
![]() X11 login.conf profile aliases login.conf.db protocols amd.map mac.conf pwd.db apmd.conf mail rc auth.conf mail.rc rc.bsdextended bluetooth make.conf rc.conf crontab manpath.config rc.d csh.cshrc manpath.config.bak rc.firewall csh.login manpath.config.bak.xorg rc.firewall6 csh.logout master.passwd rc.initdiskless ... hosts passwd snmpd.config hosts.allow pccard_ether spwd.db hosts.equiv periodic ssh hosts.lpd periodic.conf ssl inetd.conf pf.conf sysctl.conf isdn pf.os syslog.conf lilalo phones termcap localtime portsnap.conf ttys locate.rc ppp usbd.conf login.access printcap wall_cmos_clock |
#ls /etc/
X11 login.conf profile aliases login.conf.db protocols amd.map mac.conf pwd.db apmd.conf mail rc auth.conf mail.rc rc.bsdextended bluetooth make.conf rc.conf crontab manpath.config rc.d csh.cshrc manpath.config.bak rc.firewall csh.login manpath.config.bak.xorg rc.firewall6 csh.logout master.passwd rc.initdiskless ... hosts passwd snmpd.config hosts.allow pccard_ether spwd.db hosts.equiv periodic ssh hosts.lpd periodic.conf ssl inetd.conf pf.conf sysctl.conf isdn pf.os syslog.conf lilalo phones termcap localtime portsnap.conf ttys locate.rc ppp usbd.conf login.access printcap wall_cmos_clock |
#vimtc/inetd.conf
![]() # deadly security hole. # #cvspserver stream tcp nowait root /usr/bin/cvs cvs --allow-roott =/your/cvsroot/here pserver #cvspserver stream tcp nowait root /usr/bin/cvs cvs --allow-roott =/your/cvsroot/here kserver # # RPC based services (you MUST have rpcbind running to use these) # #rstatd/1-3 dgram rpc/udp wait root /usr/libexec/rpc.rstatd rpc.rstatd #rusersd/1-2 dgram rpc/udp wait root /usr/libexec/rpc.rusersd rpc.rusersd #walld/1 dgram rpc/udp wait root /usr/libexec/rpc.rwalld rpc.rwalld #pcnfsd/1-2 dgram rpc/udp wait root /usr/local/libexec/rpc.pcnfsd rpc.pcnn fsd #chargen stream tcp nowait root internal |
#vimtc/inetd.conf
# deadly security hole. # #cvspserver stream tcp nowait root /usr/bin/cvs cvs --allow-roott =/your/cvsroot/here pserver #cvspserver stream tcp nowait root /usr/bin/cvs cvs --allow-roott =/your/cvsroot/here kserver # # RPC based services (you MUST have rpcbind running to use these) # #rstatd/1-3 dgram rpc/udp wait root /usr/libexec/rpc.rstatd rpc.rstatd #rusersd/1-2 dgram rpc/udp wait root /usr/libexec/rpc.rusersd rpc.rusersd #walld/1 dgram rpc/udp wait root /usr/libexec/rpc.rwalld rpc.rwalld #pcnfsd/1-2 dgram rpc/udp wait root /usr/local/libexec/rpc.pcnfsd rpc.pcnn fsd #chargen stream tcp nowait root internal |
#:q
![]() X11 login.conf profile aliases login.conf.db protocols amd.map mac.conf pwd.db apmd.conf mail rc auth.conf mail.rc rc.bsdextended bluetooth make.conf rc.conf crontab manpath.config rc.d csh.cshrc manpath.config.bak rc.firewall csh.login manpath.config.bak.xorg rc.firewall6 csh.logout master.passwd rc.initdiskless ... hosts passwd snmpd.config hosts.allow pccard_ether spwd.db hosts.equiv periodic ssh hosts.lpd periodic.conf ssl inetd.conf pf.conf sysctl.conf isdn pf.os syslog.conf lilalo phones termcap localtime portsnap.conf ttys locate.rc ppp usbd.conf login.access printcap wall_cmos_clock |
#:q
X11 login.conf profile aliases login.conf.db protocols amd.map mac.conf pwd.db apmd.conf mail rc auth.conf mail.rc rc.bsdextended bluetooth make.conf rc.conf crontab manpath.config rc.d csh.cshrc manpath.config.bak rc.firewall csh.login manpath.config.bak.xorg rc.firewall6 csh.logout master.passwd rc.initdiskless ... hosts passwd snmpd.config hosts.allow pccard_ether spwd.db hosts.equiv periodic ssh hosts.lpd periodic.conf ssl inetd.conf pf.conf sysctl.conf isdn pf.os syslog.conf lilalo phones termcap localtime portsnap.conf ttys locate.rc ppp usbd.conf login.access printcap wall_cmos_clock |
#cd /
![]() |
#cd /
|
#ls
![]() .cshrc boot etc mnt sys .mozilla cdrom home moused.core tmp .profile compat lib proc usr .snap dev libexec rescue var COPYRIGHT dist log root xdm.core bin entropy media sbin |
#ls
.cshrc boot etc mnt sys .mozilla cdrom home moused.core tmp .profile compat lib proc usr .snap dev libexec rescue var COPYRIGHT dist log root xdm.core bin entropy media sbin |
#cd tmp
![]() |
#cd tmp
|
#ls
![]() .ICE-unix .XautheyDnAo .X0-lock .XauthflQHoq .X11-unix .XauthhW8Fok .X2-lock .XauthhekNwY .XIM-unix .XauthmcezOP .Xauth7nmoqG .Xauthroljgq .Xauth8A9uGq .XauthuPKlB7 .XauthCuihBu .font-unix .XauthEWHAR4 .snap .XauthMzhkdv after .XauthQuGEGG before .XauthRnqMTi fam-root .XauthYkDtVP fam-user .XauthbvkzHd l3-saved-3104.13332.27493 .XauthcOXb4t lilalo-install-temp-1212 .XauthdZ4p4V lilalo-install-temp-1241 .XauthdlWfzv xinetd.conf |
#ls
.ICE-unix .XautheyDnAo .X0-lock .XauthflQHoq .X11-unix .XauthhW8Fok .X2-lock .XauthhekNwY .XIM-unix .XauthmcezOP .Xauth7nmoqG .Xauthroljgq .Xauth8A9uGq .XauthuPKlB7 .XauthCuihBu .font-unix .XauthEWHAR4 .snap .XauthMzhkdv after .XauthQuGEGG before .XauthRnqMTi fam-root .XauthYkDtVP fam-user .XauthbvkzHd l3-saved-3104.13332.27493 .XauthcOXb4t lilalo-install-temp-1212 .XauthdZ4p4V lilalo-install-temp-1241 .XauthdlWfzv xinetd.conf |
#vim xinetd.conf
![]() |
#vim xinetd.conf
|
#cp /etc/inetd.conf >>
![]() usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-lpv] source_file target_file cp [-R [-H | -L | -P]] [-f | -i | -n] [-lpv] source_file ... target_directory |
#cp /etc/inetd.conf >>
![]() usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-lpv] source_file target_file cp [-R [-H | -L | -P]] [-f | -i | -n] [-lpv] source_file ... target_directory |
#cd /
![]() |
#cd /
|
#cd /etc/
![]() |
#cd /etc/
|
#vim inetd.conf
![]() |
#vim inetd.conf
|
#cp /etc/inetd.conf >> /tmp/xinetd.conf
![]() usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-lpv] source_file target_file cp [-R [-H | -L | -P]] [-f | -i | -n] [-lpv] source_file ... target_directory |
#cp /etc/inetd.conf >> /tmp/xinetd.conf
![]() usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-lpv] source_file target_file cp [-R [-H | -L | -P]] [-f | -i | -n] [-lpv] source_file ... target_directory |
#cp inetd.conf >> inetd1.conf
![]() usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-lpv] source_file target_file cp [-R [-H | -L | -P]] [-f | -i | -n] [-lpv] source_file ... target_directory |
#cp inetd.conf >> inetd1.conf
![]() usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-lpv] source_file target_file cp [-R [-H | -L | -P]] [-f | -i | -n] [-lpv] source_file ... target_directory |
#man cp
![]() |
#man cp
|
#cp /etc/inetd.conf /tmp/xinetd.conf
![]() |
#cp /etc/inetd.conf /tmp/xinetd.conf
|
#rm inetd1.conf
![]() |
#rm inetd1.conf
|
#ls
![]() X11 login.conf profile aliases login.conf.db protocols amd.map mac.conf pwd.db apmd.conf mail rc auth.conf mail.rc rc.bsdextended bluetooth make.conf rc.conf crontab manpath.config rc.d csh.cshrc manpath.config.bak rc.firewall csh.login manpath.config.bak.xorg rc.firewall6 csh.logout master.passwd rc.initdiskless ... hosts passwd snmpd.config hosts.allow pccard_ether spwd.db hosts.equiv periodic ssh hosts.lpd periodic.conf ssl inetd.conf pf.conf sysctl.conf isdn pf.os syslog.conf lilalo phones termcap localtime portsnap.conf ttys locate.rc ppp usbd.conf login.access printcap wall_cmos_clock |
#ls
X11 login.conf profile aliases login.conf.db protocols amd.map mac.conf pwd.db apmd.conf mail rc auth.conf mail.rc rc.bsdextended bluetooth make.conf rc.conf crontab manpath.config rc.d csh.cshrc manpath.config.bak rc.firewall csh.login manpath.config.bak.xorg rc.firewall6 csh.logout master.passwd rc.initdiskless ... hosts passwd snmpd.config hosts.allow pccard_ether spwd.db hosts.equiv periodic ssh hosts.lpd periodic.conf ssl inetd.conf pf.conf sysctl.conf isdn pf.os syslog.conf lilalo phones termcap localtime portsnap.conf ttys locate.rc ppp usbd.conf login.access printcap wall_cmos_clock |
#xconv < /etc/inetd.conf > /usr/local/etc/xinetd.conf
![]() |
#xconv < /etc/inetd.conf > /usr/local/etc/xinetd.conf
|
#mkdir /usr/local/etc/xinetd.d
![]() |
#mkdir /usr/local/etc/xinetd.d
|
#vim /usr/local/etc/xinetd.conf
![]() --- /tmp/l3-saved-1872.15990.20058 2009-07-31 21:59:34.000000000 +0300 +++ /usr/local/etc/xinetd.conf 2009-07-31 22:04:02.000000000 +0300 @@ -46,3 +46,5 @@ server_args = Xvnc -inetd -query localhost -depth 24 -geometry 1200x900 SecurityTypes=none } +# +includedir /usr/local/etc/xinetd.d |
#vim /usr/local/etc/xinetd.conf
--- /tmp/l3-saved-1872.15990.20058 2009-07-31 21:59:34.000000000 +0300 +++ /usr/local/etc/xinetd.conf 2009-07-31 22:04:02.000000000 +0300 @@ -46,3 +46,5 @@ server_args = Xvnc -inetd -query localhost -depth 24 -geometry 1200x900 SecurityTypes=none } +# +includedir /usr/local/etc/xinetd.d |
#vim /usr/local/etc/x
![]() |
#vim /usr/local/etc/xinetd.conf
![]() |
#vim /usr/local/etc/x
![]() |
#vim /usr/local/etc/xinetd.conf
|
#pwd
![]() /etc |
#pwd
/etc |
#cd /usr/local/etc/xinetd.d
![]() |
#cd /usr/local/etc/xinetd.d
|
#ls
![]() |
#ls
|
#ls
![]() xinetd.vnc |
#ls
xinetd.vnc |
#vim xinetd.vnc
![]() --- /tmp/l3-saved-1872.7920.21498 2009-07-31 22:09:56.000000000 +0300 +++ xinetd.vnc 2009-07-31 22:10:59.000000000 +0300 @@ -8,33 +8,6 @@ # on how to properly configure xinetd. -# The defaults section sets some information for all services -defaults -{ - #The maximum number of requests a particular service may handle - # at once. - instances = 25 - - # The type of logging. This logs to a file that is specified. - # Another option is: SYSLOG syslog_facility [syslog_level] - log_type = FILE /var/log/servicelog - - # What to log when the connection succeeds. - # PID logs the pid of the server processing the request. - # HOST logs the remote host's ip address. - # USERID logs the remote user (using RFC 1413) - # EXIT logs the exit status of the server. - # DURATION logs the duration of the session. - log_on_success = HOST PID - - # What to log when the connection fails. Same options as above - log_on_failure = HOST - - # The maximum number of connections a specific IP address can - # have to a specific service. - per_source = 5 -} - service vnc1 { flags = NAMEINARGS |
#vim xinetd.vnc
--- /tmp/l3-saved-1872.7920.21498 2009-07-31 22:09:56.000000000 +0300 +++ xinetd.vnc 2009-07-31 22:10:59.000000000 +0300 @@ -8,33 +8,6 @@ # on how to properly configure xinetd. -# The defaults section sets some information for all services -defaults -{ - #The maximum number of requests a particular service may handle - # at once. - instances = 25 - - # The type of logging. This logs to a file that is specified. - # Another option is: SYSLOG syslog_facility [syslog_level] - log_type = FILE /var/log/servicelog - - # What to log when the connection succeeds. - # PID logs the pid of the server processing the request. - # HOST logs the remote host's ip address. - # USERID logs the remote user (using RFC 1413) - # EXIT logs the exit status of the server. - # DURATION logs the duration of the session. - log_on_success = HOST PID - - # What to log when the connection fails. Same options as above - log_on_failure = HOST - - # The maximum number of connections a specific IP address can - # have to a specific service. - per_source = 5 -} - service vnc1 { flags = NAMEINARGS |
#ls
![]() xinetd.vnc |
#ls
xinetd.vnc |
#ls
![]() |
#ls
![]() xinetd.users xinetd.vnc |
#ls
![]() |
#ls
xinetd.users xinetd.vnc |
#vim xinetd.
![]() |
#vim xinetd.
![]() |
#vim xinetd.
|
Время первой команды журнала | 20:40:03 2009- 7-31 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 21:11:20 2009- 7-31 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 11.88 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.52 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 3.23 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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