53
Help us understand the problem. What are the problem?

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
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
53
Help us understand the problem. What are the problem?