LoginSignup
58

More than 5 years have passed since last update.

posted at

updated at

Linuxでユーザーアカウント名、グループ名の変更

ユーザー名の変更
usermod -l newname oldname
グループ名の変更
groupmod -n newgroup oldgroup
HOMEの変更
usermod -d /home/user1 -m user1
  • -mでファイルの移動もしてくれる。

ユーザーIDの変更
usermod -u 501 username
グループIDの変更
groupmod -g 520 groupname

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
58