0

次のページでコマンドに遭遇しました。http://alblue.bandlem.com/2011/07/setting-up-google-code-with-git.html

chmod go = .netrc

chmodのmanで見つかりません。

4

3 に答える 3

2

chmodのマンページの「有効なモードの例」から:

go=グループおよびその他のすべてのモードビットをクリアします。

于 2012-09-12T16:50:04.570 に答える
2

chmod go= .netrcグループや他の人がファイルにアクセスすることはできません.netrc
chmod go=rx .netrc読み取りと実行のアクセス権を与える`

基本的に、特定のアクセスレベルを加算+、減算-、および割り当てることができます。=

このリンクを確認してください

于 2012-09-12T16:55:10.233 に答える
1

これは、「これらの権限を絶対に設定する」ことを意味します。この場合、ファイルgのとoアクセス許可をクリアします.netrc(等号の後にアクセス許可に名前を付けなかったため)。

次のようなことをした場合:

chmod go = r .netrc

readとに権限を付与しますが、groupotherの他のすべての権限をクリアし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

詳細については、シンボリックモードのマニュアルページを参照してください。

于 2012-09-12T16:38:52.977 に答える