次のページでコマンドに遭遇しました。http://alblue.bandlem.com/2011/07/setting-up-google-code-with-git.html
chmod go = .netrc
chmodのmanで見つかりません。
次のページでコマンドに遭遇しました。http://alblue.bandlem.com/2011/07/setting-up-google-code-with-git.html
chmod go = .netrc
chmodのmanで見つかりません。
chmodのマンページの「有効なモードの例」から:
go=グループおよびその他のすべてのモードビットをクリアします。
chmod go= .netrc
グループや他の人がファイルにアクセスすることはできません.netrc
。
chmod go=rx .netrc
読み取りと実行のアクセス権を与える`
基本的に、特定のアクセスレベルを加算+
、減算-
、および割り当てることができます。=
このリンクを確認してください
これは、「これらの権限を絶対に設定する」ことを意味します。この場合、ファイルg
のとo
アクセス許可をクリアします.netrc
(等号の後にアクセス許可に名前を付けなかったため)。
次のようなことをした場合:
chmod go = r .netrc
read
とに権限を付与しますが、group
とother
の他のすべての権限をクリアしg
ますo
。
次にいくつかの例を示します。
~> pico test.txt <-- Create a file with default permissions
~> ls -l test.txt
-rw-r--r-- 1 mike staff 7 Sep 12 09:39 test.txt
~> chmod go= test.txt <-- Clear the permissions on g and o
~> ls -l test.txt
-rw------- 1 mike staff 7 Sep 12 09:39 test.txt
~> chmod go=r test.txt <-- Set only read on g and o
~> ls -l test.txt
-rw-r--r-- 1 mike staff 7 Sep 12 09:39 test.txt
~> chmod o=rw test.txt <-- Set read and write only on o
~> ls -l test.txt
-rw-r--rw- 1 mike staff 7 Sep 12 09:39 test.txt
詳細については、シンボリックモードのマニュアルページを参照してください。