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

Содержание

Журнал

Понедельник (01/11/10)

/dev/ttyp9
09:32:11
#apropos passwd
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
/dev/ttyp8
09:32:11
#apropos passwd
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
/dev/ttyp9
09:32:38
#man -f passwd
/dev/ttyp8
09:32:38
#man -f passwd
/dev/ttyp9
09:32:52
#man -k
/dev/ttyp8
09:32:52
#man -k
/dev/ttyp9
09:32:59
#apropos passwd
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
/dev/ttyp8
09:32:59
#apropos passwd
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
/dev/ttyp9
09:33:03
#man -f passwd
/dev/ttyp8
09:33:03
#man -f passwd
/dev/ttyp9
09:33:31
#PAGER=cat LANG=C
Reformatting passwd(5), please wait...
PASSWD(5)              File Formats and Conversions              PASSWD(5)
NAME
       passwd - the password file
DESCRIPTION
       /etc/passwd contains one line for each user account, with seven
       fields delimited by colons (":"). These fields are:
       o  login name
       o  optional encrypted password
       o  numerical user ID
...
       defaults to the value /bin/sh.
FILES
       /etc/passwd
          User account information.
       /etc/shadow
          optional encrypted password file
SEE ALSO
       getent(1), login(1), passwd(1), su(1), crypt(3), getpwnam(3),
       shadow(5), pwconv(8), pwunconv(8), sulogin(8).
File Formats and Conversions    02/25/2007                       PASSWD(5)
/dev/ttyp8
09:33:31
#PAGER=cat LANG=C
Reformatting passwd(5), please wait...
PASSWD(5)              File Formats and Conversions              PASSWD(5)
NAME
       passwd - the password file
DESCRIPTION
       /etc/passwd contains one line for each user account, with seven
       fields delimited by colons (":"). These fields are:
       o  login name
       o  optional encrypted password
       o  numerical user ID
...
       defaults to the value /bin/sh.
FILES
       /etc/passwd
          User account information.
       /etc/shadow
          optional encrypted password file
SEE ALSO
       getent(1), login(1), passwd(1), su(1), crypt(3), getpwnam(3),
       shadow(5), pwconv(8), pwunconv(8), sulogin(8).
File Formats and Conversions    02/25/2007                       PASSWD(5)
/dev/ttyp9
09:34:18
#PAGER=cat LANG=C ma

/dev/ttyp8
09:34:18
#PAGER=cat LANG=C ma

/dev/ttyp9
09:34:44
#update
update-alternatives       update-inetd
updatedb                  update-locale
update-fonts-alias        update-menus
update-fonts-dir          update-mime
update-fonts-scale        update-modules
update-gconf-defaults     update-pangox-aliases
update-gdkpixbuf-loaders  update-passwd
update-grub               update-pciids
update-gtk-immodules      update-rc.d
09:34:44
#update
update-alternatives       update-inetd
updatedb                  update-locale
update-fonts-alias        update-menus
update-fonts-dir          update-mime
update-fonts-scale        update-modules
update-gconf-defaults     update-pangox-aliases
update-gdkpixbuf-loaders  update-passwd
update-grub               update-pciids
update-gtk-immodules      update-rc.d
09:34:44
#updatedb

/dev/ttyp8
09:34:44
#update
update-alternatives       update-inetd
updatedb                  update-locale
update-fonts-alias        update-menus
update-fonts-dir          update-mime
update-fonts-scale        update-modules
update-gconf-defaults     update-pangox-aliases
update-gdkpixbuf-loaders  update-passwd
update-grub               update-pciids
update-gtk-immodules      update-rc.d
09:34:44
#update
update-alternatives       update-inetd
updatedb                  update-locale
update-fonts-alias        update-menus
update-fonts-dir          update-mime
update-fonts-scale        update-modules
update-gconf-defaults     update-pangox-aliases
update-gdkpixbuf-loaders  update-passwd
update-grub               update-pciids
update-gtk-immodules      update-rc.d
09:34:44
#updatedb

