Date: Tue, 17 Dec 2013 16:05:44 +0000 (UTC) From: Ryusuke SUZUKI <ryusuke@FreeBSD.org> To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r43344 - head/ja_JP.eucJP/books/handbook/basics Message-ID: <201312171605.rBHG5iBw036763@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ryusuke Date: Tue Dec 17 16:05:44 2013 New Revision: 43344 URL: http://svnweb.freebsd.org/changeset/doc/43344 Log: - 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 Modified: head/ja_JP.eucJP/books/handbook/basics/chapter.xml Modified: head/ja_JP.eucJP/books/handbook/basics/chapter.xml ============================================================================== --- head/ja_JP.eucJP/books/handbook/basics/chapter.xml Tue Dec 17 16:01:42 2013 (r43343) +++ head/ja_JP.eucJP/books/handbook/basics/chapter.xml Tue Dec 17 16:05:44 2013 (r43344) @@ -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">
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312171605.rBHG5iBw036763>