Created
November 2, 2015 11:56
-
-
Save CLCL/486596f463e66e483315 to your computer and use it in GitHub Desktop.
シェルスクリプトでlinuxユーザのパスワードを設定
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
#!/bin/sh | |
# シェルスクリプトでwebuserユーザのパスワードをpassw0rdに設定する。 | |
# 大量のバッチ処理の場合は、別ファイルにユーザパスワードリスト | |
# を用意したうえで、`chpasswd' を使おう。 | |
echo passW0rd | passwd webuser --stdin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment