search
LoginSignup
118
Help us understand the problem. What are the problem?

More than 5 years have passed since last update.

posted at

Linuxコマンドでユーザーのグループ確認・変更。

ユーザーが所属しているグループ確認。

# groups tetsuya
tetsuya : tetsuya

ユーザーの所属グループをwheelに変更。

# usermod -G wheel tetsuya
# groups tetsuya
tetsuya : tetsuya wheel

グループwheelには誰が所属しているのか確認。

# getent group wheel
wheel:x:10:tetsuya,hoge_user,foo_user

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
What you can do with signing up
118
Help us understand the problem. What are the problem?