Skip to content

Instantly share code, notes, and snippets.

@CLCL
Created November 2, 2015 11:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CLCL/486596f463e66e483315 to your computer and use it in GitHub Desktop.
Save CLCL/486596f463e66e483315 to your computer and use it in GitHub Desktop.
シェルスクリプトでlinuxユーザのパスワードを設定
#!/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