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

Содержание

Журнал

Среда (03/28/12)

/dev/ttyr4
19:22:42
$exit
exit
Connection to 192.168.13.23 closed.
/dev/ttyr1
19:22:42
$exit
exit
Connection to 192.168.13.23 closed.
/dev/ttyr3
19:22:42
$exit
exit
Connection to 192.168.13.23 closed.
/dev/ttyqr
19:22:42
$exit
exit
Connection to 192.168.13.23 closed.
/dev/ttyr8
19:22:42
$exit
exit
Connection to 192.168.13.23 closed.
/dev/ttyqm
19:22:45
#exit
exit
19:22:45
#exit
exit
19:22:45
#exit
exit
19:22:45
#exit
exit
/dev/ttyp2
19:23:21
#man pw
19:23:21
#man pw
19:29:28
#man pw^C
19:29:28
#man pw^C
19:29:28
#man pw^C
19:29:28
#man pw^C
19:33:52
#vim /etc/shadow
19:33:52
#vim /etc/shadow
19:34:09
#~

19:34:09
#~

19:34:27
#~
# $FreeBSD: src/etc/master.passwd,v 1.40.26.1 2010/12/21 17:10:29 kensmith Exp $
#
sh
root:$1$eExfkyn/$LpFRLwcyME9Xk7A.DyisE/:0:0::0:0:Charlie &:/root:/usr/local/bin/baa
toor:*:0:0::0:0:Bourne-again Superuser:/root:
daemon:*:1:1::0:0:Owner of many system processes:/root:/usr/sbin/nologin
operator:*:2:5::0:0:System &:/:/usr/sbin/nologin
bin:*:3:7::0:0:Binaries Commands and Source:/:/usr/sbin/nologin
tty:*:4:65533::0:0:Tty Sandbox:/:/usr/sbin/nologin
ginm:*:5:65533::0:0:KMem Sandbox:/:/usr/sbin/nologin
...
proxy:*:62:62::0:0:Packet Filter pseudo-user:/nonexistent:/usr/sbin/nologin
ucico
_pflogd:*:64:64::0:0:pflogd privsep user:/var/empty:/usr/sbin/nologin
pop:*:68:6::0:0:Post Office Owner:/nonexistent:/usr/sbin/nologin
_dhcp:*:65:65::0:0:dhcp programs:/var/empty:/usr/sbin/nologinmqueue:/usr/sbin/noloo
www:*:80:80::0:0:World Wide Web Owner:/nonexistent:/usr/sbin/nologin
l/bin/bash66::0:0:UUCP pseudo-user:/var/spool/uucppublic:/usr/local/libexec/uucp/uu
nobody:*:65534:65534::0:0:Unprivileged user:/nonexistent:/usr/sbin/nologin
user:$1$nPU0IgL2$AT2opEx2xVJqqeiaOE1Vs/:1001:1001::0:0:User &:/home/user:/usr/locaa
"/etc/master.passwd" 24 lines, 1567 characters
19:34:27
#~
# $FreeBSD: src/etc/master.passwd,v 1.40.26.1 2010/12/21 17:10:29 kensmith Exp $
#
sh
root:$1$eExfkyn/$LpFRLwcyME9Xk7A.DyisE/:0:0::0:0:Charlie &:/root:/usr/local/bin/baa
toor:*:0:0::0:0:Bourne-again Superuser:/root:
daemon:*:1:1::0:0:Owner of many system processes:/root:/usr/sbin/nologin
operator:*:2:5::0:0:System &:/:/usr/sbin/nologin
bin:*:3:7::0:0:Binaries Commands and Source:/:/usr/sbin/nologin
tty:*:4:65533::0:0:Tty Sandbox:/:/usr/sbin/nologin
ginm:*:5:65533::0:0:KMem Sandbox:/:/usr/sbin/nologin
...
proxy:*:62:62::0:0:Packet Filter pseudo-user:/nonexistent:/usr/sbin/nologin
ucico
_pflogd:*:64:64::0:0:pflogd privsep user:/var/empty:/usr/sbin/nologin
pop:*:68:6::0:0:Post Office Owner:/nonexistent:/usr/sbin/nologin
_dhcp:*:65:65::0:0:dhcp programs:/var/empty:/usr/sbin/nologinmqueue:/usr/sbin/noloo
www:*:80:80::0:0:World Wide Web Owner:/nonexistent:/usr/sbin/nologin
l/bin/bash66::0:0:UUCP pseudo-user:/var/spool/uucppublic:/usr/local/libexec/uucp/uu
nobody:*:65534:65534::0:0:Unprivileged user:/nonexistent:/usr/sbin/nologin
user:$1$nPU0IgL2$AT2opEx2xVJqqeiaOE1Vs/:1001:1001::0:0:User &:/home/user:/usr/locaa
"/etc/master.passwd" 24 lines, 1567 characters
19:34:27
#~
# $FreeBSD: src/etc/master.passwd,v 1.40.26.1 2010/12/21 17:10:29 kensmith Exp $
#
sh
root:$1$eExfkyn/$LpFRLwcyME9Xk7A.DyisE/:0:0::0:0:Charlie &:/root:/usr/local/bin/baa
toor:*:0:0::0:0:Bourne-again Superuser:/root:
daemon:*:1:1::0:0:Owner of many system processes:/root:/usr/sbin/nologin
operator:*:2:5::0:0:System &:/:/usr/sbin/nologin
bin:*:3:7::0:0:Binaries Commands and Source:/:/usr/sbin/nologin
tty:*:4:65533::0:0:Tty Sandbox:/:/usr/sbin/nologin
ginm:*:5:65533::0:0:KMem Sandbox:/:/usr/sbin/nologin
...
proxy:*:62:62::0:0:Packet Filter pseudo-user:/nonexistent:/usr/sbin/nologin
ucico
_pflogd:*:64:64::0:0:pflogd privsep user:/var/empty:/usr/sbin/nologin
pop:*:68:6::0:0:Post Office Owner:/nonexistent:/usr/sbin/nologin
_dhcp:*:65:65::0:0:dhcp programs:/var/empty:/usr/sbin/nologinmqueue:/usr/sbin/noloo
www:*:80:80::0:0:World Wide Web Owner:/nonexistent:/usr/sbin/nologin
l/bin/bash66::0:0:UUCP pseudo-user:/var/spool/uucppublic:/usr/local/libexec/uucp/uu
nobody:*:65534:65534::0:0:Unprivileged user:/nonexistent:/usr/sbin/nologin
user:$1$nPU0IgL2$AT2opEx2xVJqqeiaOE1Vs/:1001:1001::0:0:User &:/home/user:/usr/locaa
"/etc/master.passwd" 24 lines, 1567 characters
19:34:27
#~
# $FreeBSD: src/etc/master.passwd,v 1.40.26.1 2010/12/21 17:10:29 kensmith Exp $
#
sh
root:$1$eExfkyn/$LpFRLwcyME9Xk7A.DyisE/:0:0::0:0:Charlie &:/root:/usr/local/bin/baa
toor:*:0:0::0:0:Bourne-again Superuser:/root:
daemon:*:1:1::0:0:Owner of many system processes:/root:/usr/sbin/nologin
operator:*:2:5::0:0:System &:/:/usr/sbin/nologin
bin:*:3:7::0:0:Binaries Commands and Source:/:/usr/sbin/nologin
tty:*:4:65533::0:0:Tty Sandbox:/:/usr/sbin/nologin
ginm:*:5:65533::0:0:KMem Sandbox:/:/usr/sbin/nologin
...
proxy:*:62:62::0:0:Packet Filter pseudo-user:/nonexistent:/usr/sbin/nologin
ucico
_pflogd:*:64:64::0:0:pflogd privsep user:/var/empty:/usr/sbin/nologin
pop:*:68:6::0:0:Post Office Owner:/nonexistent:/usr/sbin/nologin
_dhcp:*:65:65::0:0:dhcp programs:/var/empty:/usr/sbin/nologinmqueue:/usr/sbin/noloo
www:*:80:80::0:0:World Wide Web Owner:/nonexistent:/usr/sbin/nologin
l/bin/bash66::0:0:UUCP pseudo-user:/var/spool/uucppublic:/usr/local/libexec/uucp/uu
nobody:*:65534:65534::0:0:Unprivileged user:/nonexistent:/usr/sbin/nologin
user:$1$nPU0IgL2$AT2opEx2xVJqqeiaOE1Vs/:1001:1001::0:0:User &:/home/user:/usr/locaa
"/etc/master.passwd" 24 lines, 1567 characters
19:36:46
#~
usage: vipw [-d directory]
19:36:46
#~
usage: vipw [-d directory]
19:36:53
#vipw /etc/passwd
usage: vipw [-d directory]
19:36:53
#vipw /etc/passwd
usage: vipw [-d directory]
19:38:31
#man vipw
19:38:31
#man vipw
19:38:46
#vipw -d c/master.passwd
vipw: /etc/master.passwd/master.passwd: Not a directory
19:38:46
#vipw -d c/master.passwd
vipw: /etc/master.passwd/master.passwd: Not a directory
19:39:33
#man adduser
19:39:33
#man adduser
19:41:23
#man useradd
19:41:23
#man useradd
19:41:31
#adduser user1
Username: user1
Full name: user1
Uid (Leave empty for default):
Login group [user1]:
Login group is user1. Invite user1 into other groups? []:
Login class [default]:
Shell (sh csh tcsh bash rbash nologin) [sh]:
Home directory [/home/user1]:
Home directory permissions (Leave empty for default):
Use password-based authentication? [yes]:
...
Class      :
Groups     : user1
Home       : /home/user1
Home Mode  :
Shell      : /bin/sh
Locked     : no
OK? (yes/no): yes
adduser: INFO: Successfully added (user1) to the user database.
Add another user? (yes/no): no
Goodbye!
19:41:31
#adduser user1
Username: user1
Full name: user1
Uid (Leave empty for default):
Login group [user1]:
Login group is user1. Invite user1 into other groups? []:
Login class [default]:
Shell (sh csh tcsh bash rbash nologin) [sh]:
Home directory [/home/user1]:
Home directory permissions (Leave empty for default):
Use password-based authentication? [yes]:
...
Class      :
Groups     : user1
Home       : /home/user1
Home Mode  :
Shell      : /bin/sh
Locked     : no
OK? (yes/no): yes
adduser: INFO: Successfully added (user1) to the user database.
Add another user? (yes/no): no
Goodbye!
19:42:57
#id user1
uid=1002(user1) gid=1002(user1) groups=1002(user1)
19:42:57
#id user1
uid=1002(user1) gid=1002(user1) groups=1002(user1)
19:43:39
#vipw
toor:*:0:0::0:0:Bourne-again Superuser:/root:
daemon:*:1:1::0:0:Owner of many system processes:/root:/usr/sbin/nologin
operator:*:2:5::0:0:System &:/:/usr/sbin/nologin
bin:*:3:7::0:0:Binaries Commands and Source:/:/usr/sbin/nologin
tty:*:4:65533::0:0:Tty Sandbox:/:/usr/sbin/nologin
kmem:*:5:65533::0:0:KMem Sandbox:/:/usr/sbin/nologin
games:*:7:13::0:0:Games pseudo-user:/usr/games:/usr/sbin/nologin
news:*:8:8::0:0:News Subsystem:/:/usr/sbin/nologin
man:*:9:9::0:0:Mister Man Pages:/usr/share/man:/usr/sbin/nologin
sshd:*:22:22::0:0:Secure Shell Daemon:/var/empty:/usr/sbin/nologin
...
~
~
~
~
~
~
~
~
:q
vipw: no changes made
19:43:39
#vipw
toor:*:0:0::0:0:Bourne-again Superuser:/root:
daemon:*:1:1::0:0:Owner of many system processes:/root:/usr/sbin/nologin
operator:*:2:5::0:0:System &:/:/usr/sbin/nologin
bin:*:3:7::0:0:Binaries Commands and Source:/:/usr/sbin/nologin
tty:*:4:65533::0:0:Tty Sandbox:/:/usr/sbin/nologin
kmem:*:5:65533::0:0:KMem Sandbox:/:/usr/sbin/nologin
games:*:7:13::0:0:Games pseudo-user:/usr/games:/usr/sbin/nologin
news:*:8:8::0:0:News Subsystem:/:/usr/sbin/nologin
man:*:9:9::0:0:Mister Man Pages:/usr/share/man:/usr/sbin/nologin
sshd:*:22:22::0:0:Secure Shell Daemon:/var/empty:/usr/sbin/nologin
...
~
~
~
~
~
~
~
~
:q
vipw: no changes made
19:44:43
#fg
bash: fg: current: no such job
19:44:43
#fg
bash: fg: current: no such job
19:44:43
#fg
bash: fg: current: no such job
19:44:43
#fg
bash: fg: current: no such job
19:44:45
#jobs

