Show Table of Contents
8.4. Red Hat Support Tool の設定
インタラクティブモードの場合は、コマンド
config --help を入力して設定オプションの一覧を表示できます。
~]#redhat-support-toolWelcome to the Red Hat Support Tool. Command (? for help):config --helpUsage: config [options] config.option <new option value> Use the 'config' command to set or get configuration file values. Options: -h, --help show this help message and exit -g, --global Save configuration option in /etc/redhat-support-tool.conf. -u, --unset Unset configuration option. The configuration file options which can be set are: user : The Red Hat Customer Portal user. password : The Red Hat Customer Portal password. debug : CRITICAL, ERROR, WARNING, INFO, or DEBUG url : The support services URL. Default=https://api.access.redhat.com proxy_url : A proxy server URL. proxy_user: A proxy server user. proxy_password: A password for the proxy server user. ssl_ca : Path to certificate authorities to trust during communication. kern_debug_dir: Path to the directory where kernel debug symbols should be downloaded and cached. Default=/var/lib/redhat-support-tool/debugkernels Examples: - config user - config user my-rhn-username - config --unset user
手順8.1 インタラクティブモードでの Red Hat Support Tool の登録
インタラクティブモードを使用して Red Hat Support Tool をカスタマーポータルに登録するには、以下のコマンドを実行します。
- 以下のコマンドを入力してツールを起動します。
~]#
redhat-support-tool - Red Hat カスタマーポータルのユーザー名を入力します。
Command (? for help):
ユーザー名をグローバル設定ファイルに保存するには、config user username-gオプションを追加します。 - Red Hat カスタマーポータルのパスワードを入力します。
Command (? for help):
config passwordPlease enter the password for username:
8.4.1. 設定ファイルへの設定の保存
Red Hat Support Tool は
~/.redhat-support-tool/redhat-support-tool.conf 設定ファイルを使用して現在のユーザーのホームディレクトリーに値とオプションをローカルで保存します (他の方法が設定されていない場合)。必要な場合は、パスワードをこのファイルに保存することが推奨されます。この場合、パスワードは特定のユーザーのみが見ることができます。ツールが起動すると、グローバル設定ファイル /etc/redhat-support-tool.conf とローカル設定ファイルから値が読み取られます。ローカルに保存された値とオプションは、グローバルに保存された設定よりも優先されます。
警告
グローバルな
/etc/redhat-support-tool.conf 設定ファイルにパスワードを保存することは推奨されません。パスワードは base64 でエンコードされているだけなので簡単にデコードできます。また、ファイルは誰でも読み取り可能です。
値とオプションをグローバル設定ファイルに保存するには、以下のように
-g、--global オプションを追加します。
Command (? for help): config setting -g value
注記
-g, --global オプションを使用して設定をグローバルで保存するには、Red Hat Support Tool を root で実行する必要があります。通常のユーザーは /etc/redhat-support-tool.conf に書き込むのに必要なパーミッションを持っていないためです。
値またはオプションをローカル設定ファイルから削除するには、以下のように
-u、--unset オプションを追加します。
Command (? for help): config setting -u value
これにより、ツールからパラメーターが消去および設定解除され、グローバル設定ファイル (利用可能な場合) の同等の設定が使用されます。
注記
非特権ユーザーで実行している場合、グローバル設定ファイルに保存された値は
-u、--unset オプションを使用して削除できませんが、-g、--global オプションと -u、--unset オプションを併用してツールの現在の実行中インスタンスから消去および設定解除できます。root で実行している場合、値とオプションは -g、--global と -u、--unset オプションを併用してグローバル設定ファイルから削除できます。

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.