- Merge the following from the English version:

r17270 -> r17406	head/ja_JP.eucJP/books/handbook/basics/chapter.xml

Submitted by:	Yuta MASUMOTO <owata _at_ club dot kyutech dot ac dot jp>
		ryusuke
Reviewed by:	Yuta MASUMOTO <owata _at_ club dot kyutech dot ac dot jp>
		ryusuke
This commit is contained in:
Ryusuke SUZUKI 2013-12-17 16:05:44 +00:00
parent a7263b186d
commit 111e7e41b8
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=43344

View file

@ -3,7 +3,7 @@
The FreeBSD Documentation Project
The FreeBSD Japanese Documentation Project
Original revision: r17270
Original revision: r17406
$FreeBSD$
-->
<chapter xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0" xml:id="basics">
@ -211,6 +211,137 @@
ファイルの許可属性そのものについて、
また、それらの設定のしかたに関する詳しい情報は、
&man.chmod.1; マニュアルページを参照してください。</para>
<sect2>
<info><title>シンボリック表記</title>
<authorgroup>
<author>
<personname>
<firstname>Tom</firstname>
<surname>Rhodes</surname>
</personname>
<contrib>寄稿: </contrib>
</author>
</authorgroup>
</info>
<indexterm><primary>許可属性</primary><secondary>シンボル</secondary></indexterm>
<para>シンボリック表記と呼ばれる許可属性を表す方法では、
ファイルやディレクトリの許可属性を、
8 進数ではなく記号を用いて設定します。
シンボリック表記では、(who), (action), (permissions)
という書式が用いられます。
利用できる値は以下の通りです。</para>
<informaltable>
<tgroup cols="3">
<thead>
<row>
<entry>オプション</entry>
<entry>文字</entry>
<entry>意味</entry>
</row>
</thead>
<tbody>
<row>
<entry>(who)</entry>
<entry>u</entry>
<entry>ユーザ</entry>
</row>
<row>
<entry>(who)</entry>
<entry>g</entry>
<entry>ファイルを所持しているグループ</entry>
</row>
<row>
<entry>(who)</entry>
<entry>o</entry>
<entry>その他</entry>
</row>
<row>
<entry>(who)</entry>
<entry>a</entry>
<entry>すべて (<quote>world</quote>)</entry>
</row>
<row>
<entry>(action)</entry>
<entry>+</entry>
<entry>許可属性を与える</entry>
</row>
<row>
<entry>(action)</entry>
<entry>-</entry>
<entry>許可属性を取り除く</entry>
</row>
<row>
<entry>(action)</entry>
<entry>=</entry>
<entry>許可属性を指定したものにする</entry>
</row>
<row>
<entry>(permissions)</entry>
<entry>r</entry>
<entry>読み込み</entry>
</row>
<row>
<entry>(permissions)</entry>
<entry>w</entry>
<entry>書き込み</entry>
</row>
<row>
<entry>(permissions)</entry>
<entry>x</entry>
<entry>実行</entry>
</row>
<row>
<entry>(permissions)</entry>
<entry>t</entry>
<entry>Sticky ビット</entry>
</row>
<row>
<entry>(permissions)</entry>
<entry>s</entry>
<entry>UID または GID を設定する</entry>
</row>
</tbody>
</tgroup>
</informaltable>
<para>これらの値は、これまでと同様に <command>chmod</command>
コマンドで用いますが、文字で指定します。
たとえば、<replaceable>FILE</replaceable>
に対して自分以外のユーザからアクセスを一切受け付けたくない、
というときには以下のコマンドを実行してください。</para>
<screen>&prompt.user;<userinput>chmod go= FILE</userinput></screen>
<para>カンマ区切りで設定することで、
ファイルの属性を一度に 2 つ以上変更できます。
以下の例では、<replaceable>FILE</replaceable>
に対して自分以外のユーザから書き込みの権限を取り上げ、
かわりにすべてのユーザが <replaceable>FILE</replaceable>
を実行できるようにします。</para>
<screen>&prompt.user;<userinput>chmod go-w,a+x <replaceable>FILE</replaceable></userinput></screen>
<para>ほとんどのユーザは気づかないかもしれませんが、
8 進数の値を用いた属性の変更方法は、
ファイルに対して許可属性を設定したり割り当てるだけで、
属性を足したり取り除いたりするというものではありません。</para>
</sect2>
</sect1>
<sect1 xml:id="dirstructure">