Tbpgr Blog

Employee Experience Engineer tbpgr(てぃーびー) のブログ

Linux入門 | パスワードファイル(/etc/passwd)

概要

パスワードファイル(/etc/passwd)

詳細

/etc/passwdにUNIXのアカウント情報がコロン区切りで記録されている。

No 内容
1 ユーザ名
2 パスワード
3 ユーザID
4 グループID
5 コメント
6 ホームディレクトリ
7 シェル

サンプル

$ cat /etc/passwd
root:x:0:0:root:/root:/bin/bash
# 略
git:x:1001:1003:GitLab user:/home/git:/bin/bash
mysql:x:997:1004:MySQL Server:/var/lib/mysql:/sbin/nologin