/dev/ttyp9
09:35:36
#man updatedb
/dev/ttyp8
09:35:36
#man updatedb
/dev/ttyp9
09:35:49
#man
09:35:49
#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 старые записи базы данных.
/dev/ttyp8
09:35:49
#man
09:35:49
#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 старые записи базы данных.
/dev/ttyp9
09:35:56
#LANG=C

/dev/ttyp8
09:35:56
#LANG=C

/dev/ttyp9
09:36:13
#mandb
Purging old database entries in /usr/share/man...
Processing manual pages under /usr/share/man...
Purging old database entries in /usr/local/man...
Processing manual pages under /usr/local/man...
Purging old database entries in /usr/local/share/man...
Processing manual pages under /usr/local/share/man...
0 man subdirectories contained newer manual pages.
0 manual pages were added.
0 stray cats were added.
0 old database entries were purged.
/dev/ttyp8
09:36:13
#mandb
Purging old database entries in /usr/share/man...
Processing manual pages under /usr/share/man...
Purging old database entries in /usr/local/man...
Processing manual pages under /usr/local/man...
Purging old database entries in /usr/local/share/man...
Processing manual pages under /usr/local/share/man...
0 man subdirectories contained newer manual pages.
0 manual pages were added.
0 stray cats were added.
0 old database entries were purged.
/dev/ttyp9
09:37:50
#man bash
/dev/ttyp8
09:37:50
#man bash
/dev/ttyp9
09:38:43
#man 5 passwd
/dev/ttyp8
09:38:43
#man 5 passwd
/dev/ttyp9
09:40:21
#[root@fbsd3:~]# man 5 passwd
[root@debian1:~]# ssh 192.168.16.23
Password:
Last login: Mon Jan 11 10:14:12 2010 from 192.168.16.1
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!
Before seeking technical support, please use the following resources:
o  Security advisories and updated errata information for all releases are
   at http://www.FreeBSD.org/releases/ - always consult the ERRATA section
...
HISTORY
     A passwd file format appeared in Version 6 AT&T UNIX.
     The NIS passwd file format first appeared in SunOS.
     The Hesiod support first appeared in FreeBSD 4.1.  It was imported from
     the NetBSD Project, where it first appeared in NetBSD 1.4.
BUGS
     User information should (and eventually will) be stored elsewhere.
     Placing `compat' exclusions in the file after any inclusions will have
     unexpected results.
FreeBSD 6.2                       May 8, 2007                      FreeBSD 6.2
/dev/ttyp8
09:40:21
#[root@fbsd3:~]# man 5 passwd
[root@debian1:~]# ssh 192.168.16.23
Password:
Last login: Mon Jan 11 10:14:12 2010 from 192.168.16.1
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!
Before seeking technical support, please use the following resources:
o  Security advisories and updated errata information for all releases are
   at http://www.FreeBSD.org/releases/ - always consult the ERRATA section
...
HISTORY
     A passwd file format appeared in Version 6 AT&T UNIX.
     The NIS passwd file format first appeared in SunOS.
     The Hesiod support first appeared in FreeBSD 4.1.  It was imported from
     the NetBSD Project, where it first appeared in NetBSD 1.4.
BUGS
     User information should (and eventually will) be stored elsewhere.
     Placing `compat' exclusions in the file after any inclusions will have
     unexpected results.
FreeBSD 6.2                       May 8, 2007                      FreeBSD 6.2
/dev/ttyp9
09:42:00
#[root@fbsd3:~]#
           BEGIN { FS = ":"}
           { print $1 ":" $2 ":" $3 ":" $4 "::0:0:" $5 ":" $6 ":" $7 }
[root@fbsd3:~]# PAGER=less man 5 passwd
PASSWD(5)                 FreeBSD File Formats Manual                PASSWD(5)
NAME
     passwd, master.passwd -- format of the password file