19:44:45
#jobs

19:44:47
#pw useradd
pw: user name or id required
19:44:47
#pw useradd
pw: user name or id required
19:44:47
#pw useradd
pw: user name or id required
19:44:47
#pw useradd
pw: user name or id required
19:47:08
#pw useradd user2

19:47:08
#pw useradd user2

19:47:08
#pw useradd user2

19:47:08
#pw useradd user2

19:47:37
#^C useradd user2

19:47:37
#^C useradd user2

19:50:23
#man pw
19:50:23
#man pw
19:53:47
#userdel
bash: userdel: command not found
19:53:47
#userdel
bash: userdel: command not found
19:53:47
#userdel
bash: userdel: command not found
19:53:47
#userdel
bash: userdel: command not found
19:54:05
#deluser
bash: deluser: command not found
19:54:05
#deluser
bash: deluser: command not found
19:54:11
#pw userdel
pw: user name or id required
19:54:11
#pw userdel
pw: user name or id required
19:54:11
#pw userdel
pw: user name or id required
19:54:11
#pw userdel
pw: user name or id required
19:54:15
#vipw
toor:*:0:0::0:0:Bourne-again Superuser:/root:
daemon:*:1:1::0:0:Owner of many system processes:/root:/usr/sbin/nologin
operator:*:2:5::0:0:System &:/:/usr/sbin/nologin
bin:*:3:7::0:0:Binaries Commands and Source:/:/usr/sbin/nologin
tty:*:4:65533::0:0:Tty Sandbox:/:/usr/sbin/nologin
kmem:*:5:65533::0:0:KMem Sandbox:/:/usr/sbin/nologin
games:*:7:13::0:0:Games pseudo-user:/usr/games:/usr/sbin/nologin
news:*:8:8::0:0:News Subsystem:/:/usr/sbin/nologin
man:*:9:9::0:0:Mister Man Pages:/usr/share/man:/usr/sbin/nologin
sshd:*:22:22::0:0:Secure Shell Daemon:/var/empty:/usr/sbin/nologin
...
~
~
~
~
~
~
~
~
:q
vipw: no changes made
19:54:15
#vipw
toor:*:0:0::0:0:Bourne-again Superuser:/root:
daemon:*:1:1::0:0:Owner of many system processes:/root:/usr/sbin/nologin
operator:*:2:5::0:0:System &:/:/usr/sbin/nologin
bin:*:3:7::0:0:Binaries Commands and Source:/:/usr/sbin/nologin
tty:*:4:65533::0:0:Tty Sandbox:/:/usr/sbin/nologin
kmem:*:5:65533::0:0:KMem Sandbox:/:/usr/sbin/nologin
games:*:7:13::0:0:Games pseudo-user:/usr/games:/usr/sbin/nologin
news:*:8:8::0:0:News Subsystem:/:/usr/sbin/nologin
man:*:9:9::0:0:Mister Man Pages:/usr/share/man:/usr/sbin/nologin
sshd:*:22:22::0:0:Secure Shell Daemon:/var/empty:/usr/sbin/nologin
...
~
~
~
~
~
~
~
~
:q
vipw: no changes made
19:54:50
#rmuser
Please enter one or more usernames: user1
Matching password entry:
user1:*:1002:1002::0:0:user1:/home/user1:/bin/sh
Is this the entry you wish to remove? y
Remove user's home directory (/home/user1)? y
Removing user (user1): mailspool home passwd.
19:54:50
#rmuser
Please enter one or more usernames: user1
Matching password entry:
user1:*:1002:1002::0:0:user1:/home/user1:/bin/sh
Is this the entry you wish to remove? y
Remove user's home directory (/home/user1)? y
Removing user (user1): mailspool home passwd.
19:56:04
#rmuser
Please enter one or more usernames: user2
Matching password entry:
user2:*:1003:1003::0:0:User &:/home/user2:/bin/sh
Is this the entry you wish to remove? y
Remove user's home directory (/home/user2)? y
Removing user (user2): mailspool home passwd.
19:56:04
#rmuser
Please enter one or more usernames: user2
Matching password entry:
user2:*:1003:1003::0:0:User &:/home/user2:/bin/sh
Is this the entry you wish to remove? y
Remove user's home directory (/home/user2)? y
Removing user (user2): mailspool home passwd.
19:56:04
#rmuser
Please enter one or more usernames: user2
Matching password entry:
user2:*:1003:1003::0:0:User &:/home/user2:/bin/sh
Is this the entry you wish to remove? y
Remove user's home directory (/home/user2)? y
Removing user (user2): mailspool home passwd.
19:56:04
#rmuser
Please enter one or more usernames: user2
Matching password entry:
user2:*:1003:1003::0:0:User &:/home/user2:/bin/sh
Is this the entry you wish to remove? y
Remove user's home directory (/home/user2)? y
Removing user (user2): mailspool home passwd.
19:57:21
#man
19:57:21
#man
19:58:05
#sudo
bash: sudo: command not found
19:58:05
#sudo
bash: sudo: command not found
19:58:05
#sudo
bash: sudo: command not found
19:58:05
#sudo
bash: sudo: command not found
19:58:13
#locate sudo
/usr/local/share/vim/vim73/ftplugin/sudoers.vim
/usr/local/share/vim/vim73/syntax/sudoers.vim
/usr/ports/games/fxsudoku
/usr/ports/games/fxsudoku/Makefile
/usr/ports/games/fxsudoku/distinfo
/usr/ports/games/fxsudoku/files
/usr/ports/games/fxsudoku/files/config.freebsd
/usr/ports/games/fxsudoku/files/patch-build__configdetect
/usr/ports/games/fxsudoku/files/patch-build__foxdetect
/usr/ports/games/fxsudoku/files/patch-gb
...
/usr/ports/security/sudosh3
/usr/ports/security/sudosh3/Makefile
/usr/ports/security/sudosh3/distinfo
/usr/ports/security/sudosh3/files
/usr/ports/security/sudosh3/files/patch-src-Makefile.am
/usr/ports/security/sudosh3/files/patch-src-getopt.c
/usr/ports/security/sudosh3/files/patch-src::Makefile.in
/usr/ports/security/sudosh3/files/patch-src::sudosh.c
/usr/ports/security/sudosh3/pkg-descr
/usr/ports/security/sudosh3/pkg-plist
19:58:13
#locate sudo
/usr/local/share/vim/vim73/ftplugin/sudoers.vim
/usr/local/share/vim/vim73/syntax/sudoers.vim
/usr/ports/games/fxsudoku
/usr/ports/games/fxsudoku/Makefile
/usr/ports/games/fxsudoku/distinfo
/usr/ports/games/fxsudoku/files
/usr/ports/games/fxsudoku/files/config.freebsd
/usr/ports/games/fxsudoku/files/patch-build__configdetect
/usr/ports/games/fxsudoku/files/patch-build__foxdetect
/usr/ports/games/fxsudoku/files/patch-gb
...
/usr/ports/security/sudosh3
/usr/ports/security/sudosh3/Makefile
/usr/ports/security/sudosh3/distinfo
/usr/ports/security/sudosh3/files
/usr/ports/security/sudosh3/files/patch-src-Makefile.am
/usr/ports/security/sudosh3/files/patch-src-getopt.c
/usr/ports/security/sudosh3/files/patch-src::Makefile.in
/usr/ports/security/sudosh3/files/patch-src::sudosh.c
/usr/ports/security/sudosh3/pkg-descr
/usr/ports/security/sudosh3/pkg-plist
19:58:13
#locate sudo
/usr/local/share/vim/vim73/ftplugin/sudoers.vim
/usr/local/share/vim/vim73/syntax/sudoers.vim
/usr/ports/games/fxsudoku
/usr/ports/games/fxsudoku/Makefile
/usr/ports/games/fxsudoku/distinfo
/usr/ports/games/fxsudoku/files
/usr/ports/games/fxsudoku/files/config.freebsd
/usr/ports/games/fxsudoku/files/patch-build__configdetect
/usr/ports/games/fxsudoku/files/patch-build__foxdetect
/usr/ports/games/fxsudoku/files/patch-gb
...
/usr/ports/security/sudosh3
/usr/ports/security/sudosh3/Makefile
/usr/ports/security/sudosh3/distinfo
/usr/ports/security/sudosh3/files
/usr/ports/security/sudosh3/files/patch-src-Makefile.am
/usr/ports/security/sudosh3/files/patch-src-getopt.c
/usr/ports/security/sudosh3/files/patch-src::Makefile.in
/usr/ports/security/sudosh3/files/patch-src::sudosh.c
/usr/ports/security/sudosh3/pkg-descr
/usr/ports/security/sudosh3/pkg-plist
19:58:13
#locate sudo
/usr/local/share/vim/vim73/ftplugin/sudoers.vim
/usr/local/share/vim/vim73/syntax/sudoers.vim
/usr/ports/games/fxsudoku
/usr/ports/games/fxsudoku/Makefile
/usr/ports/games/fxsudoku/distinfo
/usr/ports/games/fxsudoku/files
/usr/ports/games/fxsudoku/files/config.freebsd
/usr/ports/games/fxsudoku/files/patch-build__configdetect
/usr/ports/games/fxsudoku/files/patch-build__foxdetect
/usr/ports/games/fxsudoku/files/patch-gb
...
/usr/ports/security/sudosh3
/usr/ports/security/sudosh3/Makefile
/usr/ports/security/sudosh3/distinfo
/usr/ports/security/sudosh3/files
/usr/ports/security/sudosh3/files/patch-src-Makefile.am
/usr/ports/security/sudosh3/files/patch-src-getopt.c
/usr/ports/security/sudosh3/files/patch-src::Makefile.in
/usr/ports/security/sudosh3/files/patch-src::sudosh.c
/usr/ports/security/sudosh3/pkg-descr
/usr/ports/security/sudosh3/pkg-plist
19:58:28
#cd /usr/ports/security/sudo

