# Russian translation of manpages # This file is distributed under the same license as the manpages-l10n package. # Copyright © of this file: msgid "" msgstr "" "Project-Id-Version: manpages-l10n\n" "POT-Creation-Date: 2025-06-26 13:20+0200\n" "PO-Revision-Date: 2005-12-06 10:43+0300\n" "Last-Translator: Unknown <>\n" "Language-Team: Russian \n" "Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " "n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" #. type: TH #: tcb.5:3 #, no-wrap msgid "TCB" msgstr "TCB" #. type: TH #: tcb.5:3 #, no-wrap msgid "16 April 2004" msgstr "16 апреля 2004 г." #. type: TH #: tcb.5:3 #, no-wrap msgid "ALT Linux" msgstr "ALT Linux" #. type: SH #: tcb.5:5 #, no-wrap msgid "Name" msgstr "Название" #. type: Plain text #: tcb.5:7 msgid "B - альтернативная схема управления теневыми паролями" msgstr "B - альтернативная схема управления теневыми паролями" #. type: SH #: tcb.5:8 #, no-wrap msgid "Problem" msgstr "Задача" #. type: Plain text #: tcb.5:34 msgid "" "According to the traditional shadow password management scheme, the password " "hashes of all users, as well as information about their expiration dates, are " "stored in a single file - I. Thus, a process that is granted " "access to the password information of one of the system users automatically " "receives sufficient rights to gain similar access to the password information " "of all other users. This obvious design flaw can be easily seen in the " "example of the B(1) utility. Suppose that the security policy allows " "unprivileged users to change their own passwords. Whatever the access rights " "to the I file, the B(1) program launched by " "unprivileged users U must be able to make changes to this file. If an " "attacker U finds a way to take control of the B(1) process (using a " "bug directly in the code of the B(1) program, the libraries it uses, " "or in the kernel), then this user will be able to change the passwords of all " "users and thus take control of the operating system." msgstr "" "Согласно традиционной схеме управления теневыми паролями, хеши паролей всех " "пользователей, а также информация о сроке их действия хранится в едином файле " "- I. Таким образом, процесс, которому предоставляется доступ к " "информации о пароле одного из пользователей системы, автоматически получает " "права, достаточные для получения аналогичного доступа к информации о паролях " "всех остальных пользователей. Этот явный изъян в дизайне легко проследить на " "примере утилиты B(1). Предположим, что политика безопасности " "позволяет непривилегированным пользователям изменять собственные пароли. " "Какими бы ни были права доступа к файлу I, программа " "B(1), запущенная непривилегированным пользователям U, должна иметь " "возможность вносить изменения в этот файл. Если злоумышленник U найдёт " "способ взять под свой контроль процесс B(1) (с помощью ошибки " "непосредственно в коде программы B(1), используемых ею библиотеках, " "или в ядре), то этот пользователь получит возможность менять пароли всех " "пользователей и таким образом возьмёт под свой контроль операционную систему." #. type: SH #: tcb.5:35 #, no-wrap msgid "Solution" msgstr "Решение" #. type: Plain text #: tcb.5:41 msgid "" "The solution to the problem is simple - each user has a separate shadow file. " "Since the shadow file of user U belongs to this user U, the program " "B(1) launched by U no longer requires root rights." msgstr "" "Решение проблемы простое - каждому пользователю соответствует отдельный " "теневой shadow-файл. Поскольку теневой файл пользователя U принадлежит этому " "пользователю U, то программа B(1), запущенная U, уже не требует " "рутовых прав." #. type: Plain text #: tcb.5:54 msgid "All user shadow files are located in the I directory:" msgstr "Все теневые файлы пользователей располагаются в каталоге I:" #. type: Plain text #: tcb.5:56 msgid "drwx--x--- 2 root shadow 1024 May 4 01:18 /etc/tcb" msgstr "drwx--x--- 2 root shadow 1024 Май 4 01:18 /etc/tcb" #. type: Plain text #: tcb.5:60 msgid "" "For each user, a subdirectory is created in I with the appropriate " "access rights:" msgstr "" "Для каждого пользователя создаётся подкаталог в I с " "соответствующими правами доступа:" #. type: Plain text #: tcb.5:65 msgid "" "# ls -l /etc/tcb total 2 drwx--s--- 2 root auth 1024 May 4 01:18 root drwx--" "s--- 2 user auth 1024 May 4 01:18 user" msgstr "" "# ls -l /etc/tcb всего 2 drwx--s--- 2 root auth 1024 Май 4 01:18 root drwx--" "s--- 2 user auth 1024 Май 4 01:18 user" #. type: Plain text #: tcb.5:69 msgid "" "etc. Each such subdirectory contains a shadow file containing information " "about the password of the corresponding user:" msgstr "" "и т.д. Каждый такой подкаталог содержит теневой файл, содержащий информацию " "о пароле соответствующего пользователя:" #. type: Plain text #: tcb.5:73 msgid "" "# ls -l /etc/tcb/user total 1 -rw-r----- 1 user auth 91 May 4 01:18 shadow" msgstr "" "# ls -l /etc/tcb/user всего 1 -rw-r----- 1 user auth 91 Май 4 01:18 shadow" #. type: Plain text #: tcb.5:77 msgid "" "These personal directories are used to store temporary files and lock files " "created when changing a password or changing other information stored in the " "shadow file." msgstr "" "Эти персональные каталоги используются для хранения временных файлов и " "блокировочных файлов, создаваемых во время смены пароля либо изменения другой " "информации, хранящейся в теневом файле." #. type: SH #: tcb.5:78 #, no-wrap msgid "Advantages" msgstr "Преимущества" #. type: Plain text #: tcb.5:80 msgid "The design described above has the following advantages:" msgstr "Описанный выше дизайн обладает следующими преимуществами:" #. type: TP #: tcb.5:80 tcb.5:120 #, no-wrap msgid "1." msgstr "1." #. type: Plain text #: tcb.5:97 msgid "" "The B(1) utility must be installed with SGID-shadow privileges, not " "SUID-root. The B(1) utility and the I " "helper program must also be installed with SGID-shadow privileges; this means " "that, under the B scheme, running processes will have privileges " "sufficient to modify only the user's shadow record. Thus, the only damage an " "attacker can do if they discover a bug in the implementation of these " "programs is limited to modifying their own shadow file." msgstr "" "Утилита B(1) должна быть установлена с правами SGID-shadow, а не " "SUID-root. Утилита B(1) и вспомогательная программа I также должны быть установлены с правами SGID-shadow; это " "значит, что в соответствии со схемой B запущенные процессы будут " "обладать правами, достаточными для изменения только пользовательской теневой " "записи. Таким образом, весь вред, который может причинить злоумышленник в " "случае обнаружения ошибки в реализации этих программ, ограничен возможностью " "изменения своего собственного теневого файла." #. type: TP #: tcb.5:97 tcb.5:124 #, no-wrap msgid "2." msgstr "2." #. type: Plain text #: tcb.5:101 msgid "" "If a process needs read access to all shadow files at once, it is sufficient " "to additionally include it in the \"shadow\" and \"auth\" groups." msgstr "" "Если процессу необходим доступ по чтению ко всем теневым файлам сразу, " "достаточно дополнительно включить его в группы \"shadow\" и \"auth\"." #. type: TP #: tcb.5:101 tcb.5:129 #, no-wrap msgid "3." msgstr "3." #. type: Plain text #: tcb.5:111 msgid "" "The B scheme is completely transparent to applications that need to read " "password information. The shared library libnss_tcb implements an interface " "to the B(3) function and other functions for working with shadow " "records. Password changing is provided by the B(8) PAM module." msgstr "" "Схема B полностью прозрачна для приложений, которым требуется читать " "информацию о паролях. Разделяемая библиотека libnss_tcb реализует интерфейс " "к функции B(3) и другим функциям работы с теневыми записями. " "Смена паролей обеспечивается PAM-модулем B(8)." #. type: Plain text #: tcb.5:117 msgid "" "Information on implementing the B scheme can be found in " "B(8), which explains how to do this most painlessly." msgstr "" "Информацию о введении в действие схемы B можно прочесть в " "B(8), где рассказано, как это сделать наиболее безболезненно." #. type: SH #: tcb.5:118 #, no-wrap msgid "Flaws" msgstr "Недостатки" #. type: Plain text #: tcb.5:120 msgid "" "To be honest, there are only a few of them, and they are extremely minor:" msgstr "Честно говоря, их всего несколько, и они крайне незначительные:" #. type: Plain text #: tcb.5:124 msgid "" "Unable to acquire a lock on the entire shadow database (see " "B(8))." msgstr "" "Невозможно установить блокировку всей теневой базы данных (см. " "B(8))." #. type: Plain text #: tcb.5:129 msgid "" "A process that has read access to all shadow files as described above " "automatically has write access to its own shadow file." msgstr "" "Процесс, обладающий доступом по чтению ко всем теневым файлам, как это " "описано выше, автоматически обладает доступом по изменению своего " "собственного теневого файла." #. type: Plain text #: tcb.5:134 msgid "" "It is not possible to grant a process read-only access to one specific shadow " "file except by running that process with the rights of the appropriate user." msgstr "" "Невозможно предоставить процессу права доступа только по чтению к одному " "конкретному теневому файлу иначе как исполняя этот процесс с правами " "соответствующего пользователя." #. type: TP #: tcb.5:134 #, no-wrap msgid "4." msgstr "4." #. type: Plain text #: tcb.5:138 msgid "User access controls require significant work to support the tcb scheme." msgstr "" "Средства управления доступом пользователей требуют значительной доработки для " "обеспечения поддержки схемы tcb." #. type: SH #: tcb.5:139 #, no-wrap msgid "Bypassing file system limitations" msgstr "Обход ограничений, накладываемых файловыми системами" #. type: Plain text #: tcb.5:148 msgid "" "Some file systems limit the number of hard links that files can have. For " "example, on the ext2 file system, no file can contain more than 32,000 hard " "links. This means that the I directory on such a file system can " "contain no more than 31,998 subdirectories. When using the file allocation " "scheme described above, this file system limitation automatically results in " "the maximum number of users being limited to the same number of 31,988." msgstr "" "Некоторые файловые системы ограничивают возможное число жёстких ссылок для " "файлов. Например, в файловой системе ext2 никакой файл не может содержать " "более 32000 жёстких ссылок. Это значит, что каталог I, размещённый " "на такой файловой системе, может содержать не более 31998 подкаталогов. При " "использовании схемы размещения файлов, описанной выше, это ограничение " "файловой системы автоматически приводит к ограничению максимального числа " "пользователей тем же числом 31988." #. type: Plain text #: tcb.5:157 msgid "" "Solution: the directory with the shadow file for user U can be placed not " "only in the I directory, but also in the I " "directory. In case of using the second option, a symbolic link I " "-E I must be created." msgstr "" "Решение: каталог с теневым файлом для пользователя U может быть помещён не " "только в каталог I, но и в каталог I. В " "случае использования второго варианта должна быть создана символическая " "ссылка I -E I." #. type: Plain text #: tcb.5:163 msgid "" "In the tcb implementation since version 0.9.8, directories with names " "matching the pattern I are not considered as directories with " "shadow files. These names are reserved for symbolic links to directories with " "shadow files." msgstr "" "В реализации tcb, начиная с версии 0.9.8, каталоги с именами, " "удовлетворяющими шаблону I, не рассматриваются как каталоги с " "теневыми файлами. Эти имена зарезервированы для символических ссылок на " "каталоги с теневыми файлами." #. type: Plain text #: tcb.5:176 msgid "" "By default, user access controls that work directly with directories " "containing shadow files create these directories directly in I; in " "a situation where the number of users in B may exceed the file system " "limit, the system administrator can switch to the second option for placing " "directories with shadow files by changing the I parameter in " "the B(5) configuration file." msgstr "" "По умолчанию, средства управления доступом пользователей, работающие " "непосредственно с каталогами, содержащими теневые файлы, создают эти каталоги " "непосредственно в I; в ситуации, когда число пользователей в B " "может превысить ограничение файловой системы, администратор системы может " "перейти на второй вариант размещения каталогов с теневыми файлами, изменив " "параметр I в конфигурационном файле B(5)." #. type: SH #: tcb.5:177 #, no-wrap msgid "Historical background" msgstr "Историческая справка" #. type: Plain text #: tcb.5:182 msgid "" "The first public version of the implementation of the alternative shadow " "password management scheme B appeared on November 12, 2001 in the " "Openwall GNU/*/Linux OS." msgstr "" "Первая публичная версия реализации альтернативной схемы управления теневыми " "паролями B появилась 12 ноября 2001 года в ОС Openwall GNU/*/Linux." #. type: Plain text #: tcb.5:186 msgid "" "The date of B's appearance in ALT Linux Sisyphus is December 20, 2001." msgstr "Дата появления B в ALT Linux Sisyphus - 20 декабря 2001 года." #. type: SH #: tcb.5:187 #, no-wrap msgid "Authors" msgstr "Авторы" #. type: TP #: tcb.5:188 #, no-wrap msgid "Rafal Wojtczuk Energal@owl.openwall.comE, Solar Designer Esolar@owl.openwall.comE -" msgstr "Rafal Wojtczuk Energal@owl.openwall.comE, Solar Designer Esolar@owl.openwall.comE -" #. type: Plain text #: tcb.5:193 msgid "implementation of the B scheme for Openwall GNU/*/Linux OS." msgstr "реализация схемы B для ОС Openwall GNU/*/Linux." #. type: TP #: tcb.5:193 #, no-wrap msgid "Dmitry V. Levin Eldv@altlinux.orgE -" msgstr "Dmitry V. Levin Eldv@altlinux.orgE -" #. type: Plain text #: tcb.5:200 msgid "" "code audit, adaptation of the B scheme for ALT Linux OS, translation of " "B documentation into Russian." msgstr "" "аудит кода, адаптация схемы B для ОС ALT Linux, перевод документации по " "B на русский язык." #. type: TP #: tcb.5:200 #, no-wrap msgid "Implementation of PAM module" msgstr "Реализация PAM-модуля" #. type: Plain text #: tcb.5:215 msgid "" "B is intended to provide backward compatibility with B, so " "some decisions were borrowed from B. Some less critical code " "fragments, as well as some code composition, are taken from the Linux-PAM " "implementation of the B module. The names of the B co-" "authors are listed in the orig_copyright/ directory of the B scheme " "source code." msgstr "" "B призвана обеспечивать обратную совместимость с B, ввиду " "чего некоторые решения были заимствованы из B. Некоторые менее " "критичные фрагменты кода, а также в некоторой мере композиция кода взяты из " "реализации модуля B в Linux-PAM. Имена соавторов B " "приведены в каталоге orig_copyright/ исходного кода схемы B." #. type: SH #: tcb.5:216 #, no-wrap msgid "Links" msgstr "Ссылки" #. type: Plain text #: tcb.5:219 msgid "B(5), B(8), B(8)" msgstr "B(5), B(8), B(8)"