0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

linuxの基本(ユーザー/グループ)

Last updated at Posted at 2020-02-26

Linuxでのユーザー、グループの確認方法のまとめ

  • ユーザー

  • 一覧
    /etc/passwd
    ユーザー名の抽出
    cut -d: -f1 /etc/passwd

  • 情報変更
    usermod

  • パスワード変更
    passwd

  • 追加
    useradd

  • 削除
    userdel

  • グループ

  • 一覧
    /etc/group
    グループ名の抽出
    cut -d: -f1 /etc/group

  • 情報変更
    groupmod

  • 追加
    groupadd

  • 削除
    groupdel

  • パスワード変更(root)

sudo su
passwd root 
0
1
0

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
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?