|
79.
|
|
|
In a multi-user environment, security of user and system data is important. Linux has three specific, or distinct, classes:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/basics/C/basics.xml:340(para)
|
|
80.
|
|
|
<emphasis role="strong">r</emphasis> - <emphasis>read</emphasis> permission which grants the ability to read a file.
|
|
|
|
<emphasis role="strong">r</emphasis> - <emphasis>доступ на чтение</emphasis>. Предоставляет возможность чтения файлов.
|
|
Translated by
Alex L.
|
|
Reviewed by
Alex L.
|
|
|
|
Located in
docs/basics/C/basics.xml:346(para)
|
|
81.
|
|
|
<emphasis role="strong">w</emphasis> - <emphasis>write</emphasis> permission which grants the ability to modify a file.
|
|
|
|
<emphasis role="strong">w</emphasis> - <emphasis>доступ на запись</emphasis>. Предоставляет возможность изменения файлов.
|
|
Translated by
Alex L.
|
|
Reviewed by
Alex L.
|
|
|
|
Located in
docs/basics/C/basics.xml:352(para)
|
|
82.
|
|
|
<emphasis role="strong">x</emphasis> - <emphasis>execute</emphasis> permission which grants the ability to execute a file.
|
|
|
|
<emphasis role="strong">x</emphasis> - <emphasis>доступ на запуск</emphasis>. Предоставляет возможность запускать (исполнять) файлы.
|
|
Translated by
Alex L.
|
|
Reviewed by
Alex L.
|
|
|
|
Located in
docs/basics/C/basics.xml:358(para)
|
|
83.
|
|
|
The list above shows the symbolic notation of each permission in <emphasis role="strong">bold</emphasis> text. Each permission also has an octal notation:
|
|
|
|
Приведенный выше список показывает символическое обозначение каждого разрешения (выделено <emphasis role="strong">жирным шрифтом</emphasis>).
|
|
Translated by
Alex L.
|
|
Reviewed by
Alex L.
|
|
|
|
Located in
docs/basics/C/basics.xml:364(para)
|
|
84.
|
|
|
<emphasis role="strong">r</emphasis> - <emphasis>4</emphasis>
|
|
|
|
<emphasis role="strong">r</emphasis> - <emphasis>4</emphasis>
|
|
Translated by
Alex L.
|
|
Reviewed by
Alex L.
|
|
|
|
Located in
docs/basics/C/basics.xml:448(para)
|
|
85.
|
|
|
<emphasis role="strong">w</emphasis> - <emphasis>2</emphasis>
|
|
|
|
<emphasis role="strong">w</emphasis> - <emphasis>2</emphasis>
|
|
Translated by
Alex L.
|
|
Reviewed by
Alex L.
|
|
|
|
Located in
docs/basics/C/basics.xml:453(para)
|
|
86.
|
|
|
<emphasis role="strong">x</emphasis> - <emphasis>1</emphasis>
|
|
|
|
<emphasis role="strong">x</emphasis> - <emphasis>1</emphasis>
|
|
Translated by
Alex L.
|
|
Reviewed by
Alex L.
|
|
|
|
Located in
docs/basics/C/basics.xml:458(para)
|
|
87.
|
|
|
Permissions Example
|
|
|
|
Пример разрешений
|
|
Translated and reviewed by
Roman Mindlin
|
|
|
|
Located in
docs/basics/C/basics.xml:465(title)
|
|
88.
|
|
|
To view permissions, type <screen>ls -l ~/</screen> which will output a list of the directories and files in the current user's home directory. For example: <screen>
drwxr-xr-x 2 username usergroup 4096 2009-12-17 11:10 Documents
</screen> The first column, which contains <emphasis role="strong">drwxr-xr-x</emphasis>, can be interpreted as follows:
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
Чтобы посмотреть разрешения, наберите команду <screen>ls -l ~/</screen>, которая покажет список каталогов и файлов в домашнем каталоге.
Например: <screen>drwxr-xr-x 2 username usergroup 4096 2009-12-17 11:10 Documents</screen>
Первая колонка, содержащая <emphasis role="strong">drwxr-xr-x</emphasis>, понимается как:
|
|
Translated and reviewed by
Roman Mindlin
|
|
|
|
Located in
docs/basics/C/basics.xml:387(para)
|