此内容没有您所选择的语言版本。
7.4. Configuring the Red Hat Support Tool
When in interactive mode, the configuration options can be listed by entering the command
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
config --help
:
Procedure 7.1. Registering the Red Hat Support Tool Using Interactive Mode
To register the Red Hat Support Tool to the customer portal using interactive mode, proceed as follows:
- Start the tool by entering the following command:
redhat-support-tool
~]# redhat-support-tool
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Enter your Red Hat Customer Portal user name:To save your user name to the global configuration file, add the
Command (? for help): config user username
Command (? for help): config user usernameconfig user username
Copy to Clipboard Copied! Toggle word wrap Toggle overflow -g
option. - Enter your Red Hat Customer Portal password:
Command (? for help): config password Please enter the password for username:
Command (? for help): config password Please enter the password for username:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
7.4.1. Saving Settings to the Configuration Files 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
The Red Hat Support Tool, unless otherwise directed, stores values and options locally in the home directory of the current user, using the
~/.redhat-support-tool/redhat-support-tool.conf
configuration file. If required, it is recommended to save passwords to this file because it is only readable by that particular user. When the tool starts, it will read values from the global configuration file /etc/redhat-support-tool.conf
and from the local configuration file. Locally stored values and options take precedence over globally stored settings.
Warning
It is recommended not to save passwords in the global
/etc/redhat-support-tool.conf
configuration file because the password is just base64
encoded and can easily be decoded. In addition, the file is world readable.
To save a value or option to the global configuration file, add the
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
-g, --global
option as follows:
Command (? for help): config setting -g value
Command (? for help): config setting -g valueconfig setting -g valueconfig setting -g valueconfig setting -g value
Note
In order to be able to save settings globally, using the
-g, --global
option, the Red Hat Support Tool must be run as root
because normal users do not have the permissions required to write to /etc/redhat-support-tool.conf
.
To remove a value or option from the local configuration file, add the
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
This will clear, unset, the parameter from the tool and fall back to the equivalent setting in the global configuration file, if available.
-u, --unset
option as follows:
Command (? for help): config setting -u value
Command (? for help): config setting -u valueconfig setting -u valueconfig setting -u valueconfig setting -u value
Note
When running as an unprivileged user, values stored in the global configuration file cannot be removed using the
-u, --unset
option, but they can be cleared, unset, from the current running instance of the tool by using the -g, --global
option simultaneously with the -u, --unset
option. If running as root
, values and options can be removed from the global configuration file using -g, --global
simultaneously with the -u, --unset
option.