/l3/users/4-12-2006/fbsd-adm/fbsd3.unix.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 |
|
#opiepasswd -c test
![]() Adding test: Only use this method from the console; NEVER from remote. If you are using telnet, xterm, or a dial-in, type ^C now or exit with no password. Then run opiepasswd without the -c parameter. Sorry, but you don't seem to be on the console or a secure terminal. |
#ls -l /home/test/
total 20 -rw------- 1 test wheel 145 5 ÄÅË 22:23 .bash_history -rw-r--r-- 1 test wheel 767 5 ÄÅË 21:55 .cshrc -rw------- 1 test wheel 35 5 ÄÅË 22:17 .lesshst -rw-r--r-- 1 test wheel 248 5 ÄÅË 21:55 .login -rw-r--r-- 1 test wheel 158 5 ÄÅË 21:55 .login_conf -rw------- 1 test wheel 373 5 ÄÅË 21:55 .mail_aliases -rw-r--r-- 1 test wheel 331 5 ÄÅË 21:55 .mailrc -rw-r--r-- 1 test wheel 797 5 ÄÅË 21:55 .profile -rw------- 1 test wheel 276 5 ÄÅË 21:55 .rhosts -rw-r--r-- 1 test wheel 975 5 ÄÅË 21:55 .shrc |
#pw userdel -r test
![]() pw: user name or id required |
#pw userdel test -r
![]() |
#pw userdel test -r
![]() |
#pw userdel test -r
![]() |
#pw userdel test -r
![]() |
#pw userdel test -r
|
#ls -l /home/test/
![]() ls: /home/test/: No such file or directory |
#ls -l /home/test/
![]() ls: /home/test/: No such file or directory |
#ls -l /home/test/
![]() ls: /home/test/: No such file or directory |
#ls -l /home/test/
![]() ls: /home/test/: No such file or directory |
#ls -l /home/test/
![]() ls: /home/test/: No such file or directory |
#pw usershow test
test:*:1002:1002:russian:1165276800:0:TEST USER:/home/test:/usr/local/bin/bash |
#ls -l /home/test/
![]() total 16 -rw-r--r-- 1 test test 767 5 ÄÅË 23:13 .cshrc -rw-r--r-- 1 test test 248 5 ÄÅË 23:13 .login -rw-r--r-- 1 test test 158 5 ÄÅË 23:13 .login_conf -rw------- 1 test test 373 5 ÄÅË 23:13 .mail_aliases -rw-r--r-- 1 test test 331 5 ÄÅË 23:13 .mailrc -rw-r--r-- 1 test test 797 5 ÄÅË 23:13 .profile -rw------- 1 test test 276 5 ÄÅË 23:13 .rhosts -rw-r--r-- 1 test test 975 5 ÄÅË 23:13 .shrc |
#ls -l /home/test/
![]() total 16 -rw-r--r-- 1 test test 767 5 ÄÅË 23:13 .cshrc -rw-r--r-- 1 test test 248 5 ÄÅË 23:13 .login -rw-r--r-- 1 test test 158 5 ÄÅË 23:13 .login_conf -rw------- 1 test test 373 5 ÄÅË 23:13 .mail_aliases -rw-r--r-- 1 test test 331 5 ÄÅË 23:13 .mailrc -rw-r--r-- 1 test test 797 5 ÄÅË 23:13 .profile -rw------- 1 test test 276 5 ÄÅË 23:13 .rhosts -rw-r--r-- 1 test test 975 5 ÄÅË 23:13 .shrc |
#ls -l /home/test/
total 16 -rw-r--r-- 1 test test 767 5 ÄÅË 23:13 .cshrc -rw-r--r-- 1 test test 248 5 ÄÅË 23:13 .login -rw-r--r-- 1 test test 158 5 ÄÅË 23:13 .login_conf -rw------- 1 test test 373 5 ÄÅË 23:13 .mail_aliases -rw-r--r-- 1 test test 331 5 ÄÅË 23:13 .mailrc -rw-r--r-- 1 test test 797 5 ÄÅË 23:13 .profile -rw------- 1 test test 276 5 ÄÅË 23:13 .rhosts -rw-r--r-- 1 test test 975 5 ÄÅË 23:13 .shrc |
#opiepasswd -c test
![]() Adding test: Only use this method from the console; NEVER from remote. If you are using telnet, xterm, or a dial-in, type ^C now or exit with no password. Then run opiepasswd without the -c parameter. Sorry, but you don't seem to be on the console or a secure terminal. |
#opiepasswd -c test
![]() Adding test: Only use this method from the console; NEVER from remote. If you are using telnet, xterm, or a dial-in, type ^C now or exit with no password. Then run opiepasswd without the -c parameter. Sorry, but you don't seem to be on the console or a secure terminal. |
#opiepasswd -c test
![]() Adding test: Only use this method from the console; NEVER from remote. If you are using telnet, xterm, or a dial-in, type ^C now or exit with no password. Then run opiepasswd without the -c parameter. Sorry, but you don't seem to be on the console or a secure terminal. |
#vi /e
![]() |
#vi /e
![]() |
#vi /etc/opie
![]() |
#vi /e
![]() |
#vi /e
![]() |
#vi /etc/opie
![]() |
#vi /etc/opieaccess
![]() |
#vi /etc/opieaccess
![]() |
#vi /etc/opieaccess
|
#vi /etc/opiekeys
![]() |
#vi /etc/opiekeys
![]() |
#vi /etc/opiekeys
|
#mv /etc/opiekeys /etc/opiekeys.old
![]() |
#mv /etc/opiekeys /etc/opiekeys.old
|
#opiepasswd -c test
![]() Adding test: Only use this method from the console; NEVER from remote. If you are using telnet, xterm, or a dial-in, type ^C now or exit with no password. Then run opiepasswd without the -c parameter. Sorry, but you don't seem to be on the console or a secure terminal. |
#opiepasswd -c test
![]() Adding test: Only use this method from the console; NEVER from remote. If you are using telnet, xterm, or a dial-in, type ^C now or exit with no password. Then run opiepasswd without the -c parameter. Sorry, but you don't seem to be on the console or a secure terminal. |
#vi /etc/opiekeys
|
#opiepasswd
![]() Adding root: You need the response from an OTP generator. New secret pass phrase: otp-md5 499 fb7056 Response: Error reading response. |
#opiepasswd
![]() Adding root: You need the response from an OTP generator. New secret pass phrase: otp-md5 499 fb7056 Response: Error reading response. |
#man passwd
![]() |
#man passwd
![]() |
#man passwd
|
#opiepasswd -c -f t
Adding test: Only use this method from the console; NEVER from remote. If you are using telnet, xterm, or a dial-in, type ^C now or exit with no password. Then run opiepasswd without the -c parameter. Using MD5 to compute responses. Enter new secret pass phrase: Again new secret pass phrase: ID test OTP key is 499 fb1317 SUNK BEAN LILA TREE MUFF SEE |
#opieinfo test
498 fb1317 |
#opiekey -n 10 fb1317
![]() usage: opiekey [-v] [-h] [-f] [-x] [-t type] [-4 | -5 | -s] [-a] [-n count] sequence_number seed |
#opiekey -n 10 `opieinfo test`
![]() Using the MD5 algorithm to compute response. Reminder: Don't use opiekey from telnet or dial-in sessions. Sorry, but you don't seem to be on the console or a secure terminal. |
#opiekey -n 10 `opieinfo test`
![]() Using the MD5 algorithm to compute response. Reminder: Don't use opiekey from telnet or dial-in sessions. Sorry, but you don't seem to be on the console or a secure terminal. |
#opiekey -n 10 `opieinfo test`
![]() Using the MD5 algorithm to compute response. Reminder: Don't use opiekey from telnet or dial-in sessions. Sorry, but you don't seem to be on the console or a secure terminal. |
#opiekey -n 10 `opieinfo test`
![]() Using the MD5 algorithm to compute response. Reminder: Don't use opiekey from telnet or dial-in sessions. Sorry, but you don't seem to be on the console or a secure terminal. |
#opiepasswd
![]() Adding root: You need the response from an OTP generator. New secret pass phrase: otp-md5 499 fb9853 Response: Error reading response. |
#opiepasswd test
![]() Updating test: You need the response from an OTP generator. New secret pass phrase: otp-md5 499 fb1318 Response: SUNK BEAN LILA TREE MUFF SEE ID test OTP key is 499 fb1318 SUNK BEAN LILA TREE MUFF SEE |
#opiepasswd test
![]() Updating test: You need the response from an OTP generator. New secret pass phrase: otp-md5 499 fb1318 Response: SUNK BEAN LILA TREE MUFF SEE ID test OTP key is 499 fb1318 SUNK BEAN LILA TREE MUFF SEE |
#opiepasswd test
![]() Updating test: You need the response from an OTP generator. New secret pass phrase: otp-md5 499 fb1318 Response: SUNK BEAN LILA TREE MUFF SEE ID test OTP key is 499 fb1318 SUNK BEAN LILA TREE MUFF SEE |
#opiepasswd test
Updating test: You need the response from an OTP generator. New secret pass phrase: otp-md5 499 fb1318 Response: SUNK BEAN LILA TREE MUFF SEE ID test OTP key is 499 fb1318 SUNK BEAN LILA TREE MUFF SEE |
#opiekey -n 10 `opieinfo test`
![]() Using the MD5 algorithm to compute response. Reminder: Don't use opiekey from telnet or dial-in sessions. Sorry, but you don't seem to be on the console or a secure terminal. |
#opiekey -n 10 `opieinfo test`
![]() Using the MD5 algorithm to compute response. Reminder: Don't use opiekey from telnet or dial-in sessions. Sorry, but you don't seem to be on the console or a secure terminal. |
#opiekey -n 10 `opieinfo test`
![]() Using the MD5 algorithm to compute response. Reminder: Don't use opiekey from telnet or dial-in sessions. Sorry, but you don't seem to be on the console or a secure terminal. |
#opiekey -n 10 `opieinfo test`
![]() Using the MD5 algorithm to compute response. Reminder: Don't use opiekey from telnet or dial-in sessions. Sorry, but you don't seem to be on the console or a secure terminal. |
#man opiekey
![]() |
#man opiekey
![]() |
#man opiekey
![]() |
#man opiekey
|
#opiekey -n 10 -f ieinfo test`
![]() Using the MD5 algorithm to compute response. Reminder: Don't use opiekey from telnet or dial-in sessions. Sorry, but you don't seem to be on the console or a secure terminal. Warning: Continuing could disclose your secret pass phrase to an attacker! Enter secret pass phrase: 489: GYM WON BEEN TOOL ATOM FLED 490: WATS FORE HOBO SWUM TORE FAIN 491: NU WOOL SHOE SPY SARA MIT 492: AN MILL BOHR JOIN HANK GUNK 493: OBOE FEUD AIRY LAP SUCH MADE 494: THUD HEFT SAD WEAK LAID GLEN 495: FLIT BATH SNUG BUY BRAD BATH 496: CHUG LOLA DARK MILE GRIM KURD 497: DAN SHAG TASK TAG JUNK KOCH 498: GO ROW DEW ELM FRET ORE |
#opiekey -n 10 -f ieinfo test`
![]() Using the MD5 algorithm to compute response. Reminder: Don't use opiekey from telnet or dial-in sessions. Sorry, but you don't seem to be on the console or a secure terminal. Warning: Continuing could disclose your secret pass phrase to an attacker! Enter secret pass phrase: 489: GYM WON BEEN TOOL ATOM FLED 490: WATS FORE HOBO SWUM TORE FAIN 491: NU WOOL SHOE SPY SARA MIT 492: AN MILL BOHR JOIN HANK GUNK 493: OBOE FEUD AIRY LAP SUCH MADE 494: THUD HEFT SAD WEAK LAID GLEN 495: FLIT BATH SNUG BUY BRAD BATH 496: CHUG LOLA DARK MILE GRIM KURD 497: DAN SHAG TASK TAG JUNK KOCH 498: GO ROW DEW ELM FRET ORE |
#opiekey -n 10 -f ieinfo test`
![]() Using the MD5 algorithm to compute response. Reminder: Don't use opiekey from telnet or dial-in sessions. Sorry, but you don't seem to be on the console or a secure terminal. Warning: Continuing could disclose your secret pass phrase to an attacker! Enter secret pass phrase: 489: GYM WON BEEN TOOL ATOM FLED 490: WATS FORE HOBO SWUM TORE FAIN 491: NU WOOL SHOE SPY SARA MIT 492: AN MILL BOHR JOIN HANK GUNK 493: OBOE FEUD AIRY LAP SUCH MADE 494: THUD HEFT SAD WEAK LAID GLEN 495: FLIT BATH SNUG BUY BRAD BATH 496: CHUG LOLA DARK MILE GRIM KURD 497: DAN SHAG TASK TAG JUNK KOCH 498: GO ROW DEW ELM FRET ORE |
#opiekey -n 10 -f ieinfo test`
Using the MD5 algorithm to compute response. Reminder: Don't use opiekey from telnet or dial-in sessions. Sorry, but you don't seem to be on the console or a secure terminal. Warning: Continuing could disclose your secret pass phrase to an attacker! Enter secret pass phrase: 489: GYM WON BEEN TOOL ATOM FLED 490: WATS FORE HOBO SWUM TORE FAIN 491: NU WOOL SHOE SPY SARA MIT 492: AN MILL BOHR JOIN HANK GUNK 493: OBOE FEUD AIRY LAP SUCH MADE 494: THUD HEFT SAD WEAK LAID GLEN 495: FLIT BATH SNUG BUY BRAD BATH 496: CHUG LOLA DARK MILE GRIM KURD 497: DAN SHAG TASK TAG JUNK KOCH 498: GO ROW DEW ELM FRET ORE |
#man opiepasswd
![]() |
#man opiepasswd
![]() |
#man opiepasswd
|
#opiepasswd -d test
![]() Updating test: Disable test's OTP access? (yes or no) yes ID test is disabled. |
#opiepasswd -c est
![]() Updating test: Only use this method from the console; NEVER from remote. If you are using telnet, xterm, or a dial-in, type ^C now or exit with no password. Then run opiepasswd without the -c parameter. Using MD5 to compute responses. Enter new secret pass phrase: Again new secret pass phrase: ID test OTP key is 499 fb1320 WELL BUS DRAB DEE OINT HELD |
#opiepasswd -c est
![]() Updating test: Only use this method from the console; NEVER from remote. If you are using telnet, xterm, or a dial-in, type ^C now or exit with no password. Then run opiepasswd without the -c parameter. Using MD5 to compute responses. Enter new secret pass phrase: Again new secret pass phrase: ID test OTP key is 499 fb1320 WELL BUS DRAB DEE OINT HELD |
#opiepasswd -c est
![]() Updating test: Only use this method from the console; NEVER from remote. If you are using telnet, xterm, or a dial-in, type ^C now or exit with no password. Then run opiepasswd without the -c parameter. Using MD5 to compute responses. Enter new secret pass phrase: Again new secret pass phrase: ID test OTP key is 499 fb1320 WELL BUS DRAB DEE OINT HELD |
#opiepasswd -c est
![]() Updating test: Only use this method from the console; NEVER from remote. If you are using telnet, xterm, or a dial-in, type ^C now or exit with no password. Then run opiepasswd without the -c parameter. Using MD5 to compute responses. Enter new secret pass phrase: Again new secret pass phrase: ID test OTP key is 499 fb1320 WELL BUS DRAB DEE OINT HELD |
#opiepasswd -c est
Updating test: Only use this method from the console; NEVER from remote. If you are using telnet, xterm, or a dial-in, type ^C now or exit with no password. Then run opiepasswd without the -c parameter. Using MD5 to compute responses. Enter new secret pass phrase: Again new secret pass phrase: ID test OTP key is 499 fb1320 WELL BUS DRAB DEE OINT HELD |
#rm /etc/opie
![]() opieaccess opiekeys opiekeys.old |
#rm /etc/opiekeys.old
![]() |
#rm /etc/opie
![]() opieaccess opiekeys opiekeys.old |
#rm /etc/opiekeys.old
![]() |
#rm /etc/opie
![]() opieaccess opiekeys opiekeys.old |
#rm /etc/opiekeys.old
![]() |
#rm /etc/opie
![]() opieaccess opiekeys opiekeys.old |
#rm /etc/opiekeys.old
|
#vim /etc/opiekeys
![]() 1d0 < test 0499 fb1320 f9c12dd986dc772c Dec 05,2006 23:24:36 |
#vim /etc/opiekeys
![]() 1d0 < test 0499 fb1320 f9c12dd986dc772c Dec 05,2006 23:24:36 |
#vim /etc/opiekeys
![]() 1d0 < test 0499 fb1320 f9c12dd986dc772c Dec 05,2006 23:24:36 |
#vim /etc/opiekeys
1d0 < test 0499 fb1320 f9c12dd986dc772c Dec 05,2006 23:24:36 |
#passwd test
![]() Changing local password for test New Password: Retype New Password: |
#passwd test
![]() Changing local password for test New Password: Retype New Password: |
#passwd test
![]() Changing local password for test New Password: Retype New Password: |
#passwd test
Changing local password for test New Password: Retype New Password: |
#pw userdel -r test
![]() pw: user name or id required |
#pw userdel -r test
![]() pw: user name or id required |
#pw userdel -r test
![]() pw: user name or id required |
#pw userdel -r test
![]() pw: user name or id required |
#pw userdel test -r
![]() |
#pw userdel test -r
![]() |
#pw userdel test -r
![]() |
#pw userdel test -r
|
#ls -l /home/
total 4 drwxrwxr-x 2 root operator 512 5 ÄÅË 18:41 .snap drwxr-xr-x 28 user wheel 1536 5 ÄÅË 11:02 user |
Время первой команды журнала | 01:00:12 2006-12- 6 | |||||||||||||||||||||||||||||||||
Время последней команды журнала | 01:27:09 2006-12- 6 | |||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 34.65 | |||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | |||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.45 | |||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 3.75 | |||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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