Show Table of Contents
Web UI での
コマンドラインからの
29.5. sudo コマンドとコマンドグループの編集
Web UI での sudo コマンドとコマンドグループの修正
- Policy タブで → または → をクリックします。
- 設定ページを表示するコマンドまたはコマンドグループの名前をクリックします。
- 必要に応じて設定を変更します。ページによっては上部に ボタンがあるものもあります。その場合は、このボタンをクリックして変更を保存します。
コマンドラインからの sudo コマンドとコマンドグループの修正
コマンドもしくはコマンドグループを修正するには、それぞれ以下のコマンドを実行します。
ipa sudocmd-modipa sudocmdgroup-mod
上記コマンドにコマンドラインオプションを追加して、
sudo コマンドまたはコマンドグループの属性を更新します。たとえば、/usr/bin/less コマンドに新たな説明を追加するには、以下を実行します。
$ ipa sudocmd-mod /usr/bin/less --desc="For reading log files" ------------------------------------- Modified Sudo Command "/usr/bin/less" ------------------------------------- Sudo Command: /usr/bin/less Description: For reading log files Sudo Command Groups: files
これらのコマンドや対応のオプションに関する情報は、コマンドに
--help オプションを追加して実行してください。

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.