DESCRIPTION
     The passwd files are the local source of password information.  They can
     be used in conjunction with the Hesiod domains `passwd' and `uid', and
     the NIS maps `passwd.byname', `passwd.byuid', `master.passwd.byname', and
...
HISTORY
     A passwd file format appeared in Version 6 AT&T UNIX.
     The NIS passwd file format first appeared in SunOS.
     The Hesiod support first appeared in FreeBSD 4.1.  It was imported from
     the NetBSD Project, where it first appeared in NetBSD 1.4.
BUGS
     User information should (and eventually will) be stored elsewhere.
     Placing `compat' exclusions in the file after any inclusions will have
     unexpected results.
FreeBSD 6.2                       May 8, 2007                      FreeBSD 6.2
/dev/ttyp8
09:42:00
#[root@fbsd3:~]#
           BEGIN { FS = ":"}
           { print $1 ":" $2 ":" $3 ":" $4 "::0:0:" $5 ":" $6 ":" $7 }
[root@fbsd3:~]# PAGER=less man 5 passwd
PASSWD(5)                 FreeBSD File Formats Manual                PASSWD(5)
NAME
     passwd, master.passwd -- format of the password file
DESCRIPTION
     The passwd files are the local source of password information.  They can
     be used in conjunction with the Hesiod domains `passwd' and `uid', and
     the NIS maps `passwd.byname', `passwd.byuid', `master.passwd.byname', and
...
HISTORY
     A passwd file format appeared in Version 6 AT&T UNIX.
     The NIS passwd file format first appeared in SunOS.
     The Hesiod support first appeared in FreeBSD 4.1.  It was imported from
     the NetBSD Project, where it first appeared in NetBSD 1.4.
BUGS
     User information should (and eventually will) be stored elsewhere.
     Placing `compat' exclusions in the file after any inclusions will have
     unexpected results.
FreeBSD 6.2                       May 8, 2007                      FreeBSD 6.2
/dev/ttyp9
09:42:01
#[root@fbsd3:~]#

09:42:01
#[root@fbsd3:~]#

/dev/ttyp8
09:42:01
#[root@fbsd3:~]#

09:42:01
#[root@fbsd3:~]#

/dev/ttyp9
09:42:15
#apropos user
[root@fbsd3:~]# exit
exit
Connection to 192.168.16.23 closed.
/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
...
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
/dev/ttyp8
09:42:15
#apropos user
[root@fbsd3:~]# exit
exit
Connection to 192.168.16.23 closed.
/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
...
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
/dev/ttyp9
09:44:03
#apropos user | egrep -i "Add|Remove|Del|Modify"
[root@debian1:~]# apropos user | egrep -i "Add|Remove|Del|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
/dev/ttyp8
09:44:03
#apropos user | egrep -i "Add|Remove|Del|Modify"
[root@debian1:~]# apropos user | egrep -i "Add|Remove|Del|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
/dev/ttyp9
09:49:48
#info
/dev/ttyp8
09:49:48
#info
/dev/ttyp9
09:52:45
#[root@fbsd3:~]#
[root@debian1:~]# ssh 192.168.16.23
Password:
Last login: Mon Jan 11 10:40:18 2010 from 192.168.16.1
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!
Before seeking technical support, please use the following resources:
o  Security advisories and updated errata information for all releases are
   at http://www.FreeBSD.org/releases/ - always consult the ERRATA section
...
   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
09:52:45
#[root@fbsd3:~]#

/dev/ttyp8
09:52:45
#[root@fbsd3:~]#
[root@debian1:~]# ssh 192.168.16.23
Password:
Last login: Mon Jan 11 10:40:18 2010 from 192.168.16.1
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!
Before seeking technical support, please use the following resources:
o  Security advisories and updated errata information for all releases are
   at http://www.FreeBSD.org/releases/ - always consult the ERRATA section
...
   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
09:52:45