0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

[Linux] ユーザとグループの管理_グループ管理_groupadd, groupmod, groupdel

Last updated at Posted at 2025-06-28

groupadd コマンド

groupmodコマンド

# groupmod [オプション] グループ名
オプション 由来 説明
default group modify 既存のグループ情報を変更するためのコマンド
-n name グループの名前を変更
例: groupmod -n newgroup oldgroup
-g GID グループのGID(グループID)を変更

groupdelコマンド

# groupdel グループ名
オプション 由来 説明
default group delete 指定したグループを削除するためのコマンド
- 削除できるのは、グループをプライマリグループとしているユーザがいない場合のみ
- /etc/group からグループ情報を削除する

Ping-t

全般

groupadd

groupmod

groupdel

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?