LoginSignup
52
58

More than 5 years have passed since last update.

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

Last updated at Posted at 2014-01-06
ユーザー名の変更
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
52
58
1

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
52
58