ユーザー管理

更新日 2022-04-14 14:56:04
linuxコマンド

ユーザー追加


$ useradd [-g fugagroup] [-m] hogeuser
mオプション:ホームディレクトリを作成(なくてもOKな模様)

セカンダリグループ追加

fugagroupにhogeuserを追加

$ gpasswd -a hogeuser fugagroup
ユーザーの所属グループを表示

$ groups