19:58:28
#cd /usr/ports/security/sudo

19:58:28
#cd /usr/ports/security/sudo

19:59:53
#make install clean
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking whether to use a two line prompt for OTP authentication... yes
checking whether to lecture users the first time they run sudo... yes
...
/usr/local/bin/sudo
/usr/local/bin/sudoedit
      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.courtesan.com/sudo/
===>  Cleaning for sudo-1.8.3_2
19:59:53
#make install clean
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking whether to use a two line prompt for OTP authentication... yes
checking whether to lecture users the first time they run sudo... yes
...
/usr/local/bin/sudo
/usr/local/bin/sudoedit
      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.courtesan.com/sudo/
===>  Cleaning for sudo-1.8.3_2
19:59:53
#make install clean
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking whether to use a two line prompt for OTP authentication... yes
checking whether to lecture users the first time they run sudo... yes
...
/usr/local/bin/sudo
/usr/local/bin/sudoedit
      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.courtesan.com/sudo/
===>  Cleaning for sudo-1.8.3_2
19:59:53
#make install clean
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking whether to use a two line prompt for OTP authentication... yes
checking whether to lecture users the first time they run sudo... yes
...
/usr/local/bin/sudo
/usr/local/bin/sudoedit
      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.courtesan.com/sudo/
===>  Cleaning for sudo-1.8.3_2
19:59:53
#make install clean
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking whether to use a two line prompt for OTP authentication... yes
checking whether to lecture users the first time they run sudo... yes
...
/usr/local/bin/sudo
/usr/local/bin/sudoedit
      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.courtesan.com/sudo/
===>  Cleaning for sudo-1.8.3_2
19:59:53
#make install clean
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking whether to use a two line prompt for OTP authentication... yes
checking whether to lecture users the first time they run sudo... yes
...
/usr/local/bin/sudo
/usr/local/bin/sudoedit
      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.courtesan.com/sudo/
===>  Cleaning for sudo-1.8.3_2
19:59:53
#make install clean
      x x                                                                x x
      x x                                                                x x
      x x                                                                x x
      x x                                                                x x
      x x                                                                x x
      x x                                                                x x
      x x                                                                x x
      x x                                                                x x
      x x                                                                x x
      tqmqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqjqu
...
/usr/local/bin/sudo
/usr/local/bin/sudoedit
      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.courtesan.com/sudo/
===>  Cleaning for sudo-1.8.3_2
20:01:50
#sudo
usage: sudo [-D level] -h | -K | -k | -V
usage: sudo -v [-AknS] [-D level] [-g groupname|#gid] [-p prompt] [-u user
            name|#uid]
usage: sudo -l[l] [-AknS] [-D level] [-g groupname|#gid] [-p prompt] [-U user
            name] [-u user name|#uid] [-g groupname|#gid] [command]
usage: sudo [-AbEHknPS] [-C fd] [-D level] [-c class|-] [-g groupname|#gid] [-p
            prompt] [-u user name|#uid] [-g groupname|#gid] [VAR=value] [-i|-s]
            [<command>]
usage: sudo -e [-AknS] [-C fd] [-D level] [-c class|-] [-g groupname|#gid] [-p
            prompt] [-u user name|#uid] file ...
20:01:50
#sudo
usage: sudo [-D level] -h | -K | -k | -V
usage: sudo -v [-AknS] [-D level] [-g groupname|#gid] [-p prompt] [-u user
            name|#uid]
usage: sudo -l[l] [-AknS] [-D level] [-g groupname|#gid] [-p prompt] [-U user
            name] [-u user name|#uid] [-g groupname|#gid] [command]
usage: sudo [-AbEHknPS] [-C fd] [-D level] [-c class|-] [-g groupname|#gid] [-p
            prompt] [-u user name|#uid] [-g groupname|#gid] [VAR=value] [-i|-s]
            [<command>]
usage: sudo -e [-AknS] [-C fd] [-D level] [-c class|-] [-g groupname|#gid] [-p
            prompt] [-u user name|#uid] file ...
20:01:50
#sudo
usage: sudo [-D level] -h | -K | -k | -V
usage: sudo -v [-AknS] [-D level] [-g groupname|#gid] [-p prompt] [-u user
            name|#uid]
usage: sudo -l[l] [-AknS] [-D level] [-g groupname|#gid] [-p prompt] [-U user
            name] [-u user name|#uid] [-g groupname|#gid] [command]
usage: sudo [-AbEHknPS] [-C fd] [-D level] [-c class|-] [-g groupname|#gid] [-p
            prompt] [-u user name|#uid] [-g groupname|#gid] [VAR=value] [-i|-s]
            [<command>]
usage: sudo -e [-AknS] [-C fd] [-D level] [-c class|-] [-g groupname|#gid] [-p
            prompt] [-u user name|#uid] file ...
20:01:50
#sudo
usage: sudo [-D level] -h | -K | -k | -V
usage: sudo -v [-AknS] [-D level] [-g groupname|#gid] [-p prompt] [-u user
            name|#uid]
usage: sudo -l[l] [-AknS] [-D level] [-g groupname|#gid] [-p prompt] [-U user
            name] [-u user name|#uid] [-g groupname|#gid] [command]
usage: sudo [-AbEHknPS] [-C fd] [-D level] [-c class|-] [-g groupname|#gid] [-p
            prompt] [-u user name|#uid] [-g groupname|#gid] [VAR=value] [-i|-s]
            [<command>]
usage: sudo -e [-AknS] [-C fd] [-D level] [-c class|-] [-g groupname|#gid] [-p
            prompt] [-u user name|#uid] file ...

Статистика

Время первой команды журнала19:22:42 2012- 3-28
Время последней команды журнала20:01:50 2012- 3-28
Количество командных строк в журнале101
Процент команд с ненулевым кодом завершения, %29.70
Процент синтаксически неверно набранных команд, % 9.90
Суммарное время работы с терминалом *, час 0.65
Количество командных строк в единицу времени, команда/мин 2.58
Частота использования команд
man16|===============| 15.84%
pw12|===========| 11.88%
exit9|========| 8.91%
sudo8|=======| 7.92%
~8|=======| 7.92%
vipw8|=======| 7.92%
make7|======| 6.93%
rmuser6|=====| 5.94%
fg4|===| 3.96%
userdel4|===| 3.96%
locate4|===| 3.96%
cd3|==| 2.97%
vim2|=| 1.98%
id2|=| 1.98%
deluser2|=| 1.98%
jobs2|=| 1.98%
^C2|=| 1.98%
adduser2|=| 1.98%
____
*) Интервалы неактивности длительностью 30 минут и более не учитываются

Справка

Для того чтобы использовать LiLaLo, не нужно знать ничего особенного: всё происходит само собой. Однако, чтобы ведение и последующее использование журналов было как можно более эффективным, желательно иметь в виду следующее:
  1. В журнал автоматически попадают все команды, данные в любом терминале системы.

  2. Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.

  3. Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
    $ l s-l
    bash: l: command not found
    

  4. Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
    $ test 5 -lt 4
    Обратите внимание на то, что код завершения команды может быть отличен от нуля не только в тех случаях, когда команда была выполнена с ошибкой. Многие команды используют код завершения, например, для того чтобы показать результаты проверки

  5. Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
    $ 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
    

  6. Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
    # id
    uid=0(root) gid=0(root) Gruppen=0(root)
    

  7. Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
    $ vi ~/.bashrc
    2a3,5
    >    if [ -f /usr/local/etc/bash_completion ]; then
    >         . /usr/local/etc/bash_completion
    >        fi
    

  8. Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
    $ patch ~/.bashrc
    В данном случае изменения применяются к файлу ~/.bashrc

  9. Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.

    Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.

  10. Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.

  11. Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора

  12. Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.

  13. Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.

  14. Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:

    $ whoami
    
    user
    
    $ #^ Интересно, кто я?
    
    в журнале это будет выглядеть так:
    $ whoami
    
    user
    
    Интересно, кто я?

  15. Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:

    $ whoami
    
    user
    
    $ cat > /dev/null #^ Интересно, кто я?
    
    Программа whoami выводит имя пользователя, под которым 
    мы зарегистрировались в системе.
    -
    Она не может ответить на вопрос о нашем назначении 
    в этом мире.
    
    В журнале это будет выглядеть так:
    $ whoami
    user
    
    Интересно, кто я?
    Программа whoami выводит имя пользователя, под которым
    мы зарегистрировались в системе.

    Она не может ответить на вопрос о нашем назначении
    в этом мире.
    Для разделения нескольких абзацев между собой используйте символ "-", один в строке.

  16. Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=

  17. Содержимое файла может быть показано в журнале. Для этого его нужно вывести с помощью программы cat. Если вывод команды отметить симоволами #!, содержимое файла будет показано в журнале в специально отведённой для этого секции.
  18. Для того чтобы вставить скриншот интересующего вас окна в журнал, нужно воспользоваться командой l3shot. После того как команда вызвана, нужно с помощью мыши выбрать окно, которое должно быть в журнале.
  19. Команды в журнале расположены в хронологическом порядке. Если две команды давались одна за другой, но на разных терминалах, в журнале они будут рядом, даже если они не имеют друг к другу никакого отношения.
    1
        2
    3   
        4
    
    Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.

О программе

LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008

$Id$