Skip to main content

クライアントコマンド(hchmod)

hchmodコマンドは、リモート(サーバ、hcpdサーバ)上でファイルのパーミッションを変更するコマンドです。本コマンドは、Windowsサービスではサポートしません。

基本書式#

Usage: hchmod [OPTION]... MODE[,MODE...] [USER@]HOST[:PORT]:FILE [:FILE]...   or: hchmod [OPTION]... OCTAL-MODE [USER@]HOST[:PORT]:FILE [:FILE]...   or: hchmod [OPTION]... --host=HOST [--port=PORT] [--user=USER] MODE[,MODE...] FILE...   or: hchmod [OPTION]... --host=HOST [--port=PORT] [--user=USER] OCTAL-MODE FILE...

オプション一覧#

hchmodコマンドのオプションは以下の通りです。

パーミッション変更

説明短縮名オプション名
ディレクトリを再帰的に探索してパーミッション変更Rrecursive
接続先リモートホストの指定host
接続先リモートホストのサービスポート指定port

通信方式選択機能

説明短縮名オプション名
HpFPプロトコルの使用hpfp
WebSocketプロトコル(SSL/TLS)の使用wss
ポート分離型UDP (HpFP)プロトコルの使用(廃止予定)udp
WebSocketプロトコル(平文通信)の使用ws
プロキシ直接接続指定(WebSocketプロトコル使用時)ws-proxy-direct
プロキシサーバの指定(WebSocketプロトコル使用時)ws-proxy

輻輳制御

説明短縮名オプション名
輻輳制御モードの指定(HpFPプロトコル使用時)hpfp-cong

データフロー制御・通信メッセージサイズ制御

説明短縮名オプション名
MSS(Maximum Segment Size)の指定(HpFPプロトコル使用時)hpfp-mss

データフロー制御・データバッファ設定

説明短縮名オプション名
送信バッファサイズの指定(HpFPプロトコル使用時)hpfp-sndbuf
受信バッファサイズの指定(HpFPプロトコル使用時)hpfp-rcvbuf

認証

説明短縮名オプション名
サーバ証明書の検証無効化(WebSocket(SSL/TLS)通信時)wss-no-check-certificate
ユーザ名を先に指定してパーミッション変更user
パスワードを先に指定してパーミッション変更password

各種監視機能

説明短縮名オプション名
調査モード起動(廃止予定)investigation

ログ管理機能

説明短縮名オプション名
アプリケーションログの出力先指定log-file
各種統計ログの出力先指定stat-log-file
実行記録の出力先指定hcp-out
多重起動モードで起動multi-run

ソフトウェアの情報確認

説明短縮名オプション名
バージョン確認Vversion
入力パラメータ及び設定情報確認config-test
コマンドヘルプの表示hhelp

システム動作環境設定

説明短縮名オプション名
設定ファイルのパス指定config-file
設定項目上書き指定config-option
実行ディレクトリからの相対パスでIncludeinclude-conf-from-cwd
サーバ互換対応無効化no-earlier-serv-compat

次のオプションはhcpdコマンドの説明をご参照ください。

--investigation

次のオプションはhcpコマンドの説明をご参照ください。

--hpfp, --wss, --user, --password, --config-file, --config-option, --log-file, --stat-log-file,  --udp, --ws, --wss-no-check-certificate, --ws-proxy-direct, --ws-proxy, --hpfp-cong, --hpfp-mss, --hpfp-sndbuf, --hpfp-rcvbuf, --multi-run, --include-conf-from-cwd, --no-earlier-serv-compat

パーミッション変更#

R, recursive#

=========================================================================対応OS : Linux / Windows / Mac書式 : -R | --recursive=========================================================================

ディレクトリを再帰的に探索してパーミッションの変更を適用します。

--例:[user@localhost ~]$ hchmod -R ...--

host#

=========================================================================対応OS : Linux / Windows / Mac書式 : --host=<remote-host>-------------------------------------------------------------------------remote-host既定値 : なし値の範囲 : IPアドレス もしくは ホスト名=========================================================================

接続先のリモートホストを指定します。ファイルを指定するパスに適用されます。このパラメータを指定した場合、このパスのホスト名を省略することができます。

--例:[user@localhost ~]$ hchmod --remote-host=192.168.100.100 ...--

port#

=========================================================================対応OS : Linux / Windows / Mac書式 : --port=<remote-port>-------------------------------------------------------------------------remote-port既定値 : なし値の範囲 : ポート番号=========================================================================

接続先のリモートホストのサービスポート番号を指定します。ファイルを指定するパスに適用されます。

--例:[user@localhost ~]$ hchmod --remote-port=1874 ...--

ログ管理機能#

hcp-out#

=========================================================================対応OS : Linux / Windows / Mac書式 : --hcp-out=<output-path>-------------------------------------------------------------------------output-path既定値 : なし値の範囲 : ファイルシステムのパス文字列=========================================================================

パーミッション変更の実行記録を出力するファイルを指定します。

--例:[user@localhost ~]$ hchmod --hcp-out=- ...HOST 127.0.0.1:1874OK 0000 CA 00000001 hcp_dst/file1.txtEXIT 0 REASON 0000[user@localhost ~]$ --
--例:[user@localhost ~]$ hchmod --hcp-out=- ...--

ソフトウェアの情報確認#

V, version#

=========================================================================対応OS : Linux / Windows / Mac書式 : -V | --version=========================================================================

hchmodコマンドのバージョンを表示します。

--例:[user@localhost ~]$ hchmod -Vhchmod client (hchmod) 1.4.9_5 / Linux (HpFP2 2.0.0.91_21 WSAPI 0.0.1.34 WS 4.2.0-2)--

config-test#

=========================================================================対応OS : Linux / Windows / Mac書式 : --config-test=========================================================================

hchmodコマンドの入力パラメータ及び設定情報を出力します。

--例:[user@localhost ~]$ hchmod --config-test...
Number of Logical Processors  : 2Number of Physical Processors : 2
Command parameters modes     : - recursive      : disable host     : disable port     : disable user           : disable password       : disable version        : disable help           : disable

Configuration parameters PubkeyAuthentication             : yes WinLogonUserAuthentication       : yes PAMAuthentication                : yes LocalPasswordAuthentication      : yes CompressLevel                    : -1 StrictHostKeyChecking            : ask PrivateKeyFile                   : - [~/.hcp/id_rsa] TransportTimeout                 : 180 AcceptableCryptMethod            : AES256/GCM AES256/CTR/VMAC AES256/CBC AES128/CBC [Intel:AES-NI=yes] AcceptableDigestMethod           : XXH3 SHA256 SHA160
Please type '--config-test --config-test ...' for more details.--

h, help#

=========================================================================対応OS : Linux / Windows / Mac書式 : -h | --help=========================================================================

hchmodコマンドのヘルプを表示します。

--例:[user@localhost ~]$ hchmod -h--