| /l3/users/01-04-2009/nt-ladm/debian1.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 |
|
|
#ping ya.ru
PING ya.ru (213.180.204.8) 56(84) bytes of data. 64 bytes from ya.ru (213.180.204.8): icmp_seq=1 ttl=51 time=52.0 ms --- ya.ru ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 52.049/52.049/52.049/0.000 ms |
|
##This is SCREEN!!#
|
|
###
|
|
###
|
|
###
[root@debian1:~]# #This is SCREEN!!# |
|
#echo $L3_
[root@debian1:~]# ssh user@10.0.35.1 The authenticity of host '10.0.35.1 (10.0.35.1)' can't be established. RSA key fingerprint is eb:35:1f:f8:e4:a8:8a:9e:70:65:42:a8:93:78:98:9d. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '10.0.35.1' (RSA) to the list of known hosts. user@10.0.35.1's password: Permission denied, please try again. user@10.0.35.1's password: Permission denied, please try again. user@10.0.35.1's password: Permission denied (publickey,password). $L3_HOME $L3_SESSION_ID $L3_PARENT_TTY $L3_TAMPERED_EDITORS |
|
#echo $L3_SESSION_ID
241244570152115243-1238594306 |
|
#w
17:20:38 up 1 day, 55 min, 4 users, load average: 0,00, 0,00, 0,00 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root ttyp0 debian.net.nt 12:48 4:30 0.01s 0.01s script -f -q /r root ttyp2 :ttyp1:S.0 12:49 4:30 0.00s 0.00s script -f -q /r root ttyp4 10.0.17.100 16:58 0.00s 0.00s 0.00s script -f -q /r root ttyp6 10.0.17.100 17:01 19:11m 0.01s 0.00s script -f -q /r |
|
#w | less
|
|
#echo $L3_SESSION_ID
241244570152115243-1238594306 |
|
#ls ~/.lilalo/
1579061231519230851-1215191819_1215191881_root_.bashrc.diff 1579061231519230851-1215191819_1215192113_root_.l3rc.diff 1579061231519230851-1215191819.info 176596842413212780-1238579342.info 176596842413212780-1238579342.script 2074122392323271986-1238594477.info 2074122392323271986-1238594477.script 227027294733815454-1238505922.info 227027294733815454-1238505922.script 241244570152115243-1238594306.info ... 300292922576523691-1229950347_1229950495_root_.l3rc.diff 300292922576523691-1229950347_1229950523_home_user_.l3rc.diff 300292922576523691-1229950347_1229950552_etc_network_interfaces.diff 300292922576523691-1229950347_1229950586_etc_network_interfaces.diff 300292922576523691-1229950347_1229950600_etc_resolv.conf.diff 300292922576523691-1229950347_1229950625_etc_resolv.conf.diff 300292922576523691-1229950347.info 300292922576523691-1229950347.script 3768160441505231145-1238594229.info 3768160441505231145-1238594229.script |
|
#ls ~/.lilalo/$L3_SESSION_ID.
/root/.lilalo/241244570152115243-1238594306.script |
|
#less ~/.lilalo/$L3_SESSION_ID.script
|
|
#less ~/.lilalo/$L3_SESSION_ID.script
|
|
#ssh root
root@10.0.35.1's password: Permission denied, please try again. root@10.0.35.1's password: |
|
#ssh igor
igor@unix:~$ exit logout Connection to 10.0.35.1 closed. |
|
#screen -x 1974
|
|
#pwd
/root |
|
#echo $HOME
/root |
|
#cd /usr/src
|
|
#cd
|
|
#useradd testuser1
|
|
#id testuser
id: testuser: Такого пользователя нет |
|
#id testuser1
uid=1203(testuser1) gid=1203(testuser1) группы=1203(testuser1) |
|
#ls -l /h
drwxr-xr-x 2 user145 user145 136 2008-03-13 15:15 user145 drwxr-xr-x 2 user146 user146 136 2008-03-13 15:15 user146 drwxr-xr-x 2 user147 user147 136 2008-03-13 15:15 user147 drwxr-xr-x 2 user148 user148 136 2008-03-13 15:15 user148 drwxr-xr-x 2 user149 user149 136 2008-03-13 15:15 user149 drwxr-xr-x 2 user15 user15 136 2008-03-13 15:15 user15 drwxr-xr-x 2 user150 user150 136 2008-03-13 15:15 user150 drwxr-xr-x 2 user151 user151 136 2008-03-13 15:15 user151 drwxr-xr-x 2 user152 user152 136 2008-03-13 15:15 user152 drwxr-xr-x 2 user153 user153 136 2008-03-13 15:15 user153 ... drwxr-xr-x 2 user90 user90 136 2008-03-13 15:15 user90 drwxr-xr-x 2 user91 user91 136 2008-03-13 15:15 user91 drwxr-xr-x 2 user92 user92 136 2008-03-13 15:15 user92 drwxr-xr-x 2 user93 user93 136 2008-03-13 15:15 user93 drwxr-xr-x 2 user94 user94 136 2008-03-13 15:15 user94 drwxr-xr-x 2 user95 user95 136 2008-03-13 15:15 user95 drwxr-xr-x 2 user96 user96 136 2008-03-13 15:15 user96 drwxr-xr-x 2 user97 user97 136 2008-03-13 15:15 user97 drwxr-xr-x 2 user98 user98 136 2008-03-13 15:15 user98 drwxr-xr-x 2 user99 user99 136 2008-03-13 15:15 user99 |
|
#screen -x 1974
|
|
#useradd -m testuser2
|
|
#ls -l /home/testuser2
итого 0 -rw-r--r-- 1 testuser2 testuser2 0 2009-04-01 19:42 testfile |
|
#id testuser2
uid=1204(testuser2) gid=1204(testuser2) группы=1204(testuser2) |
|
#useradd -m testuser2
|
|
#useradd --help
Usage: useradd [options] LOGIN
Options:
-b, --base-dir BASE_DIR base directory for the new user account
home directory
-c, --comment COMMENT set the GECOS field for the new user account
-d, --home-dir HOME_DIR home directory for the new user account
-D, --defaults print or save modified default useradd
configuration
-e, --expiredate EXPIRE_DATE set account expiration date to EXPIRE_DATE
-f, --inactive INACTIVE set password inactive after expiration
...
-K, --key KEY=VALUE overrides /etc/login.defs defaults
-m, --create-home create home directory for the new user
account
-o, --non-unique allow create user with duplicate
(non-unique) UID
-p, --password PASSWORD use encrypted password for the new user
account
-r, --system create a system account
-s, --shell SHELL the login shell for the new user account
-u, --uid UID force use the UID for the new user account
|
|
#useradd -h
useradd: invalid option -- h
Usage: useradd [options] LOGIN
Options:
-b, --base-dir BASE_DIR base directory for the new user account
home directory
-c, --comment COMMENT set the GECOS field for the new user account
-d, --home-dir HOME_DIR home directory for the new user account
-D, --defaults print or save modified default useradd
configuration
-e, --expiredate EXPIRE_DATE set account expiration date to EXPIRE_DATE
...
-K, --key KEY=VALUE overrides /etc/login.defs defaults
-m, --create-home create home directory for the new user
account
-o, --non-unique allow create user with duplicate
(non-unique) UID
-p, --password PASSWORD use encrypted password for the new user
account
-r, --system create a system account
-s, --shell SHELL the login shell for the new user account
-u, --uid UID force use the UID for the new user account
|
|
#touch 123
|
|
#screen -x 1974
|
|
#ls
123 |
|
#ls -l
итого 0 -rw-r--r-- 1 root root 0 2009-04-01 19:45 123 |
|
#file 123
123: empty |
|
#touch -123
touch: invalid option -- 1 Попробуйте `touch --help' для получения более подробного описания. |
|
#ls
[root@debian1:~]# touch -- 123 -123 |
|
#touch "--123"
touch: unrecognized option `--123' Попробуйте `touch --help' для получения более подробного описания. |
|
#touch \-\
touch: unrecognized option `--123' Попробуйте `touch --help' для получения более подробного описания. |
|
#touch --
|
|
#ls -l
итого 0 -rw-r--r-- 1 root root 0 2009-04-01 19:45 123 -rw-r--r-- 1 root root 0 2009-04-01 19:46 -123 -rw-r--r-- 1 root root 0 2009-04-01 19:46 --123 |
|
#useradd -m testuser3
|
|
#man man\
|
|
#whatis intro
intro (7) - Introduction to overview, conventions, and miscellany section intro (4) - Introduction to special files intro (1) - Introduction to user commands intro (8) - Introduction to administration and privileged commands intro (2) - Introduction to system calls intro (6) - Introduction to games intro (5) - Introduction to file formats intro (3) - Introduction to library functions |
|
#passwd testuser1
Enter new UNIX password: Retype new UNIX password: passwd: пароль успешно обновлён |
|
#man passwd
|
|
#man 5
|
|
#man 5 passwd
|
|
#man -a
|
|
#whatis intro
intro (7) - Introduction to overview, conventions, and miscellany section intro (4) - Introduction to special files intro (1) - Introduction to user commands intro (8) - Introduction to administration and privileged commands intro (2) - Introduction to system calls intro (6) - Introduction to games intro (5) - Introduction to file formats intro (3) - Introduction to library functions |
|
#man passwd
|
|
#whatis passwd
passwd (1) - change user password passwd (5) - the password file |
|
#apropos
chgpasswd (8) - update group passwords in batch mode chpasswd (8) - update passwords in batch mode gpasswd (1) - administer the /etc/group file passwd (1) - change user password passwd (5) - the password file realvncpasswd (1) - creating and changing password files to be used with VNC realvncpasswd.real (1) - creating and changing password files to be used with VNC update-passwd (8) - safely update /etc/passwd, /etc/shadow and /etc/group vncpasswd (1) - creating and changing password files to be used with VNC |
|
#apropos user
/etc/adduser.conf (5) [adduser.conf] - configuration file for adduser(8) and addgroup(8) . /etc/deluser.conf (5) [deluser.conf] - configuration file for deluser(8) and delgroup(8) . addgroup (8) - add a user or group to the system adduser (8) - add a user or group to the system adduser.conf (5) - configuration file for adduser(8) and addgroup(8) . bsd-write (1) - send a message to another user chage (1) - change user password expiry information check_driver (1) - Linux 2.6(.16+) userspace device rebinding helper. chfn (1) - change real user name and information crontab (1) - maintain crontab files for individual users (V3) ... udp (7) - User Datagram Protocol for IPv4 unix_chkpwd (8) - check the password of the invoking user useradd (8) - create a new user or update default new user information userdel (8) - delete a user account and related files usermod (8) - modify a user account users (1) - print the user names of users currently logged in to the current host wall (1) - write a message to users whoami (1) - print effective userid write (1) - send a message to another user xset (1) - user preference utility for X |
|
#apropos user | egrep -i "Add|Delete|Del|Remove|Modify"
/etc/adduser.conf (5) [adduser.conf] - configuration file for adduser(8) and addgroup(8) . /etc/deluser.conf (5) [deluser.conf] - configuration file for deluser(8) and delgroup(8) . addgroup (8) - add a user or group to the system adduser (8) - add a user or group to the system adduser.conf (5) - configuration file for adduser(8) and addgroup(8) . delgroup (8) - remove a user or group from the system deluser (8) - remove a user or group from the system deluser.conf (5) - configuration file for deluser(8) and delgroup(8) . useradd (8) - create a new user or update default new user information userdel (8) - delete a user account and related files usermod (8) - modify a user account |
|
#apropos user | egrep -i -v
bsd-write (1) - send a message to another user chage (1) - change user password expiry information check_driver (1) - Linux 2.6(.16+) userspace device rebinding helper. chfn (1) - change real user name and information crontab (1) - maintain crontab files for individual users (V3) defoma-user (1) - Debian Font Manager for users environ (7) - user environment fuser (1) - identify processes using files or sockets futex (4) - Fast Userspace Locking futex (7) - Fast Userspace Locking ... telnet (1) - user interface to the TELNET protocol telnet.netkit (1) - user interface to the TELNET protocol ucf (1) - Update Configuration File: preserve user changes in configuration files udp (7) - User Datagram Protocol for IPv4 unix_chkpwd (8) - check the password of the invoking user users (1) - print the user names of users currently logged in to the current host wall (1) - write a message to users whoami (1) - print effective userid write (1) - send a message to another user xset (1) - user preference utility for X |
|
#apropos user | egrep -i -v "Add|Delete|Del|Remove|Modify"
|
|
#scp 10.0.17.1:/etc/sqid/squid.conf /tmp
The authenticity of host '10.0.17.1 (10.0.17.1)' can't be established. RSA key fingerprint is 90:7f:6c:4f:4c:b3:6c:3a:73:79:4d:77:f2:82:51:64. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '10.0.17.1' (RSA) to the list of known hosts. root@10.0.17.1's password: scp: /etc/sqid/squid.conf: No such file or directory |
|
#scp 10.0.17.1:/etc/squi
root@10.0.17.1's password: squid.conf 100% 165KB 164.5KB/s 00:00 |
|
#vim /tmp/squid.conf
|
|
#egrep -i -v "^\#.*$|^\ *$" /tmp/squid.conf
auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/passwd auth_param basic children 5 auth_param basic realm Welcome To TechExpert Isa Server auth_param basic credentialsttl 2 hours auth_param basic casesensitive off acl all src all acl manager proto cache_object acl localhost src 127.0.0.1/32 acl to_localhost dst 127.0.0.0/8 acl localnet src 10.0.0.0/8 # RFC1918 possible internal network ... refresh_pattern -i (/cgi-bin/|\?) 0 0% 0 refresh_pattern . 0 20% 4320 acl apache rep_header Server ^Apache broken_vary_encoding allow apache extension_methods REPORT MERGE MKACTIVITY CHECKOUT shutdown_lifetime 2 seconds cache_mgr scherepenin@techexpert.ua error_directory /usr/share/squid/errors/Ukrainian-utf8 hosts_file /etc/hosts coredump_dir /var/spool/squid |
|
#egrep -i -v "^\#.*$|^\ *$" /t
[root@debian1:~]# egrep -i -v "^\#.*$|^\ *$" /tmp/squid.conf | less auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/passwd auth_param basic children 5 auth_param basic realm Welcome To TechExpert Isa Server auth_param basic credentialsttl 2 hours auth_param basic casesensitive off acl all src all acl manager proto cache_object acl localhost src 127.0.0.1/32 acl to_localhost dst 127.0.0.0/8 ... acl Safe_ports port 488 # gss-http acl Safe_ports port 591 # filemaker acl Safe_ports port 777 # multiling http acl Safe_ports port 631 # cups acl Safe_ports port 873 # rsync acl Safe_ports port 901 # SWAT acl purge method PURGE acl CONNECT method CONNECT http_access allow manager localhost http_access deny manager |
|
#apropos user | egrep -i "Add|Delete|Del|Remove|Modify"
/etc/adduser.conf (5) [adduser.conf] - configuration file for adduser(8) and addgroup(8) . /etc/deluser.conf (5) [deluser.conf] - configuration file for deluser(8) and delgroup(8) . addgroup (8) - add a user or group to the system adduser (8) - add a user or group to the system adduser.conf (5) - configuration file for adduser(8) and addgroup(8) . delgroup (8) - remove a user or group from the system deluser (8) - remove a user or group from the system deluser.conf (5) - configuration file for deluser(8) and delgroup(8) . useradd (8) - create a new user or update default new user information userdel (8) - delete a user account and related files usermod (8) - modify a user account |
|
#man passwd
|
|
#ls -l /usr/share/man
trap on ERR, if set, is executed before the shell exits.
-f Disable pathname expansion.
-h Remember the location of commands as they are looked up for execution.
This is enabled by default.
-k All arguments in the form of assignment statements are placed in the
environment for a command, not just those that precede the command
name.
-m Monitor mode. Job control is enabled. This option is on by default
for interactive shells on systems that support it (see JOB CONTROL
above). Background processes run in a separate process group and a
...
drwxr-xr-x 2 root root 80 2007-12-23 16:31 man9ossible completions. See SHELL VARIABLES
drwxr-xr-x 5 root root 120 2007-02-27 09:53 pl of FIGNORE. This option is enabled by
drwxr-xr-x 3 root root 72 2007-12-23 16:31 pl.ISO8859-2enamed to $1 .... Parameters repâ
drwxr-xr-x 3 root root 72 2007-12-23 16:31 pl.UTF-81 are unset. n must be a non-negative
drwxr-xr-x 5 root root 120 2007-02-27 09:53 pt_BRare written in the standard GNU error
drwxr-xr-x 5 root root 120 2007-02-27 09:53 ru1. If n is greater than $#, the positional
drwxr-xr-x 5 root root 120 2007-02-27 09:53 sv
drwxr-xr-x 5 root root 120 2007-02-27 09:53 tr
drwxr-xr-x 5 root root 120 2007-02-27 09:53 zh_CN
drwxr-xr-x 5 root root 120 2007-02-27 09:53 zh_TW
|
|
#ls -l /usr/share/man | less
|
|
#mandb
Удаление старых записей базы данных в /usr/share/man... Обработка страниц руководства в /usr/share/man... Удаление старых записей базы данных в /usr/local/man... Обработка страниц руководства в /usr/local/man... Удаление старых записей базы данных в /usr/local/share/man... Обработка страниц руководства в /usr/local/share/man... 0 man подкаталоги содержат более новые страницы руководства. добавлены 0 страницы руководства. побочные 0 cats добавлены. удалены 0 старые записи базы данных. |
|
#ls -l /usr/share/man/man1/
-rw-r--r-- 1 root root 1776 2006-10-19 14:02 toe.1.gz -rw-r--r-- 1 root root 21623 2006-09-13 04:53 top.1.gz -rw-r--r-- 1 root root 1050 2007-01-30 20:50 touch.1.gz -rw-r--r-- 1 root root 4420 2006-10-19 14:02 tput.1.gz -rw-r--r-- 1 root root 1490 2007-01-30 20:50 tr.1.gz -rw-r--r-- 1 root root 3070 2005-03-30 20:57 tree.1.gz -rw-r--r-- 1 root root 4648 2006-04-17 15:11 troff.1.gz -rw-r--r-- 1 root root 793 2007-01-30 20:50 true.1.gz -rw-r--r-- 1 root root 4781 2006-10-19 14:02 tset.1.gz -rw-r--r-- 1 root root 732 2007-01-30 20:50 tsort.1.gz ... -rw-r--r-- 1 root root 429 2006-09-19 15:38 zdiff.1.gz -rw-r--r-- 1 root root 534 2007-04-13 12:17 zdump.1.gz lrwxrwxrwx 1 root root 10 2008-07-04 20:08 zegrep.1.gz -> zgrep.1.gz lrwxrwxrwx 1 root root 10 2008-07-04 20:08 zfgrep.1.gz -> zgrep.1.gz -rw-r--r-- 1 root root 387 2006-09-19 15:38 zforce.1.gz -rw-r--r-- 1 root root 536 2006-09-19 15:38 zgrep.1.gz -rw-r--r-- 1 root root 493 2006-09-19 15:38 zless.1.gz -rw-r--r-- 1 root root 1774 2006-09-19 15:38 zmore.1.gz -rw-r--r-- 1 root root 552 2006-09-19 15:38 znew.1.gz -rw-r--r-- 1 root root 1024 2007-01-29 14:20 zsoelim.1.gz |
|
#file /usr/share/man/man1/zsoelim.1.gz
/usr/share/man/man1/zsoelim.1.gz: gzip compressed data, was "zsoelim.1", from Unix, last modified: Mon Jan 29 14:20:53 2007, max compression |
|
#zless /usr/share/man/man1/zsoelim.1.gz
|
|
#echo $PAGER
|
|
#PAGER=more man passwd
ÐеÑеÑоÑмаÑиÑование passwd(1), подождиÑе...
passwd(1) ÐолÑзоваÑелÑÑкие ÐºÐ¾Ð¼Ð°Ð½Ð´Ñ passwd(1)
ÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐ
passwd - изменÑÐµÑ Ð¿Ð°ÑÐ¾Ð»Ñ Ð¿Ð¾Ð»ÑзоваÑелÑ
ÐСÐÐÐÐÐТÐÐÐÐÐСÐÐÐС
passwd [паÑамеÑÑÑ] [LOGIN]
ÐÐÐÐÐÐÐСÐÐÐÐÐÐÐÐ
ÐÑогÑамма passwd изменÑÐµÑ Ð¿Ð°Ñоли полÑзоваÑелÑÑкиÑ
ÑÑÑÑнÑÑ
запиÑей. ÐбÑÑнÑй
полÑзоваÑÐµÐ»Ñ Ð¼Ð¾Ð¶ÐµÑ Ð¸Ð·Ð¼ÐµÐ½Ð¸ÑÑ Ð¿Ð°ÑÐ¾Ð»Ñ ÑолÑко Ñвоей ÑÑÑÑной запиÑи, ÑÑпеÑполÑзоваÑелÑ
Ð¼Ð¾Ð¶ÐµÑ Ð¸Ð·Ð¼ÐµÐ½Ð¸ÑÑ Ð¿Ð°ÑÐ¾Ð»Ñ Ð»Ñбой ÑÑÑÑной запиÑи. ÐÑогÑамма passwd Ñакже изменÑеÑ
...
паÑолÑ, коÑоÑÑй не Ð¸Ð¼ÐµÐµÑ Ð´Ð¾ÑÑаÑоÑной ÑложноÑÑи.
ÐÐÑÑÐбÐоÑÑ ÐпÐаÑÑÐоÐлÑÑ
ÐезопаÑноÑÑÑ Ð¿Ð°ÑÐ¾Ð»Ñ Ð·Ð°Ð²Ð¸ÑÐ¸Ñ Ð¾Ñ ÑÑойкоÑÑи алгоÑиÑма ÑиÑÑÐ¾Ð²Ð°Ð½Ð¸Ñ Ð¸ ÑазмеÑа пÑоÑÑÑанÑÑва
клÑÑа. Ð UNIX ÑиÑÑемаÑ
меÑод ÑиÑÑÐ¾Ð²Ð°Ð½Ð¸Ñ Ð¾Ñнован на алгоÑиÑме NBS DES и оÑенÑ
безопаÑен. Ð Ð°Ð·Ð¼ÐµÑ Ð¿ÑоÑÑÑанÑÑва клÑÑа завиÑÐ¸Ñ Ð¾Ñ ÑÑепени пÑоизволÑноÑÑи вÑбÑанного
паÑолÑ.
ÐомпÑомиÑÑом в безопаÑноÑÑи паÑÐ¾Ð»Ñ ÑвлÑеÑÑÑ Ð½ÐµÐ±ÑежнÑй вÑÐ±Ð¾Ñ Ð¿Ð°ÑÐ¾Ð»Ñ Ð¸ ÑложноÑÑÑ ÑабоÑÑ
Ñ Ð½Ð¸Ð¼. Ðо ÑÑой пÑиÑине, Ð²Ñ Ð½Ðµ Ð´Ð¾Ð»Ð¶Ð½Ñ Ð¸ÑполÑзоваÑÑ Ð¿Ð°ÑолÑ, коÑоÑÑй ÑвлÑеÑÑÑ Ñловом из
ÑловаÑÑ Ð¸Ð»Ð¸ коÑоÑÑй пÑидÑÑÑÑ Ð·Ð°Ð¿Ð¸ÑаÑÑ Ð¸Ð·-за его ÑложноÑÑи. Также, паÑÐ¾Ð»Ñ Ð½Ðµ должен
бÑÑÑ Ð½Ð°Ð·Ð²Ð°Ð½Ð¸ÐµÐ¼ Ñего-либо, номеÑом ваÑей лиÑензии, днÑм ÑÐ¾Ð¶Ð´ÐµÐ½Ð¸Ñ Ð¸ домаÑним адÑеÑом.
|
|
#PAGER=cat
ÐаÑем паÑÐ¾Ð»Ñ ÑеÑÑиÑÑеÑÑÑ Ð½Ð° ÑложноÑÑÑ Ð¿Ð¾Ð´Ð±Ð¾Ñа. СоглаÑно обÑим пÑинÑипам, паÑоли
Ð´Ð¾Ð»Ð¶Ð½Ñ Ð±ÑÑÑ Ð´Ð»Ð¸Ð½Ð¾Ð¹ Ð¾Ñ 6 до 8 Ñимволов и вклÑÑаÑÑ Ð¾Ð´Ð¸Ð½ или более Ñимволов каждого
Ñипа:
o ÑÑÑоÑнÑе бÑквÑ
o ÑиÑÑÑ Ð¾Ñ 0 до 9
o знаки пÑнкÑÑаÑии
Ðе вклÑÑайÑе ÑиÑÑемнÑе ÑÐ¸Ð¼Ð²Ð¾Ð»Ñ ÑÑиÑÐ°Ð½Ð¸Ñ Ð¸ ÑдалениÑ. ÐÑогÑамма passwd не пÑимеÑ
паÑолÑ, коÑоÑÑй не Ð¸Ð¼ÐµÐµÑ Ð´Ð¾ÑÑаÑоÑной ÑложноÑÑи.
ÐÐÑÑÐбÐоÑÑ ÐпÐаÑÑÐоÐлÑÑ
ÐезопаÑноÑÑÑ Ð¿Ð°ÑÐ¾Ð»Ñ Ð·Ð°Ð²Ð¸ÑÐ¸Ñ Ð¾Ñ ÑÑойкоÑÑи алгоÑиÑма ÑиÑÑÐ¾Ð²Ð°Ð½Ð¸Ñ Ð¸ ÑазмеÑа пÑоÑÑÑанÑÑва
...
Ð½ÐµÐ¾Ð¶Ð¸Ð´Ð°Ð½Ð½Ð°Ñ Ð¾Ñибка пÑи ÑабоÑе, ниÑего не Ñделано
4
Ð½ÐµÐ¾Ð¶Ð¸Ð´Ð°Ð½Ð½Ð°Ñ Ð¾Ñибка пÑи ÑабоÑе, оÑÑÑÑÑÑвÑÐµÑ Ñайл passwd
5
Ñайл passwd занÑÑ Ð´ÑÑгой пÑогÑаммой, попÑобÑйÑе еÑÑ Ñаз
6
недопÑÑÑимое знаÑение паÑамеÑÑа
ÐСÐÐÐÐÐТÐÐ ÐÐÐТÐÐ ÐТÐÐÐÐÐÐÐÐ
group(5), passwd(5), shadow(5).
ÐолÑзоваÑелÑÑкие ÐºÐ¾Ð¼Ð°Ð½Ð´Ñ 02/25/2007 passwd(1)
|
|
#PAGER=more
ÐеÑеÑоÑмаÑиÑование passwd(1), подождиÑе...
passwd(1) ÐолÑзоваÑелÑÑкие ÐºÐ¾Ð¼Ð°Ð½Ð´Ñ passwd(1)
ÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐ
passwd - изменÑÐµÑ Ð¿Ð°ÑÐ¾Ð»Ñ Ð¿Ð¾Ð»ÑзоваÑелÑ
ÐСÐÐÐÐÐТÐÐÐÐÐСÐÐÐС
passwd [паÑамеÑÑÑ] [LOGIN]
ÐÐÐÐÐÐÐСÐÐÐÐÐÐÐÐ
ÐÑогÑамма passwd изменÑÐµÑ Ð¿Ð°Ñоли полÑзоваÑелÑÑкиÑ
ÑÑÑÑнÑÑ
запиÑей. ÐбÑÑнÑй
полÑзоваÑÐµÐ»Ñ Ð¼Ð¾Ð¶ÐµÑ Ð¸Ð·Ð¼ÐµÐ½Ð¸ÑÑ Ð¿Ð°ÑÐ¾Ð»Ñ ÑолÑко Ñвоей ÑÑÑÑной запиÑи, ÑÑпеÑполÑзоваÑелÑ
Ð¼Ð¾Ð¶ÐµÑ Ð¸Ð·Ð¼ÐµÐ½Ð¸ÑÑ Ð¿Ð°ÑÐ¾Ð»Ñ Ð»Ñбой ÑÑÑÑной запиÑи. ÐÑогÑамма passwd Ñакже изменÑеÑ
...
паÑолÑ.
ÐомпÑомиÑÑом в безопаÑноÑÑи паÑÐ¾Ð»Ñ ÑвлÑеÑÑÑ Ð½ÐµÐ±ÑежнÑй вÑÐ±Ð¾Ñ Ð¿Ð°ÑÐ¾Ð»Ñ Ð¸ ÑложноÑÑÑ ÑабоÑÑ
Ñ Ð½Ð¸Ð¼. Ðо ÑÑой пÑиÑине, Ð²Ñ Ð½Ðµ Ð´Ð¾Ð»Ð¶Ð½Ñ Ð¸ÑполÑзоваÑÑ Ð¿Ð°ÑолÑ, коÑоÑÑй ÑвлÑеÑÑÑ Ñловом из
ÑловаÑÑ Ð¸Ð»Ð¸ коÑоÑÑй пÑидÑÑÑÑ Ð·Ð°Ð¿Ð¸ÑаÑÑ Ð¸Ð·-за его ÑложноÑÑи. Также, паÑÐ¾Ð»Ñ Ð½Ðµ должен
бÑÑÑ Ð½Ð°Ð·Ð²Ð°Ð½Ð¸ÐµÐ¼ Ñего-либо, номеÑом ваÑей лиÑензии, днÑм ÑÐ¾Ð¶Ð´ÐµÐ½Ð¸Ñ Ð¸ домаÑним адÑеÑом.
Ðбо вÑÑм ÑÑом легко догадаÑÑÑÑ, ÑÑо пÑиведÑÑ Ðº наÑÑÑÐµÐ½Ð¸Ñ Ð±ÐµÐ·Ð¾Ð¿Ð°ÑноÑÑи ÑиÑÑемÑ.
ÐаÑÐ¾Ð»Ñ Ð´Ð¾Ð»Ð¶ÐµÐ½ легко запоминаÑÑÑÑ, ÑÑÐ¾Ð±Ñ Ð½Ðµ бÑло необÑ
одимоÑÑи запиÑÑваÑÑ ÐµÐ³Ð¾ на
бÑмагÑ. ÐÑого можно доÑÑиÑÑ Ñоединив два маленÑкиÑ
Ñлова в одно, Ñазделив иÑ
ÑпеÑиалÑнÑм Ñимволом или ÑиÑÑой. ÐапÑимеÑ, Pass%word.
ÐÑÑгим меÑодом ÑÐ¾Ð·Ð´Ð°Ð½Ð¸Ñ ÑвлÑеÑÑÑ Ð²ÑÐ±Ð¾Ñ Ð»ÐµÐ³ÐºÐ¾ запоминаÑÑейÑÑ ÑÑÐ°Ð·Ñ Ð¸Ð· лиÑеÑаÑÑÑÑ Ð¸
|
|
#[root@fbsd1:~]# man
man manctl mangle manpath |
|
#[root@fbsd1:~]# man --help
[root@fbsd1:~]# up
update-desktop-database update-mime-database uptime
man: illegal option -- -
man, version 1.1
usage: man [-adfhkotw] [section] [-M path] [-P pager] [-S list]
[-m machine] [-p string] name ...
a : find all matching entries
d : print gobs of debugging information
f : same as whatis(1)
h : print this help message
k : same as apropos(1)
o : use original, non-localized manpages
t : use troff to format pages for printing
w : print location of man page(s) that would be displayed
M path : set search path for manual pages to `path'
P pager : use program `pager' to display pages
S list : colon separated section list
m machine : search for alternate architecture man pages
p string : string tells which preprocessors to run
e - [n]eqn(1) p - pic(1) t - tbl(1)
g - grap(1) r - refer(1) v - vgrind(1)
|
|
#PAGER=more man passwd
ÐеÑеÑоÑмаÑиÑование passwd(1), подождиÑе...
passwd(1) ÐолÑзоваÑелÑÑкие ÐºÐ¾Ð¼Ð°Ð½Ð´Ñ passwd(1)
ÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐÐ
passwd - изменÑÐµÑ Ð¿Ð°ÑÐ¾Ð»Ñ Ð¿Ð¾Ð»ÑзоваÑелÑ
ÐСÐÐÐÐÐТÐÐÐÐÐСÐÐÐС
passwd [паÑамеÑÑÑ] [LOGIN]
ÐÐÐÐÐÐÐСÐÐÐÐÐÐÐÐ
ÐÑогÑамма passwd изменÑÐµÑ Ð¿Ð°Ñоли полÑзоваÑелÑÑкиÑ
ÑÑÑÑнÑÑ
запиÑей. ÐбÑÑнÑй
полÑзоваÑÐµÐ»Ñ Ð¼Ð¾Ð¶ÐµÑ Ð¸Ð·Ð¼ÐµÐ½Ð¸ÑÑ Ð¿Ð°ÑÐ¾Ð»Ñ ÑолÑко Ñвоей ÑÑÑÑной запиÑи, ÑÑпеÑполÑзоваÑелÑ
Ð¼Ð¾Ð¶ÐµÑ Ð¸Ð·Ð¼ÐµÐ½Ð¸ÑÑ Ð¿Ð°ÑÐ¾Ð»Ñ Ð»Ñбой ÑÑÑÑной запиÑи. ÐÑогÑамма passwd Ñакже изменÑеÑ
...
o ÑÑÑоÑнÑе бÑквÑ
o ÑиÑÑÑ Ð¾Ñ 0 до 9
o знаки пÑнкÑÑаÑии
Ðе вклÑÑайÑе ÑиÑÑемнÑе ÑÐ¸Ð¼Ð²Ð¾Ð»Ñ ÑÑиÑÐ°Ð½Ð¸Ñ Ð¸ ÑдалениÑ. ÐÑогÑамма passwd не пÑимеÑ
паÑолÑ, коÑоÑÑй не Ð¸Ð¼ÐµÐµÑ Ð´Ð¾ÑÑаÑоÑной ÑложноÑÑи.
ÐÐÑÑÐбÐоÑÑ ÐпÐаÑÑÐоÐлÑÑ
ÐезопаÑноÑÑÑ Ð¿Ð°ÑÐ¾Ð»Ñ Ð·Ð°Ð²Ð¸ÑÐ¸Ñ Ð¾Ñ ÑÑойкоÑÑи алгоÑиÑма ÑиÑÑÐ¾Ð²Ð°Ð½Ð¸Ñ Ð¸ ÑазмеÑа пÑоÑÑÑанÑÑва
клÑÑа. Ð UNIX ÑиÑÑемаÑ
меÑод ÑиÑÑÐ¾Ð²Ð°Ð½Ð¸Ñ Ð¾Ñнован на алгоÑиÑме NBS DES и оÑенÑ
безопаÑен. Ð Ð°Ð·Ð¼ÐµÑ Ð¿ÑоÑÑÑанÑÑва клÑÑа завиÑÐ¸Ñ Ð¾Ñ ÑÑепени пÑоизволÑноÑÑи вÑбÑанного
паÑолÑ.
|
|
#ssh root@192.168.16.21
The authenticity of host '192.168.16.21 (192.168.16.21)' can't be established.
DSA key fingerprint is 13:3f:fb:2a:53:62:8e:f8:0e:c7:3a:c9:10:99:b6:25.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.16.21' (DSA) to the list of known hosts.
Password:
Last login: Wed Apr 1 16:47:16 2009 from 10.0.17.100
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 6.3-RELEASE (SMP) #0: Wed Jan 16 04:45:45 UTC 2008
Welcome to FreeBSD!
...
http://www.FreeBSD.org/search/. If the doc distribution has
been installed, they're also available formatted in /usr/share/doc.
If you still have a question or problem, please take the output of
`uname -a', along with any relevant error messages, and email it
as a question to the questions@FreeBSD.org mailing list. If you are
unfamiliar with FreeBSD's directory layout, please refer to the hier(7)
manual page. If you are not familiar with manual pages, type `man man'.
You may also use sysinstall(8) to re-enter the installation and
configuration utility. Edit /etc/motd to change this login announcement.
Removing stale pidfile
|
|
#[root@fbsd1:~]# l;s /usr/libexec/
[root@fbsd1:~]# man man
MAN(1) FreeBSD General Commands Manual MAN(1)
NAME
man -- format and display the on-line manual pages
SYNOPSIS
man [-adfhkotw] [-m machine] [-p string] [-M path] [-P pager] [-S list]
[section] name ...
DESCRIPTION
Man formats and displays the on-line manual pages. This version knows
about the MANPATH and PAGER environment variables, so you can have your
...
However, when referring to a specific section of the manual, such as
getopt(3), one would use:
man 3 getopt
SEE ALSO
apropos(1), groff(1), manpath(1), more(1), whatis(1), man(7), mdoc(7)
BUGS
The -t option only works if the troff(1)-like program is installed.
FreeBSD 6.2 January 5, 1991 FreeBSD 6.2
bash: l: ËÏÍÁÎÄÁ ÎÅ ÎÁÊÄÅÎÁ
bash: s: ËÏÍÁÎÄÁ ÎÅ ÎÁÊÄÅÎÁ
|
|
#[root@fbsd1:~]# ls /usr/libexec/
atrun ld-elf.so.1 revnetgroup bootpd lint1 rlogind bootpgw lint2 rpc.rquotad catman.local locate.bigram rpc.rstatd cc1 locate.code rpc.rusersd cc1obj locate.concatdb rpc.rwalld cc1plus locate.mklocatedb rpc.sprayd comsat locate.updatedb rshd f771 lpr save-entropy fingerd lukemftpd sendmail ftp-proxy mail.local sftp-server ftpd make_index sm.bin getty makekey smrsh hprop makewhatis.local ssh-keysign hpropd mknetid tcpd ipropd-master ntalkd telnetd ipropd-slave phttpget tftpd kadmind pppoed vfontedpr kdc pt_chown yppwupdate kpasswdd rbootd ypxfr |
|
#[root@fbsd1:~]#
[root@fbsd1:~]# update- update-desktop-database update-mime-database |
| Время первой команды журнала | 16:25:23 2009- 3-31 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Время последней команды журнала | 20:21:31 2009- 4- 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Количество командных строк в журнале | 100 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Процент команд с ненулевым кодом завершения, % | 15.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Процент синтаксически неверно набранных команд, % | 1.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Суммарное время работы с терминалом *, час | 1.32 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Количество командных строк в единицу времени, команда/мин | 1.26 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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