Last active
June 10, 2019 00:54
-
-
Save ponsuke0531/67666df6d39dfdc5e4640ec27de00580 to your computer and use it in GitHub Desktop.
CentOSでユーザを作成してパスワードを設定してユーザ一覧で確認する方法 ref: https://qiita.com/ponsuke0531/items/bd606fbadf5f64c4dca2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ユーザを作成する | |
$ useradd {ユーザ名} | |
# パスワードを設定する(rootの場合はユーザ名が不要) | |
$ passws {ユーザ名} | |
# ユーザ一覧を表示する | |
$ cat /etc/passwd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ユーザを作成する | |
$ useradd {ユーザ名} | |
パスワードを設定する(rootの場合はユーザ名が不要) | |
$ passwd {ユーザ名} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
フォーマット | |
ユーザ名:パスワード:ユーザID:グループID:コメント:ホームディレクトリ:ログインシェル | |
$ cat /etc/passwd | |
root:x:0:0:root:/root:/bin/bash | |
<省略> | |
mana:x:1000:1000:mana:/home/mana:/bin/bash | |
ponsuke:x:1001:1001::/home/ponsuke:/bin/bash | |
vboxadd:x:996:1::/var/run/vboxadd:/bin/false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment