Show Table of Contents
3.3.2. 新規グループの追加
システムに新規グループを追加するには、
root としてシェルプロンプトで以下を入力します:
groupadd [options] group_name
options は、表3.3「groupadd のコマンドラインオプション」 で説明のとおりコマンドラインオプションです。
表3.3 groupadd のコマンドラインオプション
| オプション | 詳細 |
|---|---|
-f, --force | -g gid と共に使用され gid がすでに存在している場合、groupadd はグループ用に別の一意の gid を選択します。 |
-g gid | グループのグループ ID です。一意の番号で 499 より大きい数でなければなりません。 |
-K, --key key=value | /etc/login.defs のデフォルトを上書きします。 |
-o, --non-unique | グループの複製を許可します。 |
-p, --password password | 新規グループ用にこの暗号化されたパスワードを使用します。 |
-r | GID が 500 より小さいシステムグループを作成します。 |